wsi: Add explicit_sync to wsi_drm_image_params

Allow the WSI frontend to request explicit sync buffers.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2023-10-11 14:06:32 +01:00
parent 00dba3992c
commit 754f52e1e1
2 changed files with 5 additions and 0 deletions

View file

@ -321,6 +321,8 @@ wsi_configure_native_image(const struct wsi_swapchain *chain,
if (result != VK_SUCCESS)
return result;
info->explicit_sync = params->explicit_sync;
if (params->num_modifier_lists == 0) {
/* If we don't have modifiers, fall back to the legacy "scanout" flag */
info->wsi.scanout = true;
@ -600,6 +602,8 @@ wsi_configure_prime_image(UNUSED const struct wsi_swapchain *chain,
if (result != VK_SUCCESS)
return result;
info->explicit_sync = params->explicit_sync;
wsi_configure_buffer_image(chain, pCreateInfo,
WSI_PRIME_LINEAR_STRIDE_ALIGN, 4096,
info);

View file

@ -63,6 +63,7 @@ struct wsi_drm_image_params {
struct wsi_base_image_params base;
bool same_gpu;
bool explicit_sync;
uint32_t num_modifier_lists;
const uint32_t *num_modifiers;