Change sampledImageIntegerSampleCounts to sampleCounts
The logic of PhysicalDevice::getImageFormatProperties(), as well as
testing with ANGLE, shows that multisampling of integer formats is
supported and works. The value of
VkPhysicalDeviceLimits::sampledImageIntegerSampleCounts should therefore
be set to:
VK_SAMPLE_COUNT_1_BIT | VK_SAMPLE_COUNT_4_BIT
Bug: b/147438583
Change-Id: Iaa7bd22789fd20b4e7975d3d2ffee2a8f90b006b
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40068
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Ian Elliott <ianelliott@google.com>
diff --git a/src/Vulkan/VkPhysicalDevice.cpp b/src/Vulkan/VkPhysicalDevice.cpp
index 1f3458f..129b824 100644
--- a/src/Vulkan/VkPhysicalDevice.cpp
+++ b/src/Vulkan/VkPhysicalDevice.cpp
@@ -260,7 +260,7 @@
sampleCounts, // framebufferNoAttachmentsSampleCounts
4, // maxColorAttachments
sampleCounts, // sampledImageColorSampleCounts
- VK_SAMPLE_COUNT_1_BIT, // sampledImageIntegerSampleCounts
+ sampleCounts, // sampledImageIntegerSampleCounts
sampleCounts, // sampledImageDepthSampleCounts
sampleCounts, // sampledImageStencilSampleCounts
VK_SAMPLE_COUNT_1_BIT, // storageImageSampleCounts (unsupported)