Skip to content

Commit

Permalink
Fix errors in SPIR-V 16bit_storage tests
Browse files Browse the repository at this point in the history
Commit 04ba8ac was wrongly setting a condition that made
all the *16_to_16* tests to fail. Also, in the last rebase of CL#2458,
there were a rename of an argument of OpFunction that was not updated.

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

Components: Vulkan
VK-GL-CTS issue: 1234

Change-Id: Ia83bedefa33d3e37b62336ebadb2bc992e0ddb2a
  • Loading branch information
samuelig committed Jun 22, 2018
1 parent 493d9de commit 56e8d4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -6659,7 +6659,7 @@ void addGraphics16BitStorageUniformFloat16To64Group (tcu::TestCaseGroup* testGro

// ssbo64[] <- convert ssbo16[] to 64bit float
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"
Expand Down Expand Up @@ -6769,7 +6769,7 @@ void addGraphics16BitStorageUniformFloat16To64Group (tcu::TestCaseGroup* testGro

// ssbo64[] <- convert ssbo16[] to 64bit float
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"
Expand Down Expand Up @@ -6883,7 +6883,7 @@ void addGraphics16BitStorageUniformFloat16To64Group (tcu::TestCaseGroup* testGro
"OpDecorate %ssbo16 Binding 0\n");

fragments["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"
Expand Down Expand Up @@ -6998,7 +6998,7 @@ void addGraphics16BitStoragePushConstantFloat16To64Group (tcu::TestCaseGroup* te
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"
Expand Down Expand Up @@ -7421,7 +7421,7 @@ void addGraphics16BitStorageUniformFloat64To16Group (tcu::TestCaseGroup* testGro
"${rounddecor}\n");

fragments["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"
Expand Down Expand Up @@ -7517,7 +7517,7 @@ void addGraphics16BitStorageUniformFloat64To16Group (tcu::TestCaseGroup* testGro

// ssbo16[] <- convert ssbo64[] to 16bit float
fragments["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"
Expand Down Expand Up @@ -7618,7 +7618,7 @@ void addGraphics16BitStorageUniformFloat64To16Group (tcu::TestCaseGroup* testGro
"${rounddecor}\n");

fragments["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"
Expand Down
Expand Up @@ -3915,7 +3915,7 @@ TestStatus runAndVerifyDefaultPipeline (Context& context, InstanceContext instan
if (!compare16BitFloat64(original[eleNdx], actual[eleNdx], instance.interfaces.getRoundingMode(), context.getTestContext().getLog()))
equal = false;
}
else if (outputType.elementType == NUMBERTYPE_FLOAT16 && inputType.elementType == NUMBERTYPE_FLOAT32)
else if (outputType.elementType == NUMBERTYPE_FLOAT16 && inputType.elementType != NUMBERTYPE_FLOAT64)
{
if (inputType.elementType == NUMBERTYPE_FLOAT16)
{
Expand Down

0 comments on commit 56e8d4e

Please sign in to comment.