<div dir="ltr"><div dir="ltr"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 10. Jan. 2024 um 01:28 Uhr schrieb Zack Rusin <<a href="mailto:zack.rusin@broadcom.com">zack.rusin@broadcom.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jan 9, 2024 at 11:06 AM Xaver Hugl <<a href="mailto:xaver.hugl@kde.org" target="_blank">xaver.hugl@kde.org</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> KWin does use DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT.<br>
<br>
Can you point me to the code that implements it? Just wanted to take a<br>
quick look, because I didn't see the cursor on KDE 6 after fixing the<br>
kernel oops.<br></blockquote><div>It's here: <a href="https://invent.kde.org/plasma/kwin/-/blob/a879c59a082707e0e7dfa8ebeb7b239551ec9c71/src/backends/drm/drm_gpu.cpp#L153">https://invent.kde.org/plasma/kwin/-/blob/a879c59a082707e0e7dfa8ebeb7b239551ec9c71/src/backends/drm/drm_gpu.cpp#L153</a></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> Tying the check to<br>
> DRM_CLIENT_CAP_ATOMIC instead would IMO make more sense though (even if it's<br>
> still weird) and would work with older versions of KWin and other compositors.<br>
<br>
Unfortunately xf86-video-modesetting advertises CLIENT_CAP_ATOMIC and<br>
uses GL where our GL driver assumes the prime object is not GEM. Not<br>
impossible, as mentioned before, we can always add code to the kernel<br>
that handles both but I don't think there's any particularly clean<br>
solutions here. We'll probably play with a few solutions and see which<br>
one is the cleanest.<br>
<br>
z<br></blockquote><div><br></div><div>Ah, that's unfortunate.<br></div></div></div>