mesa/src/util/format
Tanner Van De Walle f9e7b9568b util/format: add lower-bound assert on format
The generated util_format_description(),
util_format_pack_description(), and
util_format_unpack_description_generic() helpers assert
format < PIPE_FORMAT_COUNT but not format >= 0. MSVC's prefast
static analyzer reports C33010 (UNCHECKED_LOWER_BOUND_FOR_ENUMINDEX)
on the subsequent array subscript, since it cannot prove the
non-negative side of the bound. Extending the existing assert in
the generator silences the warning across all three accessors.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41447>
2026-05-14 17:46:16 +00:00
..
format_utils.h util: Don't force 64-bit division on 32-bit platforms 2026-01-05 20:52:24 +00:00
meson.build
texcompress_bptc_tmp.h
texcompress_etc_tmp.h
texcompress_s3tc_tmp.h build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
u_format.c util/format: support 256-bit formats in util_format_get_tilesize() 2026-05-01 22:38:21 +00:00
u_format.h util/format: make subsampling explicit 2026-04-28 12:44:33 +00:00
u_format.yaml util/format: mark subsampled RGB formats as actually subsampled 2026-04-28 12:44:33 +00:00
u_format_bptc.c
u_format_bptc.h
u_format_etc.c
u_format_etc.h
u_format_fxt1.c
u_format_fxt1.h
u_format_latc.c
u_format_latc.h
u_format_other.c util/format, vulkan: Add PIPE_FORMAT_X6R10X6G10X6B10X6A10_UNORM 2026-04-15 12:16:53 +00:00
u_format_other.h util/format, vulkan: Add PIPE_FORMAT_X6R10X6G10X6B10X6A10_UNORM 2026-04-15 12:16:53 +00:00
u_format_pack.py util: fix msvc build warning 4146 (unary minus operator applied to unsigned type, result still unsigned) 2025-05-09 16:34:00 +00:00
u_format_parse.py util/format: make subsampling explicit 2026-04-28 12:44:33 +00:00
u_format_rgtc.c
u_format_rgtc.h
u_format_s3tc.c
u_format_s3tc.h
u_format_table.py util/format: add lower-bound assert on format 2026-05-14 17:46:16 +00:00
u_format_tests.c util/format, vulkan: Add PIPE_FORMAT_X6R10X6G10X6B10X6A10_UNORM 2026-04-15 12:16:53 +00:00
u_format_tests.h
u_format_unpack_neon.c
u_format_yuv.c util/format: Add subsampling info to our YUV-as-RGB format names 2025-08-20 14:01:07 +00:00
u_format_yuv.h util/format: Add subsampling info to our YUV-as-RGB format names 2025-08-20 14:01:07 +00:00
u_format_zs.c util/format: Add a Z24_UNORM_PACKED format 2025-09-15 10:59:04 +00:00
u_format_zs.h util/format: Add a Z24_UNORM_PACKED format 2025-09-15 10:59:04 +00:00
u_formats.h ac,radeonsi: move SX PS downconversion code into ac_formats.c 2026-01-02 16:46:20 +00:00