COUNT_1_BIT is required min for sampledImageIntegerSampleCounts
authorAlexander Galazin <alexander.galazin@arm.com>
Thu, 13 Oct 2016 11:10:35 +0000 (13:10 +0200)
committerPyry Haulos <phaulos@google.com>
Fri, 14 Oct 2016 20:04:55 +0000 (16:04 -0400)
dEQP-VK.glsl.texture_functions.query.texturesamples.isampler*ms*
should work for VK_SAMPLE_COUNT_1_BIT sample count as these
tests check both MS and integer formats.

Fixes #517

Change-Id: I2f3362b630921f4c1111d84ab0ba291caeb80e9a

external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderTextureFunctionTests.cpp

index 6ec2dbd..ede6835 100644 (file)
@@ -1694,8 +1694,10 @@ TextureSamplesInstance::TextureSamplesInstance (Context&                         context,
                                                                                                                                                                        &properties) == vk::VK_ERROR_FORMAT_NOT_SUPPORTED)
                        TCU_THROW(NotSupportedError, "Format not supported");
 
+               // Integer pixel formats do not support multisampling, so need to add 1 MS in the list
                static const vk::VkSampleCountFlagBits  sampleFlags[]   =
                {
+                       vk::VK_SAMPLE_COUNT_1_BIT,
                        vk::VK_SAMPLE_COUNT_2_BIT,
                        vk::VK_SAMPLE_COUNT_4_BIT,
                        vk::VK_SAMPLE_COUNT_8_BIT,