mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-12 17:40:32 +01:00
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:
parent
85373f2b15
commit
2c00b7d1e6
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue