anv: Add and use color auxiliary buffer helpers
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 4 Apr 2017 16:56:16 +0000 (09:56 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 26 Jun 2017 18:09:12 +0000 (11:09 -0700)
commitbc838fc759dd268aebf31f91daf6c18ce76610ee
tree92d175ad09da0d1b5d3922a2a52f626e58f4482e
parent8aaa13467dc289d35dc7900ab9fab9a7689c4178
anv: Add and use color auxiliary buffer helpers

v2:
- Check for aux levels in layer helper (Jason Ekstrand)
- Don't assert aux is present, return 0 if it isn't.
- Use the helpers.
v3:
- Make the helpers aspect-agnostic (Jason Ekstrand)
- Drop anv_image_has_color_aux()

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (v2)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_private.h