mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
ir3: Limit the maximum imm offset in nir_opt_offset for shared vars
STL/LDL have 13 bits to store imm offset.
Fixes crash in CS compilation in Monster Hunter World.
Fixes: b024102d7c
("freedreno/ir3: Use nir_opt_offset for removing constant adds for shared vars.")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14968>
This commit is contained in:
parent
b6557b80a5
commit
0b2da9d795
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ ir3_optimize_loop(struct ir3_compiler *compiler, nir_shader *s)
|
|||
*/
|
||||
.uniform_max = (1 << 9) - 1,
|
||||
|
||||
.shared_max = ~0,
|
||||
.shared_max = (1 << 13) - 1,
|
||||
|
||||
.buffer_max = ~0,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue