summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktoriia Palianytsia <v.palianytsia@globallogic.com>2021-11-09 14:49:45 +0200
committerMarge Bot <emma+marge@anholt.net>2021-12-01 09:33:41 +0000
commit6f54ebe44f7c9dcb52c89684aa160277e1e5ba2c (patch)
tree836f198067dea1c9de3178abada3fd8f3439c259
parent4f58cc82e2fcfa7e4633562e2895ba0d75acedbd (diff)
glsl: fix for unused variable in glsl_types.cpp
Unused variable vector_elements is now used in return from function decode_type_from_blob instead of encoded.basic.vector_elements. In the code we can see how those variables were equated and then the operations were made exactly to vector_elements. But variable didn't pass into any other variables or functions. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5536 Signed-off-by: Viktoriia Palianytsia <v.palianytsia@globallogic.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13725>
-rw-r--r--src/compiler/glsl_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp
index 627a43fee5d..de98b80354d 100644
--- a/src/compiler/glsl_types.cpp
+++ b/src/compiler/glsl_types.cpp
@@ -3242,7 +3242,7 @@ decode_type_from_blob(struct blob_reader *blob)
vector_elements = 8;
else if (vector_elements == 6)
vector_elements = 16;
- return glsl_type::get_instance(base_type, encoded.basic.vector_elements,
+ return glsl_type::get_instance(base_type, vector_elements,
encoded.basic.matrix_columns,
explicit_stride,
encoded.basic.interface_row_major,