mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Revert "wlr_scene: fix tf/prim comparison for scanout attempt"
This reverts commit dde07b6840.
This is incorrect as discussed here:
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5163#note_3118744
This commit is contained in:
parent
2252854297
commit
6978509f64
1 changed files with 1 additions and 2 deletions
|
|
@ -1982,8 +1982,7 @@ static enum scene_direct_scanout_result scene_entry_try_direct_scanout(
|
|||
}
|
||||
|
||||
const struct wlr_output_image_description *img_desc = output_pending_image_description(scene_output->output, state);
|
||||
if (buffer->transfer_function != WLR_COLOR_TRANSFER_FUNCTION_SRGB ||
|
||||
buffer->primaries != WLR_COLOR_NAMED_PRIMARIES_SRGB) {
|
||||
if (buffer->transfer_function != 0 || buffer->primaries != 0) {
|
||||
if (img_desc == NULL || img_desc->transfer_function != buffer->transfer_function ||
|
||||
img_desc->primaries != buffer->primaries) {
|
||||
return SCANOUT_INELIGIBLE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue