From: Samuel Pitoiset Date: Tue, 9 Jul 2019 06:27:29 +0000 (+0200) Subject: radv: set max workgroup size to 128 for TES as NGG on GFX10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2974df819e40563916242eae7acddc0200fd69a0;p=mesa.git radv: set max workgroup size to 128 for TES as NGG on GFX10 Signed-off-by: Samuel Pitoiset Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 9644185f870..67630c4ee92 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -3721,7 +3721,7 @@ LLVMModuleRef ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm, } if (ctx.ac.chip_class >= GFX10) { - if (shaders[0]->info.stage == MESA_SHADER_VERTEX && + if (is_pre_gs_stage(shaders[0]->info.stage) && options->key.vs.out.as_ngg) { ctx.max_workgroup_size = 128; }