From: Bas Nieuwenhuizen Date: Tue, 24 Dec 2019 13:44:03 +0000 (+0100) Subject: radv: Expose all sample counts for integer formats as well. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a435f002c40f5adc99d37e65cf6b8bd478dc8e71;p=mesa.git radv: Expose all sample counts for integer formats as well. Things work the same between float and integer. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2261 CC: Reviewed-by: Samuel Pitoiset --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index d56125d328e..a1dffe90b8a 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1323,7 +1323,7 @@ void radv_GetPhysicalDeviceProperties( .framebufferNoAttachmentsSampleCounts = sample_counts, .maxColorAttachments = MAX_RTS, .sampledImageColorSampleCounts = sample_counts, - .sampledImageIntegerSampleCounts = VK_SAMPLE_COUNT_1_BIT, + .sampledImageIntegerSampleCounts = sample_counts, .sampledImageDepthSampleCounts = sample_counts, .sampledImageStencilSampleCounts = sample_counts, .storageImageSampleCounts = pdevice->rad_info.chip_class >= GFX8 ? sample_counts : VK_SAMPLE_COUNT_1_BIT,