diff options
author | Jason Ekstrand <[email protected]> | 2016-10-05 16:54:57 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-10-06 16:52:31 -0700 |
commit | c81ec84c1ec24f11f86b2fb725956437c721fe18 (patch) | |
tree | 3c5ebf2bc32d5d9ff92ee6ca416b8b8ff787fd7e /src | |
parent | b548fdbed5c16f5c0dfc26f65b0037a85c567735 (diff) |
anv/cmd_buffer: Move the clear_subpasses calls to set_subpass
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 02f81b192d4..a0f6e85c859 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -1305,6 +1305,8 @@ genX(cmd_buffer_set_subpass)(struct anv_cmd_buffer *cmd_buffer, cmd_buffer->state.dirty |= ANV_CMD_DIRTY_RENDER_TARGETS; cmd_buffer_emit_depth_stencil(cmd_buffer); + + anv_cmd_buffer_clear_subpass(cmd_buffer); } void genX(CmdBeginRenderPass)( @@ -1324,7 +1326,6 @@ void genX(CmdBeginRenderPass)( genX(flush_pipeline_select_3d)(cmd_buffer); genX(cmd_buffer_set_subpass)(cmd_buffer, pass->subpasses); - anv_cmd_buffer_clear_subpass(cmd_buffer); } void genX(CmdNextSubpass)( @@ -1337,7 +1338,6 @@ void genX(CmdNextSubpass)( anv_cmd_buffer_resolve_subpass(cmd_buffer); genX(cmd_buffer_set_subpass)(cmd_buffer, cmd_buffer->state.subpass + 1); - anv_cmd_buffer_clear_subpass(cmd_buffer); } void genX(CmdEndRenderPass)( |