Avoid invalid reportIntersectionEXT hit kinds in mem guarantee tests
authorRicardo Garcia <rgarcia@igalia.com>
Thu, 10 Feb 2022 10:49:21 +0000 (11:49 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 17 Feb 2022 18:32:02 +0000 (18:32 +0000)
Only values in the [0, 127] range are allowed with reportIntersectionEXT.

Affected tests:
dEQP-VK.ray_tracing_pipeline.memguarantee.*

Components: Vulkan
VK-GL-CTS issue: 3513

Change-Id: I54669b5b7e2c0f696bbbf3e5a477b1533e4f4488

external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingMemGuaranteeTests.cpp

index d281b77..6122052 100644 (file)
@@ -265,7 +265,7 @@ const std::string RayTracingTestCase::getIntersectionPassthrough (void)
                "\n"
                "void main()\n"
                "{\n"
-               "  reportIntersectionEXT(0.95f, gl_HitKindFrontFacingTriangleEXT);\n"
+               "  reportIntersectionEXT(0.95f, 0x7Eu);\n"
                "}\n";
 
        return intersectionPassthrough;