mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
ac/nir: Take the max workgroup size of all provided shaders.
Fixes: ffaf4d608a 'radv: Enable tessellation shaders for GFX9.'
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
0fdd531457
commit
9e82f2b3ea
1 changed files with 6 additions and 1 deletions
|
|
@ -6584,7 +6584,12 @@ LLVMModuleRef ac_translate_nir_to_llvm(LLVMTargetMachineRef tm,
|
|||
for (i = 0; i < AC_UD_MAX_UD; i++)
|
||||
shader_info->user_sgprs_locs.shader_data[i].sgpr_idx = -1;
|
||||
|
||||
ctx.max_workgroup_size = ac_nir_get_max_workgroup_size(ctx.options->chip_class, shaders[0]);
|
||||
ctx.max_workgroup_size = 0;
|
||||
for (int i = 0; i < shader_count; ++i) {
|
||||
ctx.max_workgroup_size = MAX2(ctx.max_workgroup_size,
|
||||
ac_nir_get_max_workgroup_size(ctx.options->chip_class,
|
||||
shaders[i]));
|
||||
}
|
||||
|
||||
create_function(&ctx, shaders[shader_count - 1]->info.stage, shader_count >= 2,
|
||||
shader_count >= 2 ? shaders[shader_count - 2]->info.stage : MESA_SHADER_VERTEX);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue