freedreno/a6xx: avoid unnecessary clearing VS DP state
authorRob Clark <robdclark@chromium.org>
Thu, 16 Apr 2020 17:18:29 +0000 (10:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 20:03:17 +0000 (20:03 +0000)
commit89dbdb806faaf1a4b3da0ce0ab597f9ced40d549
treedd30f9ce60419568d38d73de9430a8a200371d57
parentf583dc68e5586fd468475ae833ee3ce8fab5a95b
freedreno/a6xx: avoid unnecessary clearing VS DP state

If there is no (potentially unflushed) VS driver-param state, we don't
need to emit a DISABLE on each frame.  So avoid that to reduce CP
overhead.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4813>
src/gallium/drivers/freedreno/a6xx/fd6_context.h
src/gallium/drivers/freedreno/a6xx/fd6_emit.c