From: Gwan-gyeong Mun Date: Tue, 26 Sep 2017 08:14:16 +0000 (-0700) Subject: radv: add an assertion in radv_BeginCommandBuffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0d6a611d990c16136c2f27aeec192f37729fa0b;p=mesa.git radv: add an assertion in radv_BeginCommandBuffer() To check a valid usage requirement. CID: 1401616 Signed-off-by: Mun Gwan-gyeong Reviewed-by: Samuel Pitoiset --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 1e0e3668209..4db9d7628c2 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2124,6 +2124,7 @@ VkResult radv_BeginCommandBuffer( } if (pBeginInfo->flags & VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT) { + assert(pBeginInfo->pInheritanceInfo); cmd_buffer->state.framebuffer = radv_framebuffer_from_handle(pBeginInfo->pInheritanceInfo->framebuffer); cmd_buffer->state.pass = radv_render_pass_from_handle(pBeginInfo->pInheritanceInfo->renderPass);