From: Gwan-gyeong Mun Date: Tue, 26 Sep 2017 08:14:17 +0000 (-0700) Subject: anv: add an assertion in genX(BeginCommandBuffer) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c951976b506ebf347cac254cf1969cb289943a78;p=mesa.git anv: add an assertion in genX(BeginCommandBuffer) To check a valid usage requirement. Signed-off-by: Mun Gwan-gyeong Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index fbc19957096..35593990198 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -1006,6 +1006,7 @@ genX(BeginCommandBuffer)( VkResult result = VK_SUCCESS; if (cmd_buffer->usage_flags & VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT) { + assert(pBeginInfo->pInheritanceInfo); cmd_buffer->state.pass = anv_render_pass_from_handle(pBeginInfo->pInheritanceInfo->renderPass); cmd_buffer->state.subpass =