radv/gfx10: enable wave32 for compute based on shader's wavesize
This will allow to change wavesize on-demand. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -5042,7 +5042,7 @@ radv_compute_generate_pm4(struct radv_pipeline *pipeline)
|
||||
compute_shader->info.cs.block_size[1] *
|
||||
compute_shader->info.cs.block_size[2];
|
||||
waves_per_threadgroup = DIV_ROUND_UP(threads_per_threadgroup,
|
||||
device->physical_device->cs_wave_size);
|
||||
compute_shader->info.wave_size);
|
||||
|
||||
if (device->physical_device->rad_info.chip_class >= GFX10 &&
|
||||
waves_per_threadgroup == 1)
|
||||
|
Reference in New Issue
Block a user