summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNataraj Deshpande <[email protected]>2019-06-05 12:32:01 -0700
committerJuan A. Suarez Romero <[email protected]>2019-06-06 09:41:56 +0000
commit147d6693be12e8feb97f0effca44c358207a05de (patch)
treeded833cf49905fe92f49fdbe49bc071036fd29d8
parent1f40ef24cc77331f7fe450a0d8e7e1199be217ba (diff)
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 <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Sagar Ghuge <[email protected]> (cherry picked from commit d6724471a5775cbbeaafff1e1982f322b1d04c94)
-rw-r--r--src/intel/vulkan/anv_image.c2
1 files changed, 1 insertions, 1 deletions
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) {