mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-19 01:20:33 +01:00
anv: Don't set the display flag on WSI blit sources
These images are never used with scanout hardware.
Fixes: 2c00b7d1e6 ("anv: flag WSI images as scanout images for ISL")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39618>
This commit is contained in:
parent
f616d4fb2a
commit
c429d7479e
1 changed files with 4 additions and 4 deletions
|
|
@ -1850,6 +1850,10 @@ anv_image_init(struct anv_device *device, struct anv_image *image,
|
|||
image->from_wsi = wsi_info != NULL;
|
||||
image->wsi_blit_src = wsi_info && wsi_info->blit_src;
|
||||
|
||||
/* Non-intermediate WSI images are displayable. */
|
||||
if (wsi_info && !wsi_info->blit_src)
|
||||
isl_extra_usage_flags |= ISL_SURF_USAGE_DISPLAY_BIT;
|
||||
|
||||
/* The Vulkan 1.2.165 glossary says:
|
||||
*
|
||||
* A disjoint image consists of multiple disjoint planes, and is created
|
||||
|
|
@ -1910,10 +1914,6 @@ anv_image_init(struct anv_device *device, struct anv_image *image,
|
|||
isl_extra_usage_flags |= ISL_SURF_USAGE_DISABLE_AUX_BIT;
|
||||
}
|
||||
|
||||
/* Mark WSI images with the right surf usage. */
|
||||
if (image->from_wsi)
|
||||
isl_extra_usage_flags |= ISL_SURF_USAGE_DISPLAY_BIT;
|
||||
|
||||
const VkImageFormatListCreateInfo *fmt_list =
|
||||
vk_find_struct_const(pCreateInfo->pNext,
|
||||
IMAGE_FORMAT_LIST_CREATE_INFO);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue