aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiers Daniell <pdaniell@nvidia.com>2016-12-13 16:51:49 -0700
committerMark Young <marky@lunarg.com>2016-12-13 17:14:38 -0700
commit7ec63c08b822006623585532cea88543b287c866 (patch)
treee85d63a7204a167ad10a548a5a0312afe7def982
parent52ad352e3b3ee86123bdecf17d09b83714db7741 (diff)
downloadusermoji-7ec63c08b822006623585532cea88543b287c866.tar.xz
Allocate for real ICD surfaces for the VK_KHR_display extension
This was done for all the other WSI extensions, just not VK_KHR_display
-rw-r--r--loader/wsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/loader/wsi.c b/loader/wsi.c
index c6270268..9462b448 100644
--- a/loader/wsi.c
+++ b/loader/wsi.c
@@ -1528,11 +1528,10 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDisplayPlaneSurfaceKHR(
goto out;
}
- // The VK_KHR_display path will continue to use the old path (hence the
- // false as the last parameter).
+ // Next, if so, proceed with the implementation of this function:
pIcdSurface =
AllocateIcdSurfaceStruct(inst, sizeof(pIcdSurface->display_surf.base),
- sizeof(pIcdSurface->display_surf), false);
+ sizeof(pIcdSurface->display_surf), true);
if (pIcdSurface == NULL) {
vkRes = VK_ERROR_OUT_OF_HOST_MEMORY;
goto out;