anv: assert inheritance_info is not NULL

Makes some static analysis tools happier.

Reviewed-by: Mark Janes <markjanes@swizzler.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17809>
This commit is contained in:
Iván Briano 2022-07-29 12:54:59 -07:00 committed by Marge Bot
parent 1bb92a3178
commit a05fcc94c2
1 changed files with 1 additions and 0 deletions

View File

@ -1694,6 +1694,7 @@ genX(BeginCommandBuffer)(
const VkCommandBufferInheritanceRenderingInfo *inheritance_info =
vk_get_command_buffer_inheritance_rendering_info(cmd_buffer->vk.level,
pBeginInfo);
assert(inheritance_info);
gfx->rendering_flags = inheritance_info->flags;
gfx->render_area = (VkRect2D) { };