anv/image: Fix initialization of the ISL tiling
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 24 Jun 2016 22:39:14 +0000 (15:39 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 15 Jul 2016 17:35:40 +0000 (10:35 -0700)
commit1ef80b26d7488c1ac3174d4725d736ae3de9b4fd
tree98a67cab7d88ea3c8f1f3e498a666464c61a4f7a
parent00caba4152fd85492d1eb3306ae6890b3f9e90b2
anv/image: Fix initialization of the ISL tiling

If an internal user creates an image with Vulkan tiling VK_IMAGE_TILING_OPTIMAL
and an ISL tiling that isn't set, ISL will fail to create the image as
anv_image_create_info::isl_tiling_flags will be an invalid value.

Correct this by making anv_image_create_info::isl_tiling_flags an opt-in,
filtering bitmask, that allows the caller to specify which ISL tilings are
acceptable, but not contradictory to the Vulkan tiling.

Opt-out of filtering for vkCreateImage.

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