summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuelian Bai <xuelian.bai@samsung.com>2023-04-24 13:38:49 +0800
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-16 16:22:49 +0800
commit54cc721b7c93901afa19c0690e922052a75f85c4 (patch)
treee63a3fbe1a841238a0f1a5f8a1481085ab638de8
parentf046220cdd568272b7dc1803981f30ba86581761 (diff)
downloadvulkan-wsi-layer-54cc721b7c93901afa19c0690e922052a75f85c4.tar.gz
vulkan-wsi-layer-54cc721b7c93901afa19c0690e922052a75f85c4.tar.bz2
vulkan-wsi-layer-54cc721b7c93901afa19c0690e922052a75f85c4.zip
Fix issue of vkGetPhysicalDeviceSurfaceFormats2KHR
Fixed failed issue of cts case dEQP-VK.wsi.wayland.surface.query_formats2 Change-Id: I6a703e5c41812bced94073c562a4c0db710ae739 Signed-Off-by: Xuelian Bai <xuelian.bai@samsung.com>
-rw-r--r--layer/surface_api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layer/surface_api.cpp b/layer/surface_api.cpp
index 3d679bd..efdfbca 100644
--- a/layer/surface_api.cpp
+++ b/layer/surface_api.cpp
@@ -115,7 +115,7 @@ wsi_layer_vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice,
{
wsi::surface_properties *props = wsi::get_surface_properties(instance, pSurfaceInfo->surface);
assert(props != nullptr);
- return props->get_surface_formats(physicalDevice, pSurfaceFormatCount, nullptr, pSurfaceFormats);
+ return props->get_surface_formats_2(physicalDevice, pSurfaceInfo->surface, pSurfaceFormatCount, pSurfaceFormats);
}
return instance.disp.GetPhysicalDeviceSurfaceFormats2KHR(physicalDevice, pSurfaceInfo, pSurfaceFormatCount,