anv/image: Add anv_layout_to_aux_usage()
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 1 Feb 2017 19:27:58 +0000 (11:27 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 2 Mar 2017 21:17:54 +0000 (13:17 -0800)
commit425e33bcdb273911ca28efebbe15e66dffaac0d3
tree1e9837b35a35feb45978ad2bcf68677154d051e6
parent178f9e5f29f3fe83eb5af99a69d7c583c30d21d1
anv/image: Add anv_layout_to_aux_usage()

This function supersedes layout_to_hiz_usage().

v2:
- Don't find the optimal buffer for layout transitions (Jason Ekstrand).
- Pass the devinfo instead of the gen (Jason Ekstrand)
- Update the function documentation.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h