vk: Provide more realistic values for device info
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Mon, 18 May 2015 17:17:53 +0000 (10:17 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Mon, 18 May 2015 17:27:08 +0000 (10:27 -0700)
src/vulkan/device.c

index 49b268a37394b9a516fb42b387e74b5bf55f5ccd..b3fa69015c15263bca86e221d29a4726dcfc02d4 100644 (file)
@@ -202,11 +202,11 @@ VkResult anv_GetPhysicalDeviceInfo(
       properties->deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU;
       strcpy(properties->deviceName, device->name);
       properties->maxInlineMemoryUpdateSize = 0;
-      properties->maxBoundDescriptorSets = 0;
-      properties->maxThreadGroupSize = 0;
+      properties->maxBoundDescriptorSets = MAX_SETS;
+      properties->maxThreadGroupSize = 512;
       properties->timestampFrequency = 1000 * 1000 * 1000 / ns_per_tick;
-      properties->multiColorAttachmentClears = 0;
-      properties->maxDescriptorSets = 2;
+      properties->multiColorAttachmentClears = true;
+      properties->maxDescriptorSets = 8;
       properties->maxViewports = 16;
       properties->maxColorAttachments = 8;
       return VK_SUCCESS;
@@ -235,8 +235,8 @@ VkResult anv_GetPhysicalDeviceInfo(
       queue_properties->queueFlags = 0;
       queue_properties->queueCount = 1;
       queue_properties->maxAtomicCounters = 0;
-      queue_properties->supportsTimestamps = 0;
-      queue_properties->maxMemReferences = 0;
+      queue_properties->supportsTimestamps = true;
+      queue_properties->maxMemReferences = 256;
       return VK_SUCCESS;
 
    case VK_PHYSICAL_DEVICE_INFO_TYPE_MEMORY_PROPERTIES: