i915g: Use the color swizzle to reshuffle the blend const color.
authorEmma Anholt <emma@anholt.net>
Mon, 21 Jun 2021 16:28:59 +0000 (09:28 -0700)
committerEmma Anholt <emma@anholt.net>
Tue, 22 Jun 2021 18:06:56 +0000 (11:06 -0700)
commit4ef8eebdc7cf244a999e754c070471cfc3e8425a
tree0afedc077990634ac0199d876b47926b4fcb4ce1
parent0fda53b57499e905ca67e7d97fbb1f224713d1aa
i915g: Use the color swizzle to reshuffle the blend const color.

If we're remapping RGBA from the shader into dst channels, we also need to
remap the blend constant color.  The previous static mapping only worked
for ARGB cbufs, but we get ABGR in surfaceless deqp.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11512>
src/gallium/drivers/i915/ci/deqp-i915-g33-fails.txt
src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt
src/gallium/drivers/i915/i915_context.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/i915/i915_state_dynamic.c
src/gallium/drivers/i915/i915_state_fpc.c
src/gallium/drivers/i915/i915_state_static.c