anv: fix assert in GetImageDrmFormatModifierPropertiesEXT

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>
This commit is contained in:
Tapani Pälli 2020-01-20 09:13:48 +02:00
parent 31feae1c21
commit 8eebdd594b

View 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;