vk: Only begin subpass if we're continuing a render pass
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 9 Jan 2016 06:50:18 +0000 (22:50 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 9 Jan 2016 07:02:46 +0000 (23:02 -0800)
commita8cdef3dcef0e5da809f306a82aa6ffc9c1e6a71
tree1576ee93f14d09d9d4e0c962d490181a8874be36
parent7c5e1fd9984614ff3952bbabf946dac0e2a0c2b6
vk: Only begin subpass if we're continuing a render pass

If VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT is not set in
pBeginInfo->flags, we don't have a render pass or framebuffer. Change
the condition that guard looking up render pass and framebuffer to test
for VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT instead of
VK_COMMAND_BUFFER_LEVEL_SECONDARY.

Fixes all remaining crashes in dEQP-VK.api.command_buffers.*.
src/vulkan/anv_cmd_buffer.c