mesa/src/panfrost/util
Alyssa Rosenzweig b88225378d panfrost: Introduce PAN_MAX_VARYINGS define
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>
2021-10-05 21:13:52 +00:00
..
lcra.c panfrost/lcra: Fix constraint counting 2021-03-01 17:09:58 +00:00
lcra.h pan/lcra: Allow per-variable bounds to be set 2020-05-21 17:49:14 +00:00
meson.build panfrost: Use common blend lowering 2021-05-07 17:25:21 +00:00
nir_mod_helpers.c panfrost: Add modifier detection helpers 2020-05-19 20:21:27 +00:00
pan_ir.c pan/mdg: Push uniforms based on UBO analysis 2021-02-11 17:24:37 +00:00
pan_ir.h panfrost: Introduce PAN_MAX_VARYINGS define 2021-10-05 21:13:52 +00:00
pan_liveness.c pan/mdg: Free previous liveness 2020-08-20 18:15:01 +02:00
pan_lower_64bit_intrin.c nir: Rename WORK_GROUP (and similar) to WORKGROUP 2021-06-07 22:34:42 +00:00
pan_lower_framebuffer.c pan/lower_fb: Add support for rgb10a2 _SINT variants 2021-09-28 18:59:46 +00:00
pan_lower_framebuffer.h pan/lower_fb: Re-order components when dealing with raw formats 2021-09-28 18:59:46 +00:00
pan_lower_helper_invocation.c nir: Make nir_ssa_def_rewrite_uses take an SSA value 2021-03-08 16:59:55 +00:00
pan_lower_sample_position.c nir: Make nir_ssa_def_rewrite_uses take an SSA value 2021-03-08 16:59:55 +00:00
pan_lower_writeout.c panfrost: Assume lower_fragcolor has been called 2021-05-04 20:04:03 +00:00
pan_sysval.c pan/blend: Allow passing blend constants through a sysval 2021-09-30 16:54:42 +02:00