From 1f7dec25a7076edbfcd1238104e44d4a64cafc8d Mon Sep 17 00:00:00 2001 From: Taekyun Kim Date: Thu, 9 Jun 2016 14:38:33 +0900 Subject: [PATCH] samples: Skip checking shader clip distance device feature Mali ICD currently does not support the required feature, so just bypass it in order to make sample application run. Change-Id: Iec17ed429463b1b0789d953803820fd721b176ff --- samples/tri.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/tri.c b/samples/tri.c index 4a66f4e..9a0e493 100644 --- a/samples/tri.c +++ b/samples/tri.c @@ -562,7 +562,7 @@ static void demo_draw(struct demo *demo) { VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT; VkSubmitInfo submit_info = {.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, .pNext = NULL, - .waitSemaphoreCount = 1, + .waitSemaphoreCount = 0, .pWaitSemaphores = &presentCompleteSemaphore, .pWaitDstStageMask = &pipe_stage_flags, .commandBufferCount = 1, @@ -1645,7 +1645,6 @@ static void demo_run(struct demo *demo) { demo->curFrame++; if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) demo->quit = true; - sleep(1); } } @@ -2073,10 +2072,12 @@ static void demo_init_vk(struct demo *demo) { VkPhysicalDeviceFeatures features; vkGetPhysicalDeviceFeatures(demo->gpu, &features); +#if 0 /* Temporarily disable checking shader clip distance feature. */ if (!features.shaderClipDistance) { ERR_EXIT("Required device feature `shaderClipDistance` not supported\n", "GetPhysicalDeviceFeatures failure"); } +#endif // Graphics queue and MemMgr queue can be separate. // TODO: Add support for separate queues, including synchronization, -- 2.7.4