From 9b2ccd6a0e98b0c70f9dae275f4a2d0b43219709 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Mon, 20 Jan 2020 09:36:10 +0200 Subject: [PATCH] anv: add assert for isl_mod_info in choose_isl_tiling_flags MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CID: 1457859 Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Eric Engestrom Tested-by: Marge Bot Part-of: --- src/intel/vulkan/anv_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 2f31f51ffa6..a2b4415585f 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -112,6 +112,7 @@ choose_isl_tiling_flags(const struct anv_image_create_info *anv_info, flags = ISL_TILING_LINEAR_BIT; break; case VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT: + assert(isl_mod_info); flags = 1 << isl_mod_info->tiling; } -- 2.30.2