anv: add assert for isl_mod_info in choose_isl_tiling_flags
authorTapani Pälli <tapani.palli@intel.com>
Mon, 20 Jan 2020 07:36:10 +0000 (09:36 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 20 Jan 2020 10:12:29 +0000 (12:12 +0200)
CID: 1457859
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3469>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3469>

src/intel/vulkan/anv_image.c

index 2f31f51ffa686cba08d4a98fcce703c8a0ee8f61..a2b4415585f9dc00518c5f2dab8e12eb768ce489 100644 (file)
@@ -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;
    }