modesetting: Enable universal planes client cap

Enable the universal planes client cap so that we actually
get access to the primary plane's IN_FORMATS blob. We will
now start to parse the blob.

Signed-off-by: notbabaisyou <though-went-some-simple@proton.me>
This commit is contained in:
Ville Syrjälä 2025-06-24 22:41:10 +02:00 committed by notbabaisyou
parent 8f912fa4aa
commit 787286c946

View File

@ -2400,6 +2400,7 @@ drmmode_crtc_create_planes(xf86CrtcPtr crtc, int num)
return; return;
} }
drmSetClientCap(drmmode->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
kplane_res = drmModeGetPlaneResources(drmmode->fd); kplane_res = drmModeGetPlaneResources(drmmode->fd);
if (!kplane_res) { if (!kplane_res) {
xf86DrvMsg(drmmode->scrn->scrnIndex, X_ERROR, xf86DrvMsg(drmmode->scrn->scrnIndex, X_ERROR,