From: Jason Ekstrand Date: Sat, 22 Oct 2016 00:46:17 +0000 (-0700) Subject: anv: Set framebuffer to NULL in secondary command buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a380f954610319782811bb2aa44180c4e1231823;p=mesa.git anv: Set framebuffer to NULL in secondary command buffers Nothing that is allowed to be called within a secondary now relies on the framebuffer. Signed-off-by: Jason Ekstrand Reviewed-by: Nanley Chery --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 29762f8ead7..e076e18f7e6 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -319,12 +319,11 @@ genX(BeginCommandBuffer)( if (cmd_buffer->usage_flags & VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT) { - cmd_buffer->state.framebuffer = - anv_framebuffer_from_handle(pBeginInfo->pInheritanceInfo->framebuffer); cmd_buffer->state.pass = anv_render_pass_from_handle(pBeginInfo->pInheritanceInfo->renderPass); cmd_buffer->state.subpass = &cmd_buffer->state.pass->subpasses[pBeginInfo->pInheritanceInfo->subpass]; + cmd_buffer->state.framebuffer = NULL; genX(cmd_buffer_setup_attachments)(cmd_buffer, cmd_buffer->state.pass, NULL, NULL);