anv/android: fix image creation with external format
authorTapani Pälli <tapani.palli@intel.com>
Wed, 24 Mar 2021 12:22:18 +0000 (14:22 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 25 Mar 2021 05:33:38 +0000 (07:33 +0200)
commit382e5f2737af00256ce3e591604e6e9275300dde
treef85f6ac9f3dc1ff328909aaff7c9ab51fe4a5ba0
parent02492bea5f4749f5359eb2b9216a67af0fc193ea
anv/android: fix image creation with external format

This fixes crashes seen with following group of tests:
   android.graphics.cts.BasicVulkanGpuTest

Fixes: 6fa56273be7 ("anv/image: Drop duplicate 'format' in anv_image_create()")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9799>
src/intel/vulkan/anv_image.c