summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2016-02-17 15:19:07 -0800
committerKristian Høgsberg Kristensen <[email protected]>2016-02-17 15:19:07 -0800
commitae3e249d57e10a9bfe261cdff4a6f27052bc580e (patch)
tree7660e04eb9e9e18fb87b34f51a1ed590d640812c /src/vulkan
parent5e92e91c6177bfe31214b8a0ebd0d4c47969b61d (diff)
anv: Remove hacky PIPE_CONTROL in vkCmdEndRenderPass()
The vkCmdPipelineBarrier() command should work as intended now and we need to pull the plug on this old hack.
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/genX_cmd_buffer.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/vulkan/genX_cmd_buffer.c b/src/vulkan/genX_cmd_buffer.c
index 2552cd1befe..e25a20b3d7a 100644
--- a/src/vulkan/genX_cmd_buffer.c
+++ b/src/vulkan/genX_cmd_buffer.c
@@ -714,18 +714,4 @@ void genX(CmdEndRenderPass)(
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
anv_cmd_buffer_resolve_subpass(cmd_buffer);
-
- /* Emit a flushing pipe control at the end of a pass. This is kind of a
- * hack but it ensures that render targets always actually get written.
- * Eventually, we should do flushing based on image format transitions
- * or something of that nature.
- */
- anv_batch_emit(&cmd_buffer->batch, GENX(PIPE_CONTROL),
- .PostSyncOperation = NoWrite,
- .RenderTargetCacheFlushEnable = true,
- .InstructionCacheInvalidateEnable = true,
- .DepthCacheFlushEnable = true,
- .VFCacheInvalidationEnable = true,
- .TextureCacheInvalidationEnable = true,
- .CommandStreamerStallEnable = true);
}