mesa/src/compiler
Marcin Ślusarz e3b4c77ed3 glsl: refactor code to avoid static analyzer noise
Clang analyzer thinks struct_base_offset can be used uninitialized
because it doesn't know that glsl_type_is_struct_or_ifc returns
the same value for the same type.

Refactor the code to make it clear what is going on. As a side effect
this should be faster because glsl_get_length and
glsl_type_is_struct_or_ifc will be called only once (they are not
inline functions).

This is an alternative approach to
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12399.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12403>
2021-08-19 06:59:01 +00:00
..
glsl glsl: refactor code to avoid static analyzer noise 2021-08-19 06:59:01 +00:00
nir nir/inline_uniforms: support loop 2021-08-19 02:17:35 +00:00
spirv spirv: create ffma more often 2021-08-16 17:19:45 +00:00
builtin_type_macros.h compiler/types: Add 64-bit image types 2020-11-09 17:17:39 +00:00
glsl_types.cpp glsl: add missing support for explicit components in interface blocks 2021-05-13 08:07:53 +00:00
glsl_types.h glsl: add missing support for explicit components in interface blocks 2021-05-13 08:07:53 +00:00
meson.build spirv: add some tests for volatile/available/visible 2020-09-01 17:15:22 +00:00
nir_types.cpp nir: Add a size_align helper function for aligning elements to 16 bytes. 2020-11-16 13:54:22 -08:00
nir_types.h nir: Add a size_align helper function for aligning elements to 16 bytes. 2020-11-16 13:54:22 -08:00
shader_enums.c tu, freedreno/a6xx, ir3: Rewrite tess PrimID handling 2021-08-05 16:35:41 +00:00
shader_enums.h tu, freedreno/a6xx, ir3: Rewrite tess PrimID handling 2021-08-05 16:35:41 +00:00
shader_info.h mesa: move gl_program::is_arb_asm to shader_info 2021-07-28 08:49:30 +00:00