diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-11-10 23:20:10 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-11-19 15:51:46 +0000 |
commit | e879d566bb5e0140036170b73757a613de51e4ca (patch) | |
tree | da8afc54fa752a8082121a30a231a3dd19a7cb29 /include/wlr/interfaces | |
parent | 3d7d6ec06ff519e4b28198fd514d511c6d670b0b (diff) |
output: Add function to set preferred render format
This change introduces new double buffered state to the wlr_output,
corresponding to the buffer format to render to.
The format being rendered to does not control the bit depth of colors
being sent to the display; it does generally determine the format with
which screenshot data is provided. The DRM backend _may_ sent higher
bit depths if the render format depth is increased, but hardware and
other limitations may apply.
Diffstat (limited to 'include/wlr/interfaces')
-rw-r--r-- | include/wlr/interfaces/wlr_output.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index 100754f6..5ae1ab56 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -21,6 +21,7 @@ (WLR_OUTPUT_STATE_DAMAGE | \ WLR_OUTPUT_STATE_SCALE | \ WLR_OUTPUT_STATE_TRANSFORM | \ + WLR_OUTPUT_STATE_RENDER_FORMAT | \ WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED) /** |