mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-13 21:50:31 +01:00
anv: handle non-wsi images in anv_layout_to_aux_state
Transition to VK_IMAGE_LAYOUT_PRESENT_SRC_KHR with non-wsi image was seen with gfxrecon-replay case that ends up hitting weird assertions later. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33027>
This commit is contained in:
parent
ee9edd4625
commit
c5cad407f8
1 changed files with 9 additions and 0 deletions
|
|
@ -3105,6 +3105,15 @@ anv_layout_to_aux_state(const struct intel_device_info * const devinfo,
|
|||
case VK_IMAGE_LAYOUT_PRESENT_SRC_KHR: {
|
||||
assert(image->vk.aspects == VK_IMAGE_ASPECT_COLOR_BIT);
|
||||
|
||||
/* Handle transition to present layout for non wsi images just like
|
||||
* normal images. Some apps like gfx-reconstruct incorrectly use this
|
||||
* layout on non-wsi image which is against spec. It's easy enough to
|
||||
* deal with it here and potentially avoid unnecessary resolve
|
||||
* operations.
|
||||
*/
|
||||
if (!image->from_wsi)
|
||||
break;
|
||||
|
||||
enum isl_aux_state aux_state =
|
||||
isl_drm_modifier_get_default_aux_state(image->vk.drm_format_mod);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue