From d6724471a5775cbbeaafff1e1982f322b1d04c94 Mon Sep 17 00:00:00 2001 From: Nataraj Deshpande Date: Wed, 5 Jun 2019 12:32:01 -0700 Subject: [PATCH] anv: Fix check for isl_fmt in assert MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/intel/vulkan/anv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2