b2d82c25fb
Xe KMD does a special caching handling for buffers that will be scanout to display, so that is why it needs a flag set during allocation. Checking if VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA is available in AllocateMemory() and marking the buffer as scanout. All WSI code paths but one sets VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA. The only one that doesn't requires that WSI is initialize with wsi_device_options.sw_device = true to be executed, what is not the case for ANV. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21885>