zink/kopper: Set VK_COMPOSITE_ALPHA_OPAQUE_BIT when PresentOpaque is set

This is required for EGL_EXT_present_opaque to work correctly.

Fixes: 8ade5588e3 ("zink: add kopper api")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11007
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30133>
This commit is contained in:
Faith Ekstrand
2024-07-11 12:27:08 -05:00
committed by Marge Bot
parent 70b40fd2a0
commit 1f906f8715
4 changed files with 6 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ struct kopper_loader_info {
struct kopper_vk_surface_create_storage bos;
int has_alpha;
int initial_swap_interval;
bool present_opaque;
};
#define __DRI_KOPPER_LOADER "DRI_KopperLoader"