mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 21:28:10 +02:00
tgsi_to_nir: Fix uniform ranges.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Fixes:f3b33a5a35Closes: #4127 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8920> (cherry picked from commite163f1c949)
This commit is contained in:
parent
b96190e9d7
commit
37c4ed461f
2 changed files with 2 additions and 2 deletions
|
|
@ -4117,7 +4117,7 @@
|
|||
"description": "tgsi_to_nir: Fix uniform ranges.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "f3b33a5a35e605101d45213bddf52f2f800a52bb"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -739,7 +739,7 @@ ttn_src_for_file_and_index(struct ttn_compile *c, unsigned file, unsigned index,
|
|||
nir_intrinsic_set_base(load, index);
|
||||
if (indirect) {
|
||||
offset = ttn_src_for_indirect(c, indirect);
|
||||
nir_intrinsic_set_range(load, c->ubo_sizes[0] - index);
|
||||
nir_intrinsic_set_range(load, c->build.shader->num_uniforms * 16 - index);
|
||||
} else {
|
||||
offset = nir_imm_int(b, 0);
|
||||
nir_intrinsic_set_range(load, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue