From 5c6c2aecd19258e6f3b5904b362c4a8c46a911ce Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 30 Dec 2015 10:47:26 +1300 Subject: nulldrv: Expose some present modes Signed-off-by: Chris Forbes --- icd/nulldrv/nulldrv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/icd/nulldrv/nulldrv.c b/icd/nulldrv/nulldrv.c index 7433ae79..aa0be926 100644 --- a/icd/nulldrv/nulldrv.c +++ b/icd/nulldrv/nulldrv.c @@ -761,6 +761,13 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR( { NULLDRV_LOG_FUNC; + if (pPresentModes) { + pPresentModes[0] = VK_PRESENT_MODE_IMMEDIATE_KHR; + pPresentModes[1] = VK_PRESENT_MODE_FIFO_KHR; + } else { + *pPresentModeCount = 2; + } + return VK_SUCCESS; } -- cgit v1.2.3