Fix layout location for rgen_multicall test
authorAaron Hagan <Aaron.Hagan@amd.com>
Wed, 6 May 2020 08:29:02 +0000 (04:29 -0400)
committerAaron Hagan <Aaron.Hagan@amd.com>
Wed, 6 May 2020 17:30:21 +0000 (13:30 -0400)
Calls to executeCallableEXT are overwriting callableDataEXT values.
Set the correct layout location for value3.

Affects tests:
 * dEQP-VK.ray_tracing.callable_shader.rgen_multicall

Components: Vulkan

VK-GL-CTS issue: 2352

Change-Id: I8c40c39956748a16e195dc0750014f2425d7e73f

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

index 6dbd0b4..8586f60 100644 (file)
@@ -519,7 +519,7 @@ void CallableShaderTestCase::initPrograms (SourceCollections& programCollection)
                        "layout(location = 0) callableDataEXT uvec4 value0;\n"
                        "layout(location = 1) callableDataEXT uint value1;\n"
                        "layout(location = 2) callableDataEXT CallValue value2;\n"
-                       "layout(location = 3) callableDataEXT vec3 value3;\n"
+                       "layout(location = 4) callableDataEXT vec3 value3;\n"
                        "layout(r32ui, set = 0, binding = 0) uniform uimage2D result;\n"
                        "layout(set = 0, binding = 1) uniform accelerationStructureEXT topLevelAS;\n"
                        "\n"
@@ -528,7 +528,7 @@ void CallableShaderTestCase::initPrograms (SourceCollections& programCollection)
                        "  executeCallableEXT(0, 0);\n"
                        "  executeCallableEXT(1, 1);\n"
                        "  executeCallableEXT(2, 2);\n"
-                       "  executeCallableEXT(3, 3);\n"
+                       "  executeCallableEXT(3, 4);\n"
                        "  uint resultValue = value0.x + value1 + value2.a.x * uint(floor(value2.b.y)) + uint(floor(value3.z));\n"
                        "  imageStore(result, ivec2(gl_LaunchIDEXT.xy), uvec4(resultValue, 0, 0, 0));\n"
                        "}\n";
@@ -601,7 +601,7 @@ void CallableShaderTestCase::initPrograms (SourceCollections& programCollection)
                "layout(location = 0) callableDataInEXT uvec4 result;\n",
                "layout(location = 1) callableDataInEXT uint result;\n",
                "struct CallValue\n{\n  ivec4 a;\n  vec4  b;\n};\nlayout(location = 2) callableDataInEXT CallValue result;\n",
-               "layout(location = 3) callableDataInEXT vec3 result;\n"
+               "layout(location = 4) callableDataInEXT vec3 result;\n"
        };
 
        std::vector<std::string> callableDataComputation =