mesa/src/mesa
Adam Jackson f535ab59e2 swrast: Fix a warning from gcc 11
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>
2021-06-10 16:20:09 +00:00
..
drivers classic/xlib: Fix the build after !9817 2021-06-09 20:57:24 +00:00
main Revert "st/mesa: execute glFlush asynchronously if no image has been imported/exported" 2021-06-09 22:18:35 +00:00
math mesa/math: Fix address of array always returning true 2020-12-07 23:27:03 +01:00
program mesa: fix _mesa_add_state_reference() declaration mismatch 2021-04-26 13:48:11 +00:00
sparc sparc: Avoid some redefinition warnings 2021-06-02 07:56:32 +00:00
state_tracker Revert "st/mesa: execute glFlush asynchronously if no image has been imported/exported" 2021-06-09 22:18:35 +00:00
swrast swrast: Fix a warning from gcc 11 2021-06-10 16:20:09 +00:00
swrast_setup remove final imports.h and imports.c bits 2020-04-21 11:09:04 -07:00
tnl Convert most remaining free-form fall-through comments to FALLTHROUGH 2021-04-15 16:01:22 +00:00
tnl_dd
vbo gallium: split drawid out of pipe_draw_info and as a separate draw_vbo param 2021-04-30 03:59:19 +00:00
x86 asm: Fix x86 assembly for inverse matrix operations 2020-12-03 11:39:47 -08:00
x86-64 mesa: add support for CET to x86/x86-64 asm files. 2019-08-16 09:00:35 +10:00
Android.gen.mk mesa: Replace _mesa_pack_ubyte_rgba_row() with pack_ubyte_rgba_8unorm(). 2021-04-21 19:59:10 +00:00
Android.libmesa_dricore.mk android: mesa: Revert "android: mesa: revert "Enable asm unconditionally"" 2019-11-12 18:09:43 +00:00
Android.libmesa_git_sha1.mk git_sha1: simplify logic 2018-08-16 17:38:31 +01:00
Android.libmesa_glsl_utils.mk remove final imports.h and imports.c bits 2020-04-21 11:09:04 -07:00
Android.libmesa_sse41.mk intel: compiler option msse2 and mstackrealign 2018-09-07 13:45:46 +01:00
Android.libmesa_st_mesa.mk android: mesa: Revert "android: mesa: revert "Enable asm unconditionally"" 2019-11-12 18:09:43 +00:00
Android.mk mesa: Replace gen_matypes with a simple header for V4F/mat layout. 2019-07-01 11:12:15 -07:00
Makefile.sources mesa: Replace _mesa_pack_ubyte_rgba_row() with pack_ubyte_rgba_8unorm(). 2021-04-21 19:59:10 +00:00
meson.build mesa: Replace _mesa_pack_ubyte_rgba_row() with pack_ubyte_rgba_8unorm(). 2021-04-21 19:59:10 +00:00