v3dv: Fix assert using assign instead of compare.
Fix defect reported by Coverity Scan.
Assign instead of compare (PW.ASSIGN_WHERE_COMPARE_MEANT)
assign_where_compare_meant: use of "=" where "==" may have been intended
Fixes: c75846e674
("v3dv: implement DRM modifier setup for WSI")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7124>
This commit is contained in:
parent
e7e24d5039
commit
e32eadc586
|
@ -385,7 +385,7 @@ v3dv_GetImageDrmFormatModifierPropertiesEXT(
|
|||
{
|
||||
V3DV_FROM_HANDLE(v3dv_image, image, _image);
|
||||
|
||||
assert(pProperties->sType =
|
||||
assert(pProperties->sType ==
|
||||
VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT);
|
||||
|
||||
pProperties->drmFormatModifier = image->drm_format_mod;
|
||||
|
|
Loading…
Reference in New Issue