Fix 8bit storage spir-v tests
authorArkadiusz Sarwa <arkadiusz.sarwa@mobica.com>
Fri, 8 Jun 2018 07:29:49 +0000 (09:29 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 6 Jul 2018 18:36:43 +0000 (14:36 -0400)
Wrong name of the function has been changed in the spir-v code.

Affects:
dEQP-VK.spirv_assembly.instruction.graphics.8bit_storage.*

Components:
Vulkan

VK-GL-CTS issue:
1203

Change-Id: I71b9b87e53776b0afb4d82c32a2bfae8b40ec88b
(cherry picked from commit 493d9dee0595daaf07873271fd6f1b8737246b3d)

external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsm8bitStorageTests.cpp

index c094e42..1a8653c 100644 (file)
@@ -2789,7 +2789,7 @@ void addGraphics8BitStorageUniformInt32To8Group (tcu::TestCaseGroup* testGroup)
                        "OpDecorate %ssbo8 Binding 1\n");
 
        const StringTemplate    scalarTestFunc(
-                       "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+                       "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                        "    %param = OpFunctionParameter %v4f32\n"
 
                        "%entry = OpLabel\n"
@@ -2850,7 +2850,7 @@ void addGraphics8BitStorageUniformInt32To8Group (tcu::TestCaseGroup* testGroup)
                        "OpDecorate %ssbo8 Binding 1\n");
 
        const StringTemplate    vecTestFunc(
-                       "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+                       "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                        "    %param = OpFunctionParameter %v4f32\n"
 
                        "%entry = OpLabel\n"
@@ -3015,7 +3015,7 @@ void addGraphics8BitStorageUniformInt8To32Group (tcu::TestCaseGroup* testGroup)
                        "OpDecorate %ssbo8 Binding 0\n");
 
        const StringTemplate scalarTestFunc     (
-                       "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+                       "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                        "    %param = OpFunctionParameter %v4f32\n"
 
                        "%entry = OpLabel\n"
@@ -3076,7 +3076,7 @@ void addGraphics8BitStorageUniformInt8To32Group (tcu::TestCaseGroup* testGroup)
                        "OpDecorate %ssbo8 Binding 0\n");
 
        const StringTemplate vecTestFunc        (
-                       "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+                       "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                        "    %param = OpFunctionParameter %v4f32\n"
 
                        "%entry = OpLabel\n"
@@ -3233,7 +3233,7 @@ void addGraphics8BitStoragePushConstantInt8To32Group (tcu::TestCaseGroup* testGr
        getDefaultColors(defaultColors);
 
        const StringTemplate    testFun         (
-               "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+               "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                "    %param = OpFunctionParameter %v4f32\n"
 
                "%entry = OpLabel\n"
@@ -3573,7 +3573,7 @@ void addGraphics8BitStorageUniformInt16To8Group (tcu::TestCaseGroup* testGroup)
                        "OpDecorate %ssbo8 Binding 1\n");
 
        const StringTemplate    scalarTestFunc(
-                       "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+                       "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                        "    %param = OpFunctionParameter %v4f32\n"
 
                        "%entry = OpLabel\n"
@@ -3636,7 +3636,7 @@ void addGraphics8BitStorageUniformInt16To8Group (tcu::TestCaseGroup* testGroup)
                        "OpDecorate %ssbo8 Binding 1\n");
 
        const StringTemplate    vecTestFunc(
-                       "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+                       "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                        "    %param = OpFunctionParameter %v4f32\n"
 
                        "%entry = OpLabel\n"
@@ -3805,7 +3805,7 @@ void addGraphics8BitStorageUniformInt8To16Group (tcu::TestCaseGroup* testGroup)
                        "OpDecorate %ssbo8 Binding 0\n");
 
        const StringTemplate scalarTestFunc     (
-                       "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+                       "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                        "    %param = OpFunctionParameter %v4f32\n"
 
                        "%entry = OpLabel\n"
@@ -3868,7 +3868,7 @@ void addGraphics8BitStorageUniformInt8To16Group (tcu::TestCaseGroup* testGroup)
                        "OpDecorate %ssbo8 Binding 0\n");
 
        const StringTemplate vecTestFunc        (
-                       "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+                       "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                        "    %param = OpFunctionParameter %v4f32\n"
 
                        "%entry = OpLabel\n"
@@ -4028,7 +4028,7 @@ void addGraphics8BitStoragePushConstantInt8To16Group (tcu::TestCaseGroup* testGr
        getDefaultColors(defaultColors);
 
        const StringTemplate    testFun         (
-               "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+               "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                "    %param = OpFunctionParameter %v4f32\n"
 
                "%entry = OpLabel\n"
@@ -4383,7 +4383,7 @@ void addGraphics8BitStorageUniformStruct8To32Group (tcu::TestCaseGroup* testGrou
                "\n");
 
        const StringTemplate testFun            (
-               "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+               "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                "    %param = OpFunctionParameter %v4f32\n"
                "%label     = OpLabel\n"
                "%loopNdx   = OpVariable %fp_i32 Function\n"
@@ -4651,7 +4651,7 @@ void addGraphics8BitStorageUniformStruct32To8Group (tcu::TestCaseGroup* testGrou
                "\n");
 
        const StringTemplate testFun            (
-               "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+               "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                "%param = OpFunctionParameter %v4f32\n"
                "%label     = OpLabel\n"
                "%loopNdx    = OpVariable %fp_i32 Function\n"
@@ -4920,7 +4920,7 @@ void addGraphics8bitStorage8bitStructMixedTypesGroup (tcu::TestCaseGroup* group)
                "OpDecorate %ssboOUT Binding 1\n");
 
                const StringTemplate                    testFun                         (
-               "%test_code = OpFunction %v4f32 None %v4f32_function\n"
+               "%test_code = OpFunction %v4f32 None %v4f32_v4f32_function\n"
                "%param     = OpFunctionParameter %v4f32\n"
                "%label     = OpLabel\n"
                "%ndxArrx   = OpVariable %fp_i32  Function\n"