From: Nataraj Deshpande Date: Wed, 5 Jun 2019 19:32:01 +0000 (-0700) Subject: anv: Fix check for isl_fmt in assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6724471a5775cbbeaafff1e1982f322b1d04c94;p=mesa.git anv: Fix check for isl_fmt in assert Checking isl_fmt returned value in assert seems appropriate instead of format variable. Fixes: f1654fa7e31 "anv/android: support creating images from external format" Signed-off-by: Nataraj Deshpande Reviewed-by: Tapani Pälli Reviewed-by: Sagar Ghuge --- diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 8e45803a7bc..038a01f8a39 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -821,7 +821,7 @@ resolve_ahw_image(struct anv_device *device, vk_format, VK_IMAGE_ASPECT_COLOR_BIT, vk_tiling); - assert(format != ISL_FORMAT_UNSUPPORTED); + assert(isl_fmt != ISL_FORMAT_UNSUPPORTED); /* Handle RGB(X)->RGBA fallback. */ switch (desc.format) {