iris: Implement fast clear color.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 20 Feb 2019 00:07:09 +0000 (16:07 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Wed, 20 Mar 2019 23:46:25 +0000 (16:46 -0700)
commit131b42f0aa574cc654c5970ba48c4d1896f6d502
tree7d7cfdfe28c866440210003f3db4844e2972d58c
parentbd6f51ec21079ba7d6dc2b203cb4920bb893aa12
iris: Implement fast clear color.

If all the restrictions are satisfied, do a fast clear instead of
regular clear.

v2:
 - add perf_debug() when we can't fast clear (Ken)
 - improve comment: s/miptree/resource/ (Ken)
 - use swizzle_color_value from blorp (Ken)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_clear.c
src/gallium/drivers/iris/iris_state.c