panfrost: Analyze sysval dirty flags
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 20 May 2021 17:22:39 +0000 (13:22 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Jun 2021 19:10:28 +0000 (19:10 +0000)
commit6e61c54d3072ec9fcd0b4045be06a9071f199093
treefe2c96b5912bf5f58d50d4f28259be1c8e3bfd5f
parent8e9c043d5e57282a8feb54aa6029f284cec8ac12
panfrost: Analyze sysval dirty flags

We want dirty tracking for constant buffer uploads, but which dirty
flags are needed depend on what the sysvals are. So for each sysval,
record a corresponding dirty flag at compile time, so at draw-time the
check is easy.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11074>
src/gallium/drivers/panfrost/pan_assemble.c
src/gallium/drivers/panfrost/pan_cmdstream.c
src/gallium/drivers/panfrost/pan_context.h