From d0d7dda82932f59b3e07f00c7edd2bae6fb8f467 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 6 Jun 2023 18:14:54 -0700 Subject: [PATCH] radv: fix non-square compressed image copy on gfx9 There is a typo in fixup_gfx9_cs_copy. Fixed dEQP-VK.api.copy_and_blit.*.image_to_buffer.2d_images.mip_copies_bc*_64x192_* in deqp 1.3.6.0. Fixes: 35f053ba8cd ("radv: Fix corrupted mipmap copies on GFX9+") Part-of: --- src/amd/vulkan/meta/radv_meta_bufimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/meta/radv_meta_bufimage.c b/src/amd/vulkan/meta/radv_meta_bufimage.c index 1867eaf3fa6..eabeaa23d4e 100644 --- a/src/amd/vulkan/meta/radv_meta_bufimage.c +++ b/src/amd/vulkan/meta/radv_meta_bufimage.c @@ -1275,7 +1275,7 @@ fixup_gfx9_cs_copy(struct radv_cmd_buffer *cmd_buffer, RADV_CMD_FLAG_CS_PARTIAL_FLUSH | RADV_CMD_FLAG_INV_L2 | RADV_CMD_FLAG_INV_VCACHE; } - for (uint32_t y = 0; y < mip_extent.width; y++) { + for (uint32_t y = 0; y < mip_extent.height; y++) { uint32_t coordY = y + mip_offset.y; /* If the default copy algorithm (done previously) has already seen this * scanline, then we can bias the starting X coordinate over to skip the