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:
@@ -3450,7 +3450,7 @@ LLVMModuleRef ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm,
|
|||||||
ctx.max_workgroup_size = 0;
|
ctx.max_workgroup_size = 0;
|
||||||
for (int i = 0; i < shader_count; ++i) {
|
for (int i = 0; i < shader_count; ++i) {
|
||||||
ctx.max_workgroup_size = MAX2(ctx.max_workgroup_size,
|
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]));
|
shaders[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -749,7 +749,7 @@ generate_shader_stats(struct radv_device *device,
|
|||||||
lds_increment);
|
lds_increment);
|
||||||
} else if (stage == MESA_SHADER_COMPUTE) {
|
} else if (stage == MESA_SHADER_COMPUTE) {
|
||||||
unsigned max_workgroup_size =
|
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) /
|
lds_per_wave = (conf->lds_size * lds_increment) /
|
||||||
DIV_ROUND_UP(max_workgroup_size, 64);
|
DIV_ROUND_UP(max_workgroup_size, 64);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user