mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
backend/drm: read SIZE colorop property
This commit is contained in:
parent
94a982d4e3
commit
83605d212d
2 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue