Skip to content

Commit

Permalink
Temporary hack for ngscopeclient#685
Browse files Browse the repository at this point in the history
  • Loading branch information
ehntoo committed Sep 11, 2022
1 parent 4a27b2f commit 028ed97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scopehal/VulkanInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ vk::raii::PhysicalDevice* g_vkfftPhysicalDevice;
*/
int AllocateVulkanComputeQueue()
{
#ifdef __APPLE__
return 0;
#endif
static mutex allocMutex;

lock_guard<mutex> lock(allocMutex);
Expand All @@ -177,6 +180,9 @@ int AllocateVulkanComputeQueue()
*/
int AllocateVulkanRenderQueue()
{
#ifdef __APPLE__
return 0;
#endif
//If compute and rendering use the same kind of queue, make sure we don't double count!
if(g_computeQueueType == g_renderQueueType)
return AllocateVulkanComputeQueue();
Expand Down

0 comments on commit 028ed97

Please sign in to comment.