From 8e638811e98509f2bd2febe9344bd5242827ac96 Mon Sep 17 00:00:00 2001 From: scygan Date: Thu, 14 Jan 2016 14:56:12 +0100 Subject: [PATCH] Fix dEQP-VK.spirv_assembly.instruction.compute.opunreachable.all Fix hand-written SPIR-V: const int was passed to a function taking a pointer as a parameter --- .../modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp index 9c9ca1a..618b8c6 100644 --- a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp +++ b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp @@ -909,7 +909,8 @@ tcu::TestCaseGroup* createOpUnreachableGroup (tcu::TestContext& testCtx) "%inval = OpLoad %f32 %inloc\n" "%outloc = OpAccessChain %f32ptr %outdata %zero %x\n" "%ret_const5 = OpFunctionCall %u32 %func_const5\n" - "%ret_modulo4 = OpFunctionCall %u32 %func_modulo4 %thousand\n" + "%v_thousand = OpVariable %u32ptr Function %thousand\n" + "%ret_modulo4 = OpFunctionCall %u32 %func_modulo4 %v_thousand\n" "%cmp_gt = OpUGreaterThan %bool %ret_const5 %ret_modulo4\n" " OpSelectionMerge %if_end None\n" " OpBranchConditional %cmp_gt %if_true %if_false\n" -- 2.7.4