diff options
author | Eric Engestrom <[email protected]> | 2018-07-25 19:51:51 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-07-25 20:55:35 +0100 |
commit | 270a44040cd5746c6f7c20303358c2a9984440db (patch) | |
tree | 07567bd9fff127e1c673f13e4a9f57443d93f4da /src/vulkan/wsi | |
parent | bbf8316fcb5b1a0f0681d75f016152b9b11adaaf (diff) |
vulkan/wsi: fix incorrect assignment in assert()
CovID: 1438113, 1438118, 1438119, 1438121
Fixes: dc1d10b396179766227df "anv,radv: Add support for VK_KHR_get_display_properties2"
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/vulkan/wsi')
-rw-r--r-- | src/vulkan/wsi/wsi_common_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c index ac932d4368a..e6cba188dfa 100644 --- a/src/vulkan/wsi/wsi_common_display.c +++ b/src/vulkan/wsi/wsi_common_display.c @@ -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, |