mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 07:20:16 +01:00
gcc 11 dixit:
In function ‘sample_2d_ewa’,
inlined from ‘sample_lambda_2d_aniso’ at ../src/mesa/swrast/s_texfilter.c:1995:10:
../src/mesa/swrast/s_texfilter.c:1729:13: warning: ‘sample_2d_nearest’ reading 16 bytes from a region of size 8 [-Wstringop-overread]
1729 | sample_2d_nearest(ctx, samp, img, newCoord, rgba);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/mesa/swrast/s_texfilter.c: In function ‘sample_lambda_2d_aniso’:
../src/mesa/swrast/s_texfilter.c:1729:13: note: referencing argument 4 of type ‘const GLfloat *’ {aka ‘const float *’}
Indeed, newCoord is GLfloat[2] but the argument is typed GLfloat[4],
even though only the first two (s and t) are ever read. Fix the array
size in the function signature to reflect the maximum element actually
addressed.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11273>
|
||
|---|---|---|
| .. | ||
| drivers | ||
| main | ||
| math | ||
| program | ||
| sparc | ||
| state_tracker | ||
| swrast | ||
| swrast_setup | ||
| tnl | ||
| tnl_dd | ||
| vbo | ||
| x86 | ||
| x86-64 | ||
| Android.gen.mk | ||
| Android.libmesa_dricore.mk | ||
| Android.libmesa_git_sha1.mk | ||
| Android.libmesa_glsl_utils.mk | ||
| Android.libmesa_sse41.mk | ||
| Android.libmesa_st_mesa.mk | ||
| Android.mk | ||
| Makefile.sources | ||
| meson.build | ||