dzn: Don't resolve for RESOLVE_MODE_NONE

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27348>
This commit is contained in:
Jesse Natalie 2024-02-01 15:44:14 -08:00 committed by Marge Bot
parent dd7cfd5255
commit 973c5bd047

View file

@ -4691,7 +4691,7 @@ dzn_cmd_buffer_resolve_rendering_attachment(struct dzn_cmd_buffer *cmdbuf,
struct dzn_image_view *src = att->iview;
struct dzn_image_view *dst = att->resolve.iview;
if (!src || !dst)
if (!src || !dst || att->resolve.mode == VK_RESOLVE_MODE_NONE)
return;
struct dzn_device *device = container_of(cmdbuf->vk.base.device, struct dzn_device, vk);