mesa/src/compiler
Rhys Perry 75880655f8
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
nir/lower_gs_intrinsics: silence warning
../../../../../../../mesa/src/compiler/nir/nir_lower_gs_intrinsics.c: In function ‘nir_lower_gs_intrinsics’:
../../../../../../../mesa/src/compiler/nir/nir_lower_gs_intrinsics.c:523:93: warning: ‘state’ may be used uninitialized [-Wmaybe-uninitialized]
  523 |             state.decomposed_primitive_count_vars[i] = state.decomposed_primitive_count_vars[0];
      |                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../../../../../../../mesa/src/compiler/nir/nir_lower_gs_intrinsics.c:464:17: note: ‘state’ declared here
  464 |    struct state state;
      |                 ^~~~~

It's always initialized by the first iteration of the loop, but GCC
doesn't seem to know that.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34785>
2025-05-05 11:45:42 +00:00
..
clc mesa-clc: add an option to force inclusion of OpenCL headers 2025-04-24 11:40:15 +00:00
glsl compiler/types: add a bfloat16 type 2025-04-29 16:29:36 +00:00
isaspec meson: do not compile libisaspec unless used 2025-03-25 08:32:47 +00:00
libcl clc,libcl: Clean up CL includes 2025-04-11 21:27:37 +00:00
nir nir/lower_gs_intrinsics: silence warning 2025-05-05 11:45:42 +00:00
rust nak,nir: Add an image_load_raw_nv intrinsic 2025-04-08 04:06:45 +00:00
spirv vtn: use nir_const_value_for_raw_uint for bfloat SpecConstantOp/FConvert 2025-05-01 10:52:30 +00:00
builtin_types.py compiler/types: add a bfloat16 type 2025-04-29 16:29:36 +00:00
builtin_types_c.py util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +00:00
builtin_types_h.py util,vulkan,mesa,compiler: Generate source files with utf8 encoding from mako template 2023-12-07 12:41:07 +00:00
glsl_types.c compiler/types: add a bfloat16 type 2025-04-29 16:29:36 +00:00
glsl_types.h compiler/types: add a bfloat16 type 2025-04-29 16:29:36 +00:00
meson.build nak: Move bitset to compiler crate 2024-08-07 21:08:18 +00:00
shader_enums.c nir: add load_front_face_fsign 2024-12-30 22:31:34 +00:00
shader_enums.h nir: Rename in-bounds-agx to in-bounds 2025-02-19 09:54:11 +00:00
shader_info.h compiler,nir: Gather needs_full_quad_helper_invocations info 2025-03-14 21:55:58 +00:00