pvr: Rename shadowing loop variable in pvr_add_deferred_rta_clear()
authorMatt Coster <matt.coster@imgtec.com>
Tue, 16 May 2023 08:24:09 +0000 (09:24 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 May 2023 10:00:37 +0000 (10:00 +0000)
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23125>

src/imagination/vulkan/pvr_blit.c

index 23cee29..8db27c4 100644 (file)
@@ -1737,9 +1737,9 @@ static VkResult pvr_add_deferred_rta_clear(struct pvr_cmd_buffer *cmd_buffer,
       };
 
       if (attachment->aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) {
-         for (uint32_t i = 0; i < ARRAY_SIZE(transfer_cmd->clear_color); i++) {
-            transfer_cmd->clear_color[i].ui =
-               attachment->clearValue.color.uint32[i];
+         for (uint32_t j = 0; j < ARRAY_SIZE(transfer_cmd->clear_color); j++) {
+            transfer_cmd->clear_color[j].ui =
+               attachment->clearValue.color.uint32[j];
          }
       } else {
          transfer_cmd->clear_color[0].f =