freedreno/a6xx: fixup draw state earlier
authorRob Clark <robdclark@chromium.org>
Wed, 29 Jul 2020 17:14:34 +0000 (10:14 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 20:22:05 +0000 (20:22 +0000)
commitb5558f2d2aa738d90b9e039144ae3ca69bdf92ca
tree8b04a4e64bc2c9983637bd24554b3e1927bee61c
parent82b419fefde427874152e8de2e838178c20cf00a
freedreno/a6xx: fixup draw state earlier

`fixup_draw_state()` was updating `ctx->dirty` after it had already been
copied into the emit struct, which had the result that we were not re-
emitting the rast state when primitive_restart changes.

Fixes: 4d8f42c8512 ("freedreno/a6xx: separate rast stateobj for prim restart")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3067
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6117>
src/gallium/drivers/freedreno/a6xx/fd6_draw.c