iris: Allocate buffer space for the fast clear color.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 15 Feb 2019 22:45:05 +0000 (14:45 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Wed, 20 Mar 2019 23:46:25 +0000 (16:46 -0700)
commit37f2692591cb1af12325d16f7fea17cc761ae9d5
tree56b28ac27727560f6f138e047a5b748b2ad9b2fc
parent5f5ac19f138125b04d8ddedd6334b996f8925a4a
iris: Allocate buffer space for the fast clear color.

Also store clear color in the iris_resource.

Always allocate clear color state buffer.

v2:
 - Make clear_color_offset be 64 bits (Ken).
 - Simplify the logic to decide when to memset the aux buffer (Ken).

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