aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2015-12-30 10:47:26 +1300
committerJon Ashburn <jon@lunarg.com>2016-01-14 15:25:56 -0700
commit5c6c2aecd19258e6f3b5904b362c4a8c46a911ce (patch)
treebe199097496fb7a9331fdedaba72ee1e529420a2
parentd22510a14d05e59b2598b3b9780d62febfb7f375 (diff)
downloadusermoji-5c6c2aecd19258e6f3b5904b362c4a8c46a911ce.tar.xz
nulldrv: Expose some present modes
Signed-off-by: Chris Forbes <chrisforbes@google.com>
-rw-r--r--icd/nulldrv/nulldrv.c7
1 files changed, 7 insertions, 0 deletions
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;
}