From 1c5d7b38e288314d1affbf75887b40de6596ca4d Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 20 Jan 2016 16:04:28 -0800 Subject: [PATCH] anv: Use isl_device_get_sample_counts() Use it in vkGetPhysicalDeviceProperties. --- src/vulkan/anv_device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 7d0f25e7d70..ed9bb0852c8 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -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), -- 2.30.2