vk/0.210.0: Rework QueueFamilyProperties
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 3 Dec 2015 00:20:40 +0000 (16:20 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 3 Dec 2015 21:43:54 +0000 (13:43 -0800)
include/vulkan/vulkan.h
src/vulkan/anv_device.c

index 2d8f020232639f186c41c00b4e3b9d4e3b524194..0a9499eadfed3696e58e7a78ea233bedb3afdec4 100644 (file)
@@ -1311,7 +1311,8 @@ typedef struct VkPhysicalDeviceProperties {
 typedef struct VkQueueFamilyProperties {
     VkQueueFlags                                queueFlags;
     uint32_t                                    queueCount;
-    VkBool32                                    supportsTimestamps;
+    uint32_t                                    timestampValidBits;
+    VkExtent3D                                  minImageTransferGranularity;
 } VkQueueFamilyProperties;
 
 typedef struct VkMemoryType {
index 3fba33960d596a536ea2aa7e06c50aa7889676d3..11d97838c9670633c9c73df6773a685a9f127e82 100644 (file)
@@ -511,7 +511,8 @@ void anv_GetPhysicalDeviceQueueFamilyProperties(
                     VK_QUEUE_COMPUTE_BIT |
                     VK_QUEUE_TRANSFER_BIT,
       .queueCount = 1,
-      .supportsTimestamps = true,
+      .timestampValidBits = 0, /* XXX: Real value here */
+      .minImageTransferGranularity = (VkExtent3D) { 1, 1, 1 },
    };
 }