radv: do not emit pipeline stats flushes on compute queue
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 27 Jul 2018 09:50:27 +0000 (11:50 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 27 Jul 2018 12:31:26 +0000 (14:31 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/si_cmd_buffer.c

index e2bdbe889a54784d031f0b0b370863a33dd5b39e..2337036c67a6f0aacde7523cb14e9c22de1ccdbd 100644 (file)
@@ -972,7 +972,9 @@ si_emit_cache_flush(struct radv_cmd_buffer *cmd_buffer)
                                                  RADV_CMD_FLAG_FLUSH_AND_INV_DB_META |
                                                  RADV_CMD_FLAG_PS_PARTIAL_FLUSH |
                                                  RADV_CMD_FLAG_VS_PARTIAL_FLUSH |
-                                                 RADV_CMD_FLAG_VGT_FLUSH);
+                                                 RADV_CMD_FLAG_VGT_FLUSH |
+                                                 RADV_CMD_FLAG_START_PIPELINE_STATS |
+                                                 RADV_CMD_FLAG_STOP_PIPELINE_STATS);
 
        if (!cmd_buffer->state.flush_bits)
                return;