nir: rename glsl_type_is_struct() -> glsl_type_is_struct_or_ifc()
Replace done using: find ./src -type f -exec sed -i -- \ 's/glsl_type_is_struct(/glsl_type_is_struct_or_ifc(/g' {} \; Acked-by: Karol Herbst <kherbst@redhat.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -340,7 +340,7 @@ glsl_type_get_sampler_count(const struct glsl_type *type)
|
||||
glsl_type_get_sampler_count(glsl_without_array(type)));
|
||||
}
|
||||
|
||||
if (glsl_type_is_struct(type)) {
|
||||
if (glsl_type_is_struct_or_ifc(type)) {
|
||||
unsigned count = 0;
|
||||
for (int i = 0; i < glsl_get_length(type); i++)
|
||||
count += glsl_type_get_sampler_count(glsl_get_struct_field(type, i));
|
||||
@@ -361,7 +361,7 @@ glsl_type_get_image_count(const struct glsl_type *type)
|
||||
glsl_type_get_image_count(glsl_without_array(type)));
|
||||
}
|
||||
|
||||
if (glsl_type_is_struct(type)) {
|
||||
if (glsl_type_is_struct_or_ifc(type)) {
|
||||
unsigned count = 0;
|
||||
for (int i = 0; i < glsl_get_length(type); i++)
|
||||
count += glsl_type_get_image_count(glsl_get_struct_field(type, i));
|
||||
|
Reference in New Issue
Block a user