From d0d6a611d990c16136c2f27aeec192f37729fa0b Mon Sep 17 00:00:00 2001 From: Gwan-gyeong Mun Date: Tue, 26 Sep 2017 01:14:16 -0700 Subject: [PATCH] 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 --- src/amd/vulkan/radv_cmd_buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 1e0e366..4db9d76 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); -- 2.7.4