radv: Expose all sample counts for integer formats as well.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 24 Dec 2019 13:44:03 +0000 (14:44 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 26 Dec 2019 09:48:29 +0000 (10:48 +0100)
Things work the same between float and integer.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2261
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index d56125d328e49f490d26a44007fe84010d2f8671..a1dffe90b8a0dc2d0a30627155f82a7aefaef336 100644 (file)
@@ -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,