anv: Do not emulate texture swizzle for INPUT_ATTACHMENT, STORAGE_IMAGE
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Wed, 22 May 2019 11:55:45 +0000 (14:55 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 24 May 2019 09:20:38 +0000 (09:20 +0000)
commitc82dcf89ae853f6c499bc2c4422293750b4e1d1b
tree12aa89b1e848f895d9ef1357c6ce57fdd7355630
parent397fe0cc50ef21f5fa8f6e45d599403325a142a4
anv: Do not emulate texture swizzle for INPUT_ATTACHMENT, STORAGE_IMAGE

If descriptorType is VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
or VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, the imageView member of each
element of pImageInfo must have been created with the identity swizzle.

Fixes: d2aa65eb

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_nir_apply_pipeline_layout.c