anv: Remove hacky PIPE_CONTROL in vkCmdEndRenderPass()
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 17 Feb 2016 23:19:07 +0000 (15:19 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 17 Feb 2016 23:19:07 +0000 (15:19 -0800)
The vkCmdPipelineBarrier() command should work as intended now and we
need to pull the plug on this old hack.

src/vulkan/genX_cmd_buffer.c

index 2552cd1befec8e29f6f66931a8b8774fb7e6205d..e25a20b3d7acf4f6c024b3939fb05bd8e1394aaf 100644 (file)
@@ -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);
 }