Fix build indirect structure tests
authorBoris Zanin <boris.zanin@mobica.com>
Thu, 11 Feb 2021 12:31:20 +0000 (13:31 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sat, 6 Mar 2021 09:56:39 +0000 (09:56 +0000)
Incorrect number of instances has been specified for
top level structure.

Affected tests:
 * dEQP-VK.ray_tracing_pipeline.indirect.build_structure

Components: Vulkan

VK-GL-CTS issue: 2767

Change-Id: I11f9c42dd5d1b919c8de250abdae426c9c584a69

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

index 198390a..f0ed091 100644 (file)
@@ -282,7 +282,7 @@ void RayTracingTestCase::initPrograms (SourceCollections& programCollection) con
                        "\n"
                        "void main()\n"
                        "{\n"
-                       "  uint primitiveCount  = " << m_data.depth << "u;\n"
+                       "  uint primitiveCount  = " << m_data.instancesGroupCount << "u;\n"
                        "  uint primitiveOffset = " << 0 << "u;\n"
                        "  uint firstVertex     = " << 0 << "u;\n"
                        "  uint transformOffset = " << 0 << "u;\n"