Fix winding order in some of the ray-tracing builtin tests
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 13 Jul 2020 15:44:50 +0000 (10:44 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 15 Jul 2020 08:27:31 +0000 (04:27 -0400)
The tests define a series of quads made of triangles with opposite
winding orders.  This change fixes them so that all triangles are
counter-clockwise.

Components: Vulkan
VK-GL-CTS issue: 2454
Affects:
    dEQP-VK.ray_tracing_pipeline.builtin.worldrayoriginext.*
    dEQP-VK.ray_tracing_pipeline.builtin.worldraydirectionext.*
    dEQP-VK.ray_tracing_pipeline.builtin.objectrayoriginext.*
    dEQP-VK.ray_tracing_pipeline.builtin.objectraydirectionext.*
    dEQP-VK.ray_tracing_pipeline.builtin.objecttoworldext.*
    dEQP-VK.ray_tracing_pipeline.builtin.worldtoobjectext.*

Change-Id: Ieed1a71b26b7e81ec2de932a209061ecfd91ab66

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

index a3b9c3f..8bfa855 100644 (file)
@@ -1494,8 +1494,8 @@ de::MovePtr<BottomLevelAccelerationStructure> RayTracingBuiltinLaunchTestInstanc
 
                if (triangles)
                {
-                       geometryData.push_back(tcu::Vec3(-1.0f, y0, z));
                        geometryData.push_back(tcu::Vec3(-1.0f, y1, z));
+                       geometryData.push_back(tcu::Vec3(-1.0f, y0, z));
                        geometryData.push_back(tcu::Vec3(+1.0f, y0, z));
                        geometryData.push_back(tcu::Vec3(-1.0f, y1, z));
                        geometryData.push_back(tcu::Vec3(+1.0f, y0, z));