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>
This commit is contained in:
parent
4f58cc82e2
commit
6f54ebe44f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue