The image aspects field is actually never set and we should use the
range aspect anyways.
Fixes:
1a7b7b17ad0 ("radv: avoid oob read during clear")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8324>
VkFormat format = image->vk_format;
VkClearValue internal_clear_value;
- if (image->aspects & VK_IMAGE_ASPECT_COLOR_BIT)
+ if (ranges->aspectMask & VK_IMAGE_ASPECT_COLOR_BIT)
internal_clear_value.color = clear_value->color;
else
internal_clear_value.depthStencil = clear_value->depthStencil;