Module: Mesa Branch: main Commit: 0158057bd001ea2af157897a2d79ea346224bc64 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0158057bd001ea2af157897a2d79ea346224bc64
Author: Caio Oliveira <[email protected]> Date: Wed Sep 27 16:02:20 2023 -0700 compiler/types: Remove use of auto This is a preparation for moving compiler/types from C++ to C. Reviewed-by: Adam Jackson <[email protected]> Reviewed-by: Emma Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25445> --- src/compiler/glsl_types.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp index bf8ac079acc..d7920acf92b 100644 --- a/src/compiler/glsl_types.cpp +++ b/src/compiler/glsl_types.cpp @@ -789,7 +789,7 @@ get_explicit_matrix_instance(unsigned int base_type, unsigned int rows, unsigned key_hash, stored_key, (void *)t); } - auto t = (const glsl_type *) entry->data; + const struct glsl_type *t = (const struct glsl_type *) entry->data; simple_mtx_unlock(&glsl_type_cache_mutex); assert(t->base_type == base_type); @@ -1260,7 +1260,7 @@ glsl_type::get_array_instance(const glsl_type *element, (void *) t); } - auto t = (const glsl_type *) entry->data; + const struct glsl_type *t = (const struct glsl_type *) entry->data; simple_mtx_unlock(&glsl_type_cache_mutex); assert(t->base_type == GLSL_TYPE_ARRAY); @@ -1536,7 +1536,7 @@ glsl_type::get_struct_instance(const glsl_struct_field *fields, entry = _mesa_hash_table_insert_pre_hashed(struct_types, key_hash, t, (void *) t); } - auto t = (const glsl_type *) entry->data; + const struct glsl_type *t = (const struct glsl_type *) entry->data; simple_mtx_unlock(&glsl_type_cache_mutex); assert(t->base_type == GLSL_TYPE_STRUCT); @@ -1579,7 +1579,7 @@ glsl_type::get_interface_instance(const glsl_struct_field *fields, entry = _mesa_hash_table_insert_pre_hashed(interface_types, key_hash, t, (void *) t); } - auto t = (const glsl_type *) entry->data; + const struct glsl_type *t = (const struct glsl_type *) entry->data; simple_mtx_unlock(&glsl_type_cache_mutex); assert(t->base_type == GLSL_TYPE_INTERFACE); @@ -1612,7 +1612,7 @@ glsl_type::get_subroutine_instance(const char *subroutine_name) entry = _mesa_hash_table_insert_pre_hashed(subroutine_types, key_hash, glsl_get_type_name(t), (void *) t); } - auto t = (const glsl_type *) entry->data; + const struct glsl_type *t = (const struct glsl_type *) entry->data; simple_mtx_unlock(&glsl_type_cache_mutex); assert(t->base_type == GLSL_TYPE_SUBROUTINE);
