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: 35f053ba8c ("radv: Fix corrupted mipmap copies on GFX9+")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23483>
This commit is contained in:
Chia-I Wu
2023-06-06 18:14:54 -07:00
committed by Marge Bot
parent 8616c0a52c
commit d0d7dda829

View File

@@ -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