Fix OpCopyObject from U32 to S32
authorAndrey Tuganov <andreyt@google.com>
Tue, 28 Nov 2017 23:28:18 +0000 (18:28 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 6 Dec 2017 13:10:27 +0000 (08:10 -0500)
Conversion from U32 to S32 can use neither OpCopyObject (different types),
nor OpSConvert (same bit width). Changed to OpBitcast.

Affects:

dEQP-VK.spirv_assembly.instruction.compute.indexing

Components: Vulkan

VK-GL-CTS issue: 874

Change-Id: I298c2687f3f6f08f28f928623a1002ec72a5a8f8

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

index 6029c0a..a6fcd6f 100644 (file)
@@ -252,7 +252,7 @@ void addComputeIndexingTests (tcu::TestCaseGroup* group)
                                        specs["intdecl"] =      "                      %u64 = OpTypeInt 64 0\n"
                                                                "                      %i64 = OpTypeInt 64 1\n";
                                } else {
-                                       specs["convert"] = "OpCopyObject";
+                                       specs["convert"] = "OpBitcast";
                                }
 
                                specs["idx_uint"] = "%u" + de::toString(idxSize);