diff options
-rw-r--r-- | src/compiler/glsl/gl_nir_lower_samplers_as_deref.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c index 27e2d780e70..b56ae0c5043 100644 --- a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c +++ b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c @@ -177,6 +177,7 @@ lower_deref(nir_builder *b, struct lower_samplers_as_deref_state *state, } else { var = nir_variable_create(state->shader, nir_var_uniform, type, name); var->data.binding = binding; + var->data.location = location; _mesa_hash_table_insert_pre_hashed(state->remap_table, hash, name, var); } |