Merge ../mesa into vulkan
[mesa.git] / src / glsl / nir / nir_lower_samplers.c
index 33cd9c8b0cfc5b62ac66ce7fe21fc8a60da9bde1..aaeff2c223ef5ab33000eea614929b7821f9462e 100644 (file)
@@ -155,13 +155,13 @@ lower_sampler(nir_tex_instr *instr, const struct gl_shader_program *shader_progr
    }
 
    if (location > shader_program->NumUniformStorage - 1 ||
-       !shader_program->UniformStorage[location].sampler[stage].active) {
+       !shader_program->UniformStorage[location].opaque[stage].active) {
       assert(!"cannot return a sampler");
       return;
    }
 
    instr->sampler_index +=
-      shader_program->UniformStorage[location].sampler[stage].index;
+      shader_program->UniformStorage[location].opaque[stage].index;
 
    instr->sampler = NULL;
 }