SPV: Use a more accurate MemorySemanticsAllMemory mask.
authorJohn Kessenich <cepheus@frii.com>
Fri, 22 Jan 2016 17:15:03 +0000 (10:15 -0700)
committerJohn Kessenich <cepheus@frii.com>
Fri, 22 Jan 2016 17:15:03 +0000 (10:15 -0700)
SPIRV/spvIR.h
Test/baseResults/spv.310.comp.out
Test/baseResults/spv.400.tesc.out

index 1501e6b..98f4971 100755 (executable)
@@ -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.
index 93e49b5..1a34d08 100755 (executable)
@@ -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
index 02c7a6c..6905c4a 100755 (executable)
@@ -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)