diff options
author | Nataraj Deshpande <[email protected]> | 2019-06-05 12:32:01 -0700 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-06-06 09:24:08 +0300 |
commit | d6724471a5775cbbeaafff1e1982f322b1d04c94 (patch) | |
tree | ad48f9dc5b8369412d086c13ab6a3a6c7ac752e4 /src/intel/vulkan/anv_image.c | |
parent | 09d230c6cfdc2dfd1cf5eef28b158dadc636228f (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]>
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r-- | src/intel/vulkan/anv_image.c | 2 |
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) { |