panfrost: Add Valhall fields to panfrost_batch

There are new data structures that we need to (dirty) track. Add the
corresponding fields so we can proceed as with Bifrost dirty tracking.

Trivial increase in memory usage, but that should not matter as batches are
few.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15797>
This commit is contained in:
Alyssa Rosenzweig 2022-04-07 10:39:05 -04:00 committed by Marge Bot
parent 270e3e02f2
commit fed04de481

View file

@ -129,6 +129,17 @@ struct panfrost_batch {
mali_ptr attrib_bufs[PIPE_SHADER_TYPES];
mali_ptr uniform_buffers[PIPE_SHADER_TYPES];
mali_ptr push_uniforms[PIPE_SHADER_TYPES];
mali_ptr depth_stencil;
mali_ptr blend;
/* Valhall: struct mali_scissor_packed */
unsigned scissor[2];
float minimum_z, maximum_z;
/* Used on Valhall only. Midgard includes attributes in-band with
* attributes, wildly enough.
*/
mali_ptr images[PIPE_SHADER_TYPES];
/* Referenced resources */
struct set *resources;