iview can be NULL inside a secondary command buffer.
Fixes:
00064713a30 ("radv: determine at creation if an image view can be fast cleared")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8408>
const VkClearDepthStencilValue clear_value,
uint32_t view_mask)
{
- if (!iview->support_fast_clear)
+ if (!iview || !iview->support_fast_clear)
return false;
if (!radv_layout_is_htile_compressed(cmd_buffer->device, iview->image, image_layout, in_render_loop,
{
uint32_t clear_color[2];
- if (!iview->support_fast_clear)
+ if (!iview || !iview->support_fast_clear)
return false;
if (!radv_layout_can_fast_clear(cmd_buffer->device, iview->image, image_layout, in_render_loop,