anv: Properly advertise sampledImageIntegerSampleCounts
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 24 Dec 2019 04:19:29 +0000 (22:19 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 24 Dec 2019 14:31:44 +0000 (08:31 -0600)
We support the same set of samples for integer color formats as for
non-integer.  We've been advertising it wrong since before the initial
Vulkan 1.0 release. :-(

Fixes: d68974530371 "vk/0.210.0: Rework device features and limits"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c

index e8ed58cafba27c115ca545e3547acda7bf11f2a6..3b4f40a998defce5eae00546f27ab99ebaccf7c5 100644 (file)
@@ -1408,7 +1408,7 @@ void anv_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                 = VK_SAMPLE_COUNT_1_BIT,