Mesa (master): radv: hardcode the number of waves for the GFX6 LS-HS bug
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Nov 6 08:34:13 UTC 2019
Module: Mesa
Branch: master
Commit: d1e1f7c4d590edf731d3a6c2771d29a8ce4ee9ff
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1e1f7c4d590edf731d3a6c2771d29a8ce4ee9ff
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Thu Oct 31 09:35:22 2019 +0100
radv: hardcode the number of waves for the GFX6 LS-HS bug
It's always 64.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/vulkan/radv_nir_to_llvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index b1168b941b9..5b4ccc60e72 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -190,7 +190,7 @@ get_tcs_num_patches(struct radv_shader_context *ctx)
/* GFX6 bug workaround - limit LS-HS threadgroups to only one wave. */
if (ctx->options->chip_class == GFX6) {
- unsigned one_wave = ctx->options->wave_size / MAX2(num_tcs_input_cp, num_tcs_output_cp);
+ unsigned one_wave = 64 / MAX2(num_tcs_input_cp, num_tcs_output_cp);
num_patches = MIN2(num_patches, one_wave);
}
return num_patches;
More information about the mesa-commit
mailing list