Avoid invalid reportIntersectionEXT hit kinds in subroup tests
authorRicardo Garcia <rgarcia@igalia.com>
Thu, 10 Feb 2022 11:22:55 +0000 (12:22 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 17 Feb 2022 19:22:00 +0000 (19:22 +0000)
Some subgroup ray tracing tests were using invalid values when calling the
reportIntersectionEXT function.

Affected tests:
dEQP-VK.subgroups.*ray_tracing*

Components: Vulkan
VK-GL-CTS issue: 3513

Change-Id: I96310c32e1e5b4fde157570f0a3131d61f5a125c

external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTestsUtils.cpp

index 269c5b9..04c624c 100644 (file)
@@ -1616,7 +1616,7 @@ void vkt::subgroups::initStdPrograms (vk::SourceCollections&                      programCollection
                        "{\n"
                        + tempRes
                        + testSrc +
-                       "  reportIntersectionEXT(0.75f, gl_HitKindFrontFacingTriangleEXT);\n"
+                       "  reportIntersectionEXT(0.75f, 0x7Eu);\n"
                        "  result[gl_LaunchIDEXT.x] = tempRes;\n"
                        "}\n";
                const std::string       callShader      =
@@ -4186,7 +4186,7 @@ void addRayTracingNoSubgroupShader (SourceCollections& programCollection)
                "\n"
                "void main()\n"
                "{\n"
-               "  reportIntersectionEXT(0.75f, gl_HitKindFrontFacingTriangleEXT);\n"
+               "  reportIntersectionEXT(0.75f, 0x7Eu);\n"
                "}\n";
        const std::string callShaderNoSubgroups =
                "#version 460 core\n"