diff options
| author | Harry Wentland <harry.wentland@amd.com> | 2025-11-14 17:01:33 -0700 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-11-26 23:03:32 +0100 |
| commit | 78a5add824186da775be4a10ac0a95cca239718c (patch) | |
| tree | 5f1be2411f04dd2cf3001aa07c69439de4c84944 /include/drm | |
| parent | 8c5ea1745f4c89576bc6d213ea7f9a7068ada4ad (diff) | |
drm/colorop: Add NEXT property
We'll construct color pipelines out of drm_colorop by
chaining them via the NEXT pointer. NEXT will point to
the next drm_colorop in the pipeline, or by 0 if we're
at the end of the pipeline.
Reviewed-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Sebastian Wick <sebastian.wick@redhat.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patch.msgid.link/20251115000237.3561250-9-alex.hung@amd.com
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/drm_colorop.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/drm/drm_colorop.h b/include/drm/drm_colorop.h index 2d24f7248831..d8c17c537586 100644 --- a/include/drm/drm_colorop.h +++ b/include/drm/drm_colorop.h @@ -172,6 +172,14 @@ struct drm_colorop { enum drm_colorop_type type; /** + * @next: + * + * Read-only + * Pointer to next drm_colorop in pipeline + */ + struct drm_colorop *next; + + /** * @type_property: * * Read-only "TYPE" property for specifying the type of @@ -198,6 +206,13 @@ struct drm_colorop { */ struct drm_property *curve_1d_type_property; + /** + * @next_property: + * + * Read-only property to next colorop in the pipeline + */ + struct drm_property *next_property; + }; #define obj_to_colorop(x) container_of(x, struct drm_colorop, base) @@ -273,4 +288,6 @@ const char *drm_get_colorop_type_name(enum drm_colorop_type type); */ const char *drm_get_colorop_curve_1d_type_name(enum drm_colorop_curve_1d_type type); +void drm_colorop_set_next_property(struct drm_colorop *colorop, struct drm_colorop *next); + #endif /* __DRM_COLOROP_H__ */ |