intel/isl: Add support to emit clear value address.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 10 Aug 2017 16:29:51 +0000 (09:29 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 5 Apr 2018 14:42:45 +0000 (07:42 -0700)
commitb8f45cf967e1810c4e59b49b1ed1d955f01496a1
tree7516e7c6604f5acc18541511b836c8e8318e72f2
parent94675edcfda93dab29f2ed8a1f218d6491dbb085
intel/isl: Add support to emit clear value address.

gen10 can emit the clear color by setting it on a buffer somewhere, and
then adding only the address to the surface state.

This commit add support for that on isl_surf_fill_state, and if that is
requested, skip setting the clear value itself.

v2: Add assert to make sure we are at least on gen10.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/isl/isl.h
src/intel/isl/isl_surface_state.c