mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
aco: update LDS allocation granularity for PS on GFX11
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16369>
This commit is contained in:
parent
a284b677ba
commit
765aa36b9d
1 changed files with 3 additions and 1 deletions
|
|
@ -88,7 +88,9 @@ init_program(Program* program, Stage stage, const struct aco_shader_info* info,
|
|||
program->wave_size = info->wave_size;
|
||||
program->lane_mask = program->wave_size == 32 ? s1 : s2;
|
||||
|
||||
program->dev.lds_encoding_granule = chip_class >= GFX7 ? 512 : 256;
|
||||
program->dev.lds_encoding_granule = chip_class >= GFX11 && stage == fragment_fs ? 1024
|
||||
: chip_class >= GFX7 ? 512
|
||||
: 256;
|
||||
program->dev.lds_alloc_granule =
|
||||
chip_class >= GFX10_3 ? 1024 : program->dev.lds_encoding_granule;
|
||||
program->dev.lds_limit = chip_class >= GFX7 ? 65536 : 32768;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue