mesa/src/panfrost/lib
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
..
genxml panfrost: Add ASTC stretch factor enums 2021-09-30 14:26:12 +00:00
tests panfrost: Fix incorrect test condition 2021-09-24 11:46:29 +00:00
.gitignore panfrost: Add panloader/ to .gitignore 2020-08-06 23:54:24 +00:00
meson.build panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_afbc.c panfrost: Remove AFBC format fixups 2021-06-10 18:06:10 +00:00
pan_attributes.c panfrost: Move panfrost_vertex/instance_id to per-gen 2021-07-12 23:12:29 +00:00
pan_blend.c panfrost: Split command stream descriptor definitions per-gen 2021-09-30 10:30:19 +00:00
pan_blend.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_blitter.c panfrost: Split command stream descriptor definitions per-gen 2021-09-30 10:30:19 +00:00
pan_blitter.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_bo.c panfrost: Move bo->label assignment into the lock 2021-08-24 14:31:54 -04:00
pan_bo.h panfrost: Label all BOs in userspace 2021-05-18 19:19:01 +00:00
pan_clear.c panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_cs.c panfrost: Split command stream descriptor definitions per-gen 2021-09-30 10:30:19 +00:00
pan_cs.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_device.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_encoder.h panfrost: Move special_varying to compiler definitions 2021-10-05 21:13:52 +00:00
pan_format.c panfrost: Add ASTC 3D texture format entries 2021-09-30 14:26:12 +00:00
pan_format.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_indirect_dispatch.c panfrost: Split command stream descriptor definitions per-gen 2021-09-30 10:30:19 +00:00
pan_indirect_dispatch.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_indirect_draw.c panfrost: Split command stream descriptor definitions per-gen 2021-09-30 10:30:19 +00:00
pan_indirect_draw.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_pool.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_props.c panfrost: Move panfrost_major_version() to gen_macros.h 2021-09-20 15:10:10 +02:00
pan_samples.c panfrost: Label all BOs in userspace 2021-05-18 19:19:01 +00:00
pan_scoreboard.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_scratch.c panfrost: Fix stack shift calculation 2020-11-13 20:49:06 +00:00
pan_shader.c panfrost: Introduce PAN_MAX_VARYINGS define 2021-10-05 21:13:52 +00:00
pan_shader.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_texture.c panfrost: Encode 3D ASTC dimensions 2021-09-30 14:26:12 +00:00
pan_texture.h panfrost: Move genxml related files to a subdir 2021-09-30 10:30:19 +00:00
pan_tiler.c panfrost: Prepare pan_encoder.h to per-gen XML 2021-09-20 15:18:50 +02:00
pan_util.c panfrost: Use _PU for non-dithered formats 2021-08-11 18:15:52 +00:00
pan_util.h panfrost: Port v5 blend shader issue to blitter 2021-08-23 20:54:34 +00:00
wrap.h panfrost: Prepare pandecode to per-gen XML 2021-09-20 15:11:30 +02:00