anv: Sanitize Image extents and offsets
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 22 Mar 2016 17:53:37 +0000 (10:53 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 24 Mar 2016 23:15:00 +0000 (16:15 -0700)
commita5dc3c0f02aa523d1d3d123b62b9a187821079fe
tree36c486b5d659ebdbbaa96694ecabecf21770ff8c
parent20417b2cb05ff0f710eb6b6fbd9299ba915f8fc1
anv: Sanitize Image extents and offsets

Prepare Image extents and offsets for internal consumption by assigning
the default values implicitly defned by the spec. Fixes textures on
several Vulkan demos in which the VkImageCopy depth is set to zero when
copying a 2D image.

v2 (Jason Ekstrand):
   Replace "prep" with "sanitize"
   Make function static inline
   Pass structs instead of pointers

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