mesa/src/util/format
Adam Jackson 4770d6c01d format/fxt1: Clean up fxt1_variance's argument list
gcc 11 warns:

../src/util/format/u_format_fxt1.c:940:22: warning: ‘fxt1_variance.constprop’ accessing 128 bytes in a region of size 64 [-Wstringop-overflow=]
  940 |    int32_t maxVarR = fxt1_variance(NULL, &input[N_TEXELS / 2], n_comp);

But, suspiciously, if you inline fxt1_variance the warning goes away.
What's happening is that the 2nd arg is uint8_t[N_TEXELS][MAX_COMP], so
it looks like we're passing too small of an array in since gcc knows
that `input` is also [N_TEXELS][MAX_COMP]. Fair enough. Fix the
signature to reflect what's actually going on, and remove some unused
arguments while we're at it.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10671>
2021-05-06 21:25:47 +00:00
..
format_utils.h
meson.build util/format: Add some NEON intrinsics-based u_format_unpack. 2021-04-19 17:59:44 +00:00
u_format.c util/format: Add some NEON intrinsics-based u_format_unpack. 2021-04-19 17:59:44 +00:00
u_format.csv u_format: Add missing BE swizzles for R8SG8SB8UX8U_NORM 2021-04-28 09:51:09 +00:00
u_format.h util/format: add util_format_is_rgbx_or_bgrx 2021-04-20 19:18:55 +00:00
u_format_bptc.c util: Switch the non-block formats to unpacking rgba rows instead of rects. 2021-04-19 17:59:44 +00:00
u_format_bptc.h
u_format_etc.c
u_format_etc.h
u_format_fxt1.c format/fxt1: Clean up fxt1_variance's argument list 2021-05-06 21:25:47 +00:00
u_format_fxt1.h
u_format_latc.c
u_format_latc.h
u_format_other.c util: Switch the non-block formats to unpacking rgba rows instead of rects. 2021-04-19 17:59:44 +00:00
u_format_other.h util: Switch the non-block formats to unpacking rgba rows instead of rects. 2021-04-19 17:59:44 +00:00
u_format_pack.py util: Switch the non-block formats to unpacking rgba rows instead of rects. 2021-04-19 17:59:44 +00:00
u_format_parse.py
u_format_rgtc.c
u_format_rgtc.h
u_format_s3tc.c
u_format_s3tc.h
u_format_table.py util/format: Add some NEON intrinsics-based u_format_unpack. 2021-04-19 17:59:44 +00:00
u_format_tests.c util/format: fix value declarations for big endian 2021-04-28 09:51:09 +00:00
u_format_tests.h
u_format_unpack_neon.c util/format: Add some NEON intrinsics-based u_format_unpack. 2021-04-19 17:59:44 +00:00
u_format_yuv.c
u_format_yuv.h
u_format_zs.c u_format: Fix z32_s8x24 s8 unpacking on big-endian. 2021-04-28 09:51:09 +00:00
u_format_zs.h