Require VK_KHR_shader_float16_int8 in float16 opconstant tests
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 4 Oct 2018 07:43:17 +0000 (09:43 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 22 Nov 2018 10:38:19 +0000 (05:38 -0500)
The SPIR-V code in the shaders used by these tests includes
16-bit floating point OpVectorTimesScalar and
OpMatrixTimesVector operations, which require the extension. There
is no compute version of these tests, only graphics.

Components: Vulkan
VK-GL-CTS issue: 1403

Affects:
dEQP-VK.spirv_assembly.instruction.graphics.float16.opconstant.*

Change-Id: If0f7960013759a0d5dad41629dcefc79350c3c88
(cherry picked from commit a83c04cd2f258fbce81ddbaa10f1e5ae092deb8b)

external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp

index 667f1dc..ccbd2cb 100644 (file)
@@ -9510,6 +9510,7 @@ tcu::TestCaseGroup* createOpConstantFloat16Tests(tcu::TestContext& testCtx)
        outputColors[3] = RGBA(127, 127, 255, 255);
 
        extensions.push_back("VK_KHR_16bit_storage");
+       extensions.push_back("VK_KHR_shader_float16_int8");
 
        for (size_t testNdx = 0; testNdx < sizeof(tests) / sizeof(NameConstantsCode); ++testNdx)
        {