anv: flag WSI images as scanout images for ISL

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29465>
This commit is contained in:
Rohan Garg 2024-05-20 17:36:31 +02:00 committed by Marge Bot
parent 85373f2b15
commit 2c00b7d1e6

View file

@ -1654,6 +1654,10 @@ 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 isl_tiling_flags_t isl_tiling_flags =
choose_isl_tiling_flags(device->info, create_info, isl_mod_info,
image->vk.wsi_legacy_scanout);