mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-21 05:34:09 -04:00
backend/drm/atomic: Add support for color representation
Basic implementation of color representation in drm/atomic: when buffers are presented for scanout which have color-representation data attached, set the correct color encoding and range on the plane. If the plane does not support color-representation then the commit will fail and the caller can retry without color-representation.
This commit is contained in:
parent
dca0703dac
commit
abb6eeb422
2 changed files with 63 additions and 1 deletions
|
|
@ -43,7 +43,8 @@ static const uint32_t COMMIT_OUTPUT_STATE =
|
|||
WLR_OUTPUT_STATE_WAIT_TIMELINE |
|
||||
WLR_OUTPUT_STATE_SIGNAL_TIMELINE |
|
||||
WLR_OUTPUT_STATE_COLOR_TRANSFORM |
|
||||
WLR_OUTPUT_STATE_IMAGE_DESCRIPTION;
|
||||
WLR_OUTPUT_STATE_IMAGE_DESCRIPTION |
|
||||
WLR_OUTPUT_STATE_COLOR_REPRESENTATION;
|
||||
|
||||
static const uint32_t SUPPORTED_OUTPUT_STATE =
|
||||
WLR_OUTPUT_STATE_BACKEND_OPTIONAL | COMMIT_OUTPUT_STATE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue