zink: fix up color_write_enable workaround
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 24 Mar 2022 19:44:02 +0000 (15:44 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 03:09:26 +0000 (03:09 +0000)
commit4c6931fca9b2756e0cb36f8085f4c6dc4f142079
tree99f29fd5cf52349edc749b7b8ddee38332180020
parentc0f52f08a114b7bba414dab3170d317d32c7de8c
zink: fix up color_write_enable workaround

this needs to only swizzle to dummy surfaces if it's the workaround,
not just if color_write_enable is active

Fixes: 3892c133811 ("zink: add an alternate path for EXT_color_write_enable usage")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15568>
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_context.h
src/gallium/drivers/zink/zink_framebuffer.c