panfrost: Rework dirty tracking for Valhall
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 14 Apr 2022 20:12:01 +0000 (16:12 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 16 Apr 2022 14:15:14 +0000 (14:15 +0000)
commitc4167e8911bdffb8d95bc00ee9eb0cc39a5fe400
tree5b57ac0a1e77aec1bd1f8dc7d6e6807213c38b75
parentfc1397d1d7f2771ed3e529bebf5d73904f83bf95
panfrost: Rework dirty tracking for Valhall

Midgard aggregates a large amount of state into its renderer state descriptor.
Our current dirty tracking reflects this, with a single RENDERER dirty flag.
That won't work well on Valhall, which splits out orthogonal state into
independent descriptors (a blend descriptor, a depth/stencil descriptor, and so
on). To prepare for Valhall support, this patch moves the driver to finer dirty
tracking.

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