anv: fix assert in GetImageDrmFormatModifierPropertiesEXT
authorTapani Pälli <tapani.palli@intel.com>
Mon, 20 Jan 2020 07:13:48 +0000 (09:13 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 20 Jan 2020 10:11:43 +0000 (12:11 +0200)
CID: 1457861
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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3469>

src/intel/vulkan/anv_image.c

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