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;
}

View file

@ -23,6 +23,7 @@ struct wlr_drm_viewport {
struct wlr_drm_colorop {
uint32_t id;
uint32_t type; // enum drm_colorop_type
uint32_t size; // for 1D_LUT, 3D_LUT
struct wlr_drm_colorop_props props;
struct wl_list link; // wlr_drm_plane.color_pipelines