mesa/src/panfrost/util
Icecream95 379ae6d823 panfrost: Emit the correct number of attributes
create_vertex_elements_state is sometimes called with a too large
num_elements argument, for example with util_blitter, which causes a
buffer overflow.

There is no documentation to forbid this practice, so don't rely on
so->num_elements being correct and instead use the vertex shader
attribute count, which matches the value used to allocate the
descriptors.

Use attributes_read_count rather than attribute_count because the
latter also includes images and PAN_VERTEX_ID/PAN_INSTANCE_ID.

Fixes: 76de3e691c ("panfrost: Merge attribute packing routines")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17447>
2022-07-23 00:56:10 +00:00
..
lcra.c
lcra.h
meson.build panfrost: Use common blend lowering 2021-05-07 17:25:21 +00:00
nir_mod_helpers.c
pan_ir.c
pan_ir.h panfrost: Emit the correct number of attributes 2022-07-23 00:56:10 +00:00
pan_liveness.c
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 midgard: Handle FB fetch from non-vec4 output variables. 2022-05-11 14:47:33 +00:00
pan_lower_framebuffer.h panfrost: Don't pass quirks to pan_lower_framebuffer 2022-01-28 17:47: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: Only write depth / stencil once if MRT is used 2022-05-24 16:13:33 +00:00
pan_sysval.c pan/bi: Handle transform feedback intrinsics 2022-06-04 14:35:56 +00:00