iris: Manually apply fast clear color channel overrides.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 27 Mar 2019 17:27:18 +0000 (10:27 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Tue, 2 Apr 2019 22:26:38 +0000 (15:26 -0700)
commitc26d8a887d003d70518035e3db1ff3de260e8434
tree10cd385acc92b6ee74ebf0508b6e3e94aa19e655
parent26606672847501b93a4b070165fc23d2d845810a
iris: Manually apply fast clear color channel overrides.

At the fast clear time, the only swizzle we have available is actually
the identity swizzle (which we use for most rendering). So the call to
swizzle_color_value() becomes simply a no-op, and doesn't properly zero
out the unused channels.

We have to manually override those channels.

Fixes: a8b5ea8ef015ed4a "iris: Add function to update clear color in surface state."
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_clear.c