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>
};
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 =