From 54420ca44d43c2a36a7a868581bb947586044076 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 10 Jan 2025 10:15:38 +0100 Subject: [PATCH] Allow arbitrary primary plane scanout formats This reverts a change accidentally introduced in 9898913 which would prevent primary plane scanout unless the scanout format matches the primary plane's swapchain format. Instead the preferred buffer formats for the primary plane scanout are used again. --- src/udev.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev.rs b/src/udev.rs index 5f1fed8..188cbe2 100644 --- a/src/udev.rs +++ b/src/udev.rs @@ -618,7 +618,7 @@ impl OutputDevice { &mut self.gles, textures, CLEAR_COLOR, - FrameFlags::DEFAULT, + FrameFlags::DEFAULT | FrameFlags::ALLOW_PRIMARY_PLANE_SCANOUT_ANY, )?; let rendered = !frame_result.is_empty;