anv: support VkSamplerYcbcrConversionInfo in vkCreateImageView
authorTapani Pälli <tapani.palli@intel.com>
Mon, 8 Oct 2018 11:42:53 +0000 (14:42 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 19 Dec 2018 07:38:41 +0000 (09:38 +0200)
commita7b7772cfba5856784357e2207fc5b9bedc26714
tree66f5f8afe04076f9f879828ed67bf00c3ed90fc0
parentbb0721aea4dd1607b873dd03cffe391ed658a713
anv: support VkSamplerYcbcrConversionInfo in vkCreateImageView

If a conversion struct was passed, then initialize view using
format from the conversion structure.

v2: use vk_format directly from the anv_format struct
v3: added some assertions (Lionel)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_image.c