anv: Add a helper to extract clear color from the attachment.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 28 Feb 2018 01:06:13 +0000 (17:06 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 5 Apr 2018 14:42:45 +0000 (07:42 -0700)
commit3f96b459f425d05dfb1c809b2b9c2f66f8763743
tree4a0b84ddb946a3876aa423ee280bbfd175a70271
parent7987d041fda0c98b243e540a46ac3a57a23cad26
anv: Add a helper to extract clear color from the attachment.

Extract the code from color_attachment_compute_aux_usage, so we can
later reuse it to update the clear color state buffer.

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_private.h
src/intel/vulkan/genX_cmd_buffer.c