[Mesa-dev] [PATCH] radv: do not emit VGT_FLUSH on GFX10
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Mon Jul 8 12:35:21 UTC 2019
r-b
On Mon, Jul 8, 2019 at 1:45 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> We don't need it.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_device.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index 5a92e5276d9..09614067a4a 100644
> --- a/src/amd/vulkan/radv_device.c
> +++ b/src/amd/vulkan/radv_device.c
> @@ -2747,8 +2747,11 @@ radv_get_preamble_cs(struct radv_queue *queue,
> if (esgs_ring_bo || gsvs_ring_bo || tess_rings_bo) {
> radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0));
> radeon_emit(cs, EVENT_TYPE(V_028A90_VS_PARTIAL_FLUSH) | EVENT_INDEX(4));
> - radeon_emit(cs, PKT3(PKT3_EVENT_WRITE, 0, 0));
> - radeon_emit(cs, EVENT_TYPE(V_028A90_VGT_FLUSH) | EVENT_INDEX(0));
> +
> + 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));
> + }
> }
>
> radv_emit_gs_ring_sizes(queue, cs, esgs_ring_bo, esgs_ring_size,
> --
> 2.22.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list