radv: put back VGT_FLUSH at ring init on gfx10
authorDave Airlie <airlied@redhat.com>
Thu, 18 Jul 2019 06:12:53 +0000 (16:12 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Jul 2019 06:24:44 +0000 (16:24 +1000)
I can find no evidence that removing this is a good idea.

Fixes: 9b116173b6a ("radv: do not emit VGT_FLUSH on GFX10")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index b397a9a8aa06b7576b704891e1a66f7b992c307e..8dd24cb8192561609274ce67c59d5aa67770f500 100644 (file)
@@ -2753,10 +2753,8 @@ radv_get_preamble_cs(struct radv_queue *queue,
                        radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0));
                        radeon_emit(cs, EVENT_TYPE(V_028A90_VS_PARTIAL_FLUSH) | EVENT_INDEX(4));
 
-                       if (queue->device->physical_device->rad_info.chip_class < GFX10) {
-                               radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0));
-                               radeon_emit(cs, EVENT_TYPE(V_028A90_VGT_FLUSH) | EVENT_INDEX(0));
-                       }
+                       radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0));
+                       radeon_emit(cs, EVENT_TYPE(V_028A90_VGT_FLUSH) | EVENT_INDEX(0));
                }
 
                radv_emit_gs_ring_sizes(queue, cs, esgs_ring_bo, esgs_ring_size,