Use signed sampled type for signed integer formats
authorJohn Anthony <john.anthony@arm.com>
Sat, 22 Jan 2022 22:18:01 +0000 (23:18 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 28 Jan 2022 10:29:55 +0000 (10:29 +0000)
Nontemporal image write tests incorrectly use an unsigned sampled type
for signed integer formats.

Affects:
dEQP-VK.image.nontemporal_operand.*sint

Components: Vulkan
VK-GL-CTS issue: 3469

Change-Id: Ib77faf8cff8d2aec31f5f9c7f97d5b5172fa7dcc

external/vulkancts/modules/vulkan/image/vktImageLoadStoreTests.cpp

index 7032d68..fadbfed 100644 (file)
@@ -2863,7 +2863,7 @@ tcu::TestCaseGroup* createImageNontemporalOperandTests(tcu::TestContext& testCtx
        {
                const std::string       caseName        = getFormatShortString(format);
                const auto                      readFormat      = format;
-               const auto                      writeFormat     = getShaderExtensionOperandFormat(false, is64BitIntegerFormat(format));
+               const auto                      writeFormat     = getShaderExtensionOperandFormat(isIntFormat(format), is64BitIntegerFormat(format));
 
                if (!hasSpirvFormat(readFormat) || !hasSpirvFormat(writeFormat))
                        continue;