turnip: Don't use the dynamic color write enable during non-dynamic.
authorEmma Anholt <emma@anholt.net>
Tue, 4 Oct 2022 17:15:00 +0000 (10:15 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Oct 2022 20:50:51 +0000 (20:50 +0000)
commitdadb29cf2e21ba6b28a2d9ac62dd4ff13f7df9a2
treee074e059c0538c83c1c385d34ff090b5f93ad511
parent6f27bf250461e02ad7df17ad41cbfa71a4cae487
turnip: Don't use the dynamic color write enable during non-dynamic.

We have the correct merged color write enable state as a local var here,
use that instead of the zero cmd->state.color_write_enable.  Fixes
blending in many traces with ANGLE on turnip.  In the process of fixing,
clarify the logic a little bit.

Fixes: 169e03800d0f ("tu: Implement VK_EXT_color_write_enable")
Fixes: #7328
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18956>
src/freedreno/vulkan/tu_cmd_buffer.c