From f41a6504a1c12f95f366dd758b4c07882907c889 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 23 Aug 2022 12:41:35 -0400 Subject: [PATCH] egl/kopper: Don't add EGL_SWAP_BEHAVIOR_PRESERVED_BIT configs It's strictly inferior to EGL_EXT_buffer_age so apps shouldn't bother to begin with, and we don't communicate the surface preservation state to the backend so we don't handle it correctly in any case. Acked-by: Eric Engestrom Reviewed-by: Daniel Stone Part-of: --- src/egl/drivers/dri2/platform_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index b6fbd86925e..eac1661b3fa 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -1498,7 +1498,7 @@ dri2_initialize_x11_swrast(_EGLDisplay *disp) disp->Extensions.ANGLE_sync_control_rate = EGL_TRUE; } - if (!dri2_x11_add_configs_for_visuals(dri2_dpy, disp, true)) + if (!dri2_x11_add_configs_for_visuals(dri2_dpy, disp, !disp->Options.Zink)) goto cleanup; /* Fill vtbl last to prevent accidentally calling virtual function during