diff options
author | Gwan-gyeong Mun <[email protected]> | 2017-09-26 01:14:17 -0700 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-09-28 13:20:14 +0100 |
commit | c951976b506ebf347cac254cf1969cb289943a78 (patch) | |
tree | 283e3fa08b4d8ca566bac942c30191f8b2503c96 | |
parent | d0d6a611d990c16136c2f27aeec192f37729fa0b (diff) |
anv: add an assertion in genX(BeginCommandBuffer)
To check a valid usage requirement.
Signed-off-by: Mun Gwan-gyeong <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 = |