mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
nir/lower_amul: Add a variable mode check
This loop should only apply to UBOs and SSBOs because max_slot is never used for normal uniforms. Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
This commit is contained in:
parent
3be0be7d54
commit
d5d15c301e
1 changed files with 3 additions and 0 deletions
|
|
@ -236,6 +236,9 @@ nir_lower_amul(nir_shader *shader,
|
|||
int max_slot = 0;
|
||||
|
||||
nir_foreach_variable (var, &shader->uniforms) {
|
||||
if (!(var->data.mode & (nir_var_mem_ubo | nir_var_mem_ssbo)))
|
||||
continue;
|
||||
|
||||
int base = var->data.binding;
|
||||
int size = MAX2(1, glsl_array_size(var->type));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue