aco/gfx11: reduce scratch allocation alignment
fossil-db (gfx1100): Totals from 112 (0.08% of 134574) affected shaders: Scratch: 1513472 -> 1455360 (-3.84%) Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20534>
This commit is contained in:
@@ -903,7 +903,8 @@ setup_isel_context(Program* program, unsigned shader_count, struct nir_shader* c
|
||||
for (unsigned i = 0; i < shader_count; i++)
|
||||
scratch_size = std::max(scratch_size, shaders[i]->scratch_size);
|
||||
|
||||
ctx.program->config->scratch_bytes_per_wave = align(scratch_size * ctx.program->wave_size, 1024);
|
||||
ctx.program->config->scratch_bytes_per_wave =
|
||||
align(scratch_size * ctx.program->wave_size, ctx.program->dev.scratch_alloc_granule);
|
||||
|
||||
unsigned nir_num_blocks = 0;
|
||||
for (unsigned i = 0; i < shader_count; i++)
|
||||
|
||||
Reference in New Issue
Block a user