glsl: rename record_location_offset() -> struct_location_offset()
[mesa.git] / src / compiler / glsl / gl_nir_lower_samplers_as_deref.c
index ea32195d42f8a840ca9c284eda543de07a6b2232..27e2d780e7094f12bd3e571628fcc3d81dbb551c 100644 (file)
@@ -104,7 +104,7 @@ remove_struct_derefs_prep(nir_deref_instr **p, char **name,
    }
 
    case nir_deref_type_struct: {
-      *location += glsl_get_record_location_offset(cur->type, next->strct.index);
+      *location += glsl_get_struct_location_offset(cur->type, next->strct.index);
       ralloc_asprintf_append(name, ".%s",
                              glsl_get_struct_elem_name(cur->type, next->strct.index));