backend/drm: read SIZE colorop property

This commit is contained in:
Simon Ser 2026-06-04 16:59:27 +02:00
parent 94a982d4e3
commit 83605d212d
2 changed files with 13 additions and 0 deletions

View file

@ -181,6 +181,18 @@ static bool init_color_pipeline(struct wlr_drm_backend *drm,
}
colorop->type = (uint32_t)type;
switch (type) {
case DRM_COLOROP_1D_LUT:
case DRM_COLOROP_3D_LUT:;
uint64_t size = 0;
if (!get_drm_prop(drm->fd, id, colorop->props.size, &size)) {
return false;
}
colorop->size = size;
break;
}
id = (uint32_t)next;
}