mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radv: fix build
Fixes: 9b9ccee4d6 ("radv: take LDS into account for compute shader occupancy stats")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
9b9ccee4d6
commit
5e7f800f32
2 changed files with 2 additions and 2 deletions
|
|
@ -3450,7 +3450,7 @@ LLVMModuleRef ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm,
|
|||
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,
|
||||
radv_nir_get_max_workgroup_size(ctx.options->chip_class,
|
||||
shaders[i]));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -749,7 +749,7 @@ generate_shader_stats(struct radv_device *device,
|
|||
lds_increment);
|
||||
} else if (stage == MESA_SHADER_COMPUTE) {
|
||||
unsigned max_workgroup_size =
|
||||
ac_nir_get_max_workgroup_size(chip_class, variant->nir);
|
||||
radv_nir_get_max_workgroup_size(chip_class, variant->nir);
|
||||
lds_per_wave = (conf->lds_size * lds_increment) /
|
||||
DIV_ROUND_UP(max_workgroup_size, 64);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue