summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-07-09 16:11:24 -0700
committerJason Ekstrand <[email protected]>2015-07-09 16:14:37 -0700
commit1f907011a344d7e05fa54933cb17942ecd990602 (patch)
tree9971036bdeb5933581fd68d2772be0d120dd9338 /src
parent977a469bce41df42508121433c6e2b86534ec362 (diff)
vk: Add the new PhysicalDeviceQueue queries
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index c5e35bcc049..3cb04a1d4c2 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -389,6 +389,33 @@ VkResult anv_GetPhysicalDeviceProperties(
return VK_SUCCESS;
}
+VkResult anv_GetPhysicalDeviceQueueCount(
+ VkPhysicalDevice physicalDevice,
+ uint32_t* pCount)
+{
+ *pCount = 1;
+
+ return VK_SUCCESS;
+}
+
+VkResult anv_GetPhysicalDeviceQueueProperties(
+ VkPhysicalDevice physicalDevice,
+ uint32_t count,
+ VkPhysicalDeviceQueueProperties* pQueueProperties)
+{
+ assert(count == 1);
+
+ *pQueueProperties = (VkPhysicalDeviceQueueProperties) {
+ .queueFlags = VK_QUEUE_GRAPHICS_BIT |
+ VK_QUEUE_COMPUTE_BIT |
+ VK_QUEUE_DMA_BIT,
+ .queueCount = 1,
+ .supportsTimestamps = true,
+ };
+
+ return VK_SUCCESS;
+}
+
VkResult anv_GetPhysicalDeviceInfo(
VkPhysicalDevice physicalDevice,
VkPhysicalDeviceInfoType infoType,