summaryrefslogtreecommitdiff
path: root/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2019-03-05 15:55:57 +1100
committerTimothy Arceri <tarceri@itsqueeze.com>2019-03-06 13:10:02 +1100
commit8294295dbdc053c92065844f2079aef8da05db9b (patch)
tree2111c97684794c261d28cb732dfcdd4b7c5b192d /src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
parent88d8c4e29003bddeb3836a0af2a2d4dddf3ba9ac (diff)
downloadmesa-8294295dbdc053c92065844f2079aef8da05db9b.tar.gz
glsl: rename record_location_offset() -> struct_location_offset()
Replace done using: find ./src -type f -exec sed -i -- \ 's/record_location_offset(/struct_location_offset(/g' {} \; Acked-by: Karol Herbst <kherbst@redhat.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/glsl/gl_nir_lower_samplers_as_deref.c')
-rw-r--r--src/compiler/glsl/gl_nir_lower_samplers_as_deref.c2
1 files changed, 1 insertions, 1 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 ea32195d42f..27e2d780e70 100644
--- a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
+++ b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
@@ -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));