From fed04de4812df3bd30f6e59f109c88f49f0444ae Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 7 Apr 2022 10:39:05 -0400 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/panfrost/pan_job.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h index 03f6337f9e4..a905ec028f6 100644 --- a/src/gallium/drivers/panfrost/pan_job.h +++ b/src/gallium/drivers/panfrost/pan_job.h @@ -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;