aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2015-07-01 13:31:02 -0600
committerTony Barbour <tony@LunarG.com>2015-07-01 13:31:02 -0600
commit2ca7b085fc90c156c6920b3fe9580511ac481ec5 (patch)
tree0e105471ed0a2f8dd999264987aa101008cef6bc /loader
parent50bbca4293c3d2ee5b87fedb824e71f0f19e0c46 (diff)
downloadusermoji-2ca7b085fc90c156c6920b3fe9580511ac481ec5.tar.xz
loader: Remove locks from vkGet routines
If the driver needs thread safety to answer "get" requests, it is assumed that it will lock for itself
Diffstat (limited to 'loader')
-rw-r--r--loader/trampoline.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/loader/trampoline.c b/loader/trampoline.c
index 3967fbfd..1f96b3b8 100644
--- a/loader/trampoline.c
+++ b/loader/trampoline.c
@@ -154,11 +154,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceProperties(
VkResult res;
disp = loader_get_instance_dispatch(gpu);
-
- loader_platform_thread_lock_mutex(&loader_lock);
res = disp->GetPhysicalDeviceProperties(gpu, pProperties);
- loader_platform_thread_unlock_mutex(&loader_lock);
-
return res;
}
@@ -170,11 +166,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDevicePerformance(
VkResult res;
disp = loader_get_instance_dispatch(gpu);
-
- loader_platform_thread_lock_mutex(&loader_lock);
res = disp->GetPhysicalDevicePerformance(gpu, pPerformance);
- loader_platform_thread_unlock_mutex(&loader_lock);
-
return res;
}
@@ -186,11 +178,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceQueueCount(
VkResult res;
disp = loader_get_instance_dispatch(gpu);
-
- loader_platform_thread_lock_mutex(&loader_lock);
res = disp->GetPhysicalDeviceQueueCount(gpu, pCount);
- loader_platform_thread_unlock_mutex(&loader_lock);
-
return res;
}
@@ -203,11 +191,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceQueueProperties(
VkResult res;
disp = loader_get_instance_dispatch(gpu);
-
- loader_platform_thread_lock_mutex(&loader_lock);
res = disp->GetPhysicalDeviceQueueProperties(gpu, count, pQueueProperties);
- loader_platform_thread_unlock_mutex(&loader_lock);
-
return res;
}
@@ -219,11 +203,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceMemoryProperties(
VkResult res;
disp = loader_get_instance_dispatch(gpu);
-
- loader_platform_thread_lock_mutex(&loader_lock);
res = disp->GetPhysicalDeviceMemoryProperties(gpu, pMemoryProperties);
- loader_platform_thread_unlock_mutex(&loader_lock);
-
return res;
}
@@ -235,11 +215,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceFeatures(
VkResult res;
disp = loader_get_instance_dispatch(gpu);
-
- loader_platform_thread_lock_mutex(&loader_lock);
res = disp->GetPhysicalDeviceFeatures(gpu, pFeatures);
- loader_platform_thread_unlock_mutex(&loader_lock);
-
return res;
}
@@ -252,11 +228,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceFormatInfo(
VkResult res;
disp = loader_get_instance_dispatch(gpu);
-
- loader_platform_thread_lock_mutex(&loader_lock);
res = disp->GetPhysicalDeviceFormatInfo(gpu, format, pFormatInfo);
- loader_platform_thread_unlock_mutex(&loader_lock);
-
return res;
}
@@ -268,11 +240,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceLimits(
VkResult res;
disp = loader_get_instance_dispatch(gpu);
-
- loader_platform_thread_lock_mutex(&loader_lock);
res = disp->GetPhysicalDeviceLimits(gpu, pLimits);
- loader_platform_thread_unlock_mutex(&loader_lock);
-
return res;
}
@@ -312,9 +280,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceExtensionProperties(
{
VkResult res;
- loader_platform_thread_lock_mutex(&loader_lock);
res = loader_GetPhysicalDeviceExtensionProperties(gpu, extensionIndex, pProperties);
- loader_platform_thread_unlock_mutex(&loader_lock);
return res;
}
@@ -324,9 +290,7 @@ LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceExtensionCount(
{
VkResult res;
- loader_platform_thread_lock_mutex(&loader_lock);
res = loader_GetPhysicalDeviceExtensionCount(gpu, pCount);
- loader_platform_thread_unlock_mutex(&loader_lock);
return res;
}