summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorGwan-gyeong Mun <[email protected]>2017-09-26 01:14:16 -0700
committerEmil Velikov <[email protected]>2017-09-28 13:20:14 +0100
commitd0d6a611d990c16136c2f27aeec192f37729fa0b (patch)
tree876e7ccb047a294235f182f2d995995bb2373b80 /src/amd
parent5603670bc084385daf80c3d06a7d6f46f3daffb9 (diff)
radv: add an assertion in radv_BeginCommandBuffer()
To check a valid usage requirement. CID: 1401616 Signed-off-by: Mun Gwan-gyeong <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c1
1 files changed, 1 insertions, 0 deletions
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);