anv: Emit the fast clear color address, instead of value.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 18 Jan 2018 17:50:48 +0000 (09:50 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 5 Apr 2018 14:42:45 +0000 (07:42 -0700)
commit021e1885d0d09adf3b9bc40c74172f983a2263dd
tree22cb9e705ceabe25f91e6348480e260be353486d
parent3f96b459f425d05dfb1c809b2b9c2f66f8763743
anv: Emit the fast clear color address, instead of value.

On Gen10+, instead of copying the clear color from the state buffer to
the surface state, just use the address of the state buffer in the
surface state directly. This way we can avoid the copy from state buffer
to surface state.

v4:
 - Remove use_clear_address from anv code. (Jason)
 - Use the helper to extract clear color from attachment (Jason)

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