From: John Kessenich Date: Fri, 22 Jan 2016 17:15:03 +0000 (-0700) Subject: SPV: Use a more accurate MemorySemanticsAllMemory mask. X-Git-Tag: upstream/0.1~285 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4889167430a396e856efb5d56e905756a26151f8;p=platform%2Fupstream%2Fglslang.git SPV: Use a more accurate MemorySemanticsAllMemory mask. --- diff --git a/SPIRV/spvIR.h b/SPIRV/spvIR.h index 1501e6b..98f4971 100755 --- a/SPIRV/spvIR.h +++ b/SPIRV/spvIR.h @@ -70,7 +70,17 @@ const Id NoType = 0; const unsigned int BadValue = 0xFFFFFFFF; const Decoration NoPrecision = (Decoration)BadValue; -const MemorySemanticsMask MemorySemanticsAllMemory = (MemorySemanticsMask)0x3FF; +const MemorySemanticsMask MemorySemanticsAllMemory = + (MemorySemanticsMask)(MemorySemanticsAcquireMask | + MemorySemanticsReleaseMask | + MemorySemanticsAcquireReleaseMask | + MemorySemanticsSequentiallyConsistentMask | + MemorySemanticsUniformMemoryMask | + MemorySemanticsSubgroupMemoryMask | + MemorySemanticsWorkgroupMemoryMask | + MemorySemanticsCrossWorkgroupMemoryMask | + MemorySemanticsAtomicCounterMemoryMask | + MemorySemanticsImageMemoryMask); // // SPIR-V IR instruction. diff --git a/Test/baseResults/spv.310.comp.out b/Test/baseResults/spv.310.comp.out index 93e49b5..1a34d08 100755 --- a/Test/baseResults/spv.310.comp.out +++ b/Test/baseResults/spv.310.comp.out @@ -45,7 +45,7 @@ Linked compute stage: 3: TypeFunction 2 6: TypeInt 32 0 7: 6(int) Constant 1 - 8: 6(int) Constant 1023 + 8: 6(int) Constant 4062 9: 6(int) Constant 0 10: TypeFloat 32 11: TypeVector 10(float) 3 diff --git a/Test/baseResults/spv.400.tesc.out b/Test/baseResults/spv.400.tesc.out index 02c7a6c..6905c4a 100755 --- a/Test/baseResults/spv.400.tesc.out +++ b/Test/baseResults/spv.400.tesc.out @@ -71,7 +71,7 @@ Linked tessellation control stage: 3: TypeFunction 2 6: TypeInt 32 0 7: 6(int) Constant 1 - 8: 6(int) Constant 1023 + 8: 6(int) Constant 4062 9: 6(int) Constant 0 10: TypeInt 32 1 11: TypePointer Function 10(int)