Remove Clip/CullDistance when not needed
authorGraeme Leese <gleese@broadcom.com>
Thu, 13 Dec 2018 09:58:28 +0000 (09:58 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 18 Dec 2018 09:31:51 +0000 (04:31 -0500)
Although the tests don't need clip or cull distances the capabilities
are enabled, which means that features would need to be enabled. Remove
the capabilities.

Components: Vulkan
Affects: dEQP-VK.spirv_assembly.instruction.*.float_controls.*
         dEQP-VK.spirv_assembly.instruction.compute.multiple_shaders.*

Change-Id: If8e18b1608f4d8d2782e9010c531a4e20119b414

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

index 5a1a358..1fb012d 100644 (file)
@@ -2589,8 +2589,6 @@ void getGraphicsShaderCode (vk::SourceCollections& dst, InstanceContext context)
 
        static const string vertexTemplate =
                "OpCapability Shader\n"
-               "OpCapability ClipDistance\n"
-               "OpCapability CullDistance\n"
                "${vert_capabilities}"
 
                "OpExtension \"SPV_KHR_float_controls\"\n"
index a157281..eb90780 100644 (file)
@@ -4018,7 +4018,6 @@ tcu::TestCaseGroup* createMultipleShaderGroup (tcu::TestContext& testCtx)
 
        const string assembly(
                "OpCapability Shader\n"
-               "OpCapability ClipDistance\n"
                "OpMemoryModel Logical GLSL450\n"
                "OpEntryPoint GLCompute %comp_main1 \"entrypoint1\" %id\n"
                "OpEntryPoint GLCompute %comp_main2 \"entrypoint2\" %id\n"