mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02: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> (cherry picked from commitc429d7479e)
This commit is contained in:
parent
d6d5071a84
commit
a7ace43e9a
2 changed files with 5 additions and 5 deletions
|
|
@ -1164,7 +1164,7 @@
|
|||
"description": "anv: Don't set the display flag on WSI blit sources",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2c00b7d1e6ef86ce750228f7be79da377a5f53db",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1842,6 +1842,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
|
||||
|
|
@ -1902,10 +1906,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