anv: Use isl_device_get_sample_counts()
authorChad Versace <chad.versace@intel.com>
Thu, 21 Jan 2016 00:04:28 +0000 (16:04 -0800)
committerChad Versace <chad.versace@intel.com>
Sat, 23 Jan 2016 01:19:57 +0000 (17:19 -0800)
Use it in vkGetPhysicalDeviceProperties.

src/vulkan/anv_device.c

index 7d0f25e..ed9bb08 100644 (file)
@@ -397,10 +397,7 @@ void anv_GetPhysicalDeviceProperties(
    const float time_stamp_base = devinfo->gen >= 9 ? 83.333 : 80.0;
 
    VkSampleCountFlags sample_counts =
-      VK_SAMPLE_COUNT_1_BIT |
-      VK_SAMPLE_COUNT_2_BIT |
-      VK_SAMPLE_COUNT_4_BIT |
-      VK_SAMPLE_COUNT_8_BIT;
+      isl_device_get_sample_counts(&pdevice->isl_dev);
 
    VkPhysicalDeviceLimits limits = {
       .maxImageDimension1D                      = (1 << 14),