From: Tapani Pälli Date: Mon, 20 Jan 2020 07:36:10 +0000 (+0200) Subject: anv: add assert for isl_mod_info in choose_isl_tiling_flags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b2ccd6a0e98b0c70f9dae275f4a2d0b43219709;p=mesa.git anv: add assert for isl_mod_info in choose_isl_tiling_flags CID: 1457859 Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Eric Engestrom Tested-by: Marge Bot Part-of: --- 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; }