From: Chad Versace Date: Thu, 21 Jan 2016 00:04:28 +0000 (-0800) Subject: anv: Use isl_device_get_sample_counts() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c5d7b38e288314d1affbf75887b40de6596ca4d;p=mesa.git anv: Use isl_device_get_sample_counts() Use it in vkGetPhysicalDeviceProperties. --- 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),