Flip winding of one triangle in watertightness test
authorSlawomir Cygan <slawomir.cygan@intel.com>
Mon, 8 Jun 2020 12:38:56 +0000 (14:38 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sat, 4 Jul 2020 07:58:49 +0000 (03:58 -0400)
commit0fcecb820f6eaea9ee276f4dfa429746dd2e08e4
tree8f5655b037d16dcce1b5f476d36d13d3049664cb
parenta3be27fd2c18e931e735a85b694f55591b41d85c
Flip winding of one triangle in watertightness test

This flips the winding order of one of two triangles
in watertightness test, so they do share an edge. According
to spec, the triangles share and edge only if they are in
the same winding.

Spec says:
"""
For a set of triangles with identical transforms, within a single instance:
...
  * Any set of two triangles with two shared vertices that were specified
    in the same winding order in each triangle have a shared edge defined
    by those vertices.
...
Implementations should not double-hit or miss when a ray intersects
a shared edge, or a shared vertex of a closed fan.
"""

Components: Vulkan

VK-GL-CTS Issue: 2409

Change-Id: Ia3a277c3e157da6c312e8ff180275763d61ee33e
Affects: dEQP-VK.ray_tracing.watertightness.*
external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingWatertightnessTests.cpp