vulkan/wsi: fix incorrect assignment in assert()
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 25 Jul 2018 18:51:51 +0000 (19:51 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 25 Jul 2018 19:55:35 +0000 (20:55 +0100)
CovID: 1438113143811814381191438121
Fixes: dc1d10b396179766227df "anv,radv: Add support for VK_KHR_get_display_properties2"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/vulkan/wsi/wsi_common_display.c

index ac932d4368a0293fe97eeb8096fc3e5d252aa24c..e6cba188dfaf8d790415ea104e2941662dedbbc6 100644 (file)
@@ -619,7 +619,7 @@ wsi_display_fill_in_display_mode_properties(
    struct wsi_display_mode *display_mode,
    VkDisplayModeProperties2KHR *properties)
 {
-   assert(properties->sType = VK_STRUCTURE_TYPE_DISPLAY_MODE_PROPERTIES_2_KHR);
+   assert(properties->sType == VK_STRUCTURE_TYPE_DISPLAY_MODE_PROPERTIES_2_KHR);
    VkDisplayModePropertiesKHR *prop = &properties->displayModeProperties;
 
    prop->displayMode = wsi_display_mode_to_handle(display_mode);
@@ -763,7 +763,7 @@ wsi_get_display_plane_capabilities2(
    const VkDisplayPlaneInfo2KHR *pDisplayPlaneInfo,
    VkDisplayPlaneCapabilities2KHR *capabilities)
 {
-   assert(capabilities->sType =
+   assert(capabilities->sType ==
           VK_STRUCTURE_TYPE_DISPLAY_PLANE_CAPABILITIES_2_KHR);
 
    return wsi_get_display_plane_capabilities(physical_device, wsi_device,