Mesa (staging/18.2): radv: add a workaround for a VGT hang with prim restart and strips
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 15 08:56:09 UTC 2018
Module: Mesa
Branch: staging/18.2
Commit: 687ca5f0cd0066e8628fabf7c793b75dc23859ba
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=687ca5f0cd0066e8628fabf7c793b75dc23859ba
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Wed Oct 10 14:04:42 2018 +0200
radv: add a workaround for a VGT hang with prim restart and strips
Otherwise, Yakuza and The Evil Within hang the GPU with DXVK.
This apparently only works on Polaris.
Suggested by Marek.
Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
(cherry picked from commit d179312b53d94a4f0ffe1e88569525300afb4985)
---
src/amd/vulkan/radv_pipeline.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 0bfe5aef37..6a51efa298 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3337,6 +3337,17 @@ radv_compute_ia_multi_vgt_param_helpers(struct radv_pipeline *pipeline,
}
}
+ /* Workaround for a VGT hang when strip primitive types are used with
+ * primitive restart.
+ */
+ if (pipeline->graphics.prim_restart_enable &&
+ (prim == V_008958_DI_PT_LINESTRIP ||
+ prim == V_008958_DI_PT_TRISTRIP ||
+ prim == V_008958_DI_PT_LINESTRIP_ADJ ||
+ prim == V_008958_DI_PT_TRISTRIP_ADJ)) {
+ ia_multi_vgt_param.partial_vs_wave = true;
+ }
+
ia_multi_vgt_param.base =
S_028AA8_PRIMGROUP_SIZE(ia_multi_vgt_param.primgroup_size - 1) |
/* The following field was moved to VGT_SHADER_STAGES_EN in GFX9. */
More information about the mesa-commit
mailing list