From: Tapani Pälli Date: Mon, 20 Jan 2020 07:13:48 +0000 (+0200) Subject: anv: fix assert in GetImageDrmFormatModifierPropertiesEXT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8eebdd594bc4698e27899e0f771a61ddf2603370;p=mesa.git anv: fix assert in GetImageDrmFormatModifierPropertiesEXT CID: 1457861 Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Eric Engestrom Part-of: --- diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 37e1cae32ae..2f31f51ffa6 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1076,7 +1076,7 @@ VkResult anv_GetImageDrmFormatModifierPropertiesEXT( { ANV_FROM_HANDLE(anv_image, image, _image); - assert(pProperties->sType = + assert(pProperties->sType == VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT); pProperties->drmFormatModifier = image->drm_format_mod;