dzn: Add for condition to break nested loop
Fixes: d132ec92
("dzn: Support native image copies when formats are compatible")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17377>
This commit is contained in:
parent
36516b869e
commit
f7c741c058
|
@ -3014,7 +3014,7 @@ dzn_CmdCopyImage2(VkCommandBuffer commandBuffer,
|
|||
|
||||
bool requires_temp_res = false;
|
||||
|
||||
for (uint32_t i = 0; i < info->regionCount; i++) {
|
||||
for (uint32_t i = 0; i < info->regionCount && !requires_temp_res; i++) {
|
||||
const VkImageCopy2 *region = &info->pRegions[i];
|
||||
|
||||
dzn_foreach_aspect(aspect, region->srcSubresource.aspectMask) {
|
||||
|
|
Loading…
Reference in New Issue