mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-18 18:08:15 +02:00
The number of varying records we need to reserve in the worst case is greater than the number of source-level varyings we advertise (gl_Position, gl_PointSize...) We advertise MAX_VARYINGS source level varyings, which means anywhere we manipulate varyings we need up to (MAX_VARYINGS + max non-source level varyings) records. Add a PAN_MAX_VARYINGS define for this and use it throughout. Fixes a buffer overflow in Piglit glsl-max-varyings, which now passes instead of crashes. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13070> |
||
|---|---|---|
| .. | ||
| lcra.c | ||
| lcra.h | ||
| meson.build | ||
| nir_mod_helpers.c | ||
| pan_ir.c | ||
| pan_ir.h | ||
| pan_liveness.c | ||
| pan_lower_64bit_intrin.c | ||
| pan_lower_framebuffer.c | ||
| pan_lower_framebuffer.h | ||
| pan_lower_helper_invocation.c | ||
| pan_lower_sample_position.c | ||
| pan_lower_writeout.c | ||
| pan_sysval.c | ||