SPV: Memory model: Reduce set of memory-semantic bits requested for "all".
authorJohn Kessenich <cepheus@frii.com>
Fri, 15 Dec 2017 15:51:31 +0000 (08:51 -0700)
committerJohn Kessenich <cepheus@frii.com>
Sat, 16 Dec 2017 07:34:08 +0000 (00:34 -0700)
SPIRV/spvIR.h
Test/baseResults/hlsl.intrinsics.barriers.comp.out
Test/baseResults/spv.310.comp.out
Test/baseResults/spv.barrier.vert.out

index 0cb166a..faa2701 100755 (executable)
@@ -75,9 +75,7 @@ const Decoration NoPrecision = DecorationMax;
 POTENTIALLY_UNUSED
 const MemorySemanticsMask MemorySemanticsAllMemory =
                 (MemorySemanticsMask)(MemorySemanticsUniformMemoryMask |
-                                      MemorySemanticsSubgroupMemoryMask |
                                       MemorySemanticsWorkgroupMemoryMask |
-                                      MemorySemanticsCrossWorkgroupMemoryMask |
                                       MemorySemanticsAtomicCounterMemoryMask |
                                       MemorySemanticsImageMemoryMask);
 
index f5b4814..0a9cb14 100644 (file)
@@ -71,7 +71,7 @@ local_size = (1, 1, 1)
                7:             TypeFunction 6(float)
               10:             TypeInt 32 0
               11:     10(int) Constant 1
-              12:     10(int) Constant 4040
+              12:     10(int) Constant 3400
               13:     10(int) Constant 2
               14:     10(int) Constant 2120
               15:     10(int) Constant 264
index 4fdd887..5ca40f8 100644 (file)
@@ -93,7 +93,7 @@ spv.310.comp
               63:             TypePointer Input 15(int)
 64(gl_DeviceIndex):     63(ptr) Variable Input
               65:      6(int) Constant 1
-              66:      6(int) Constant 4040
+              66:      6(int) Constant 3400
               67:      6(int) Constant 16
               68:      6(int) Constant 32
               69:      6(int) Constant 4
index cb588d6..5157f88 100755 (executable)
@@ -23,7 +23,7 @@ spv.barrier.vert
               11:    7(fvec4) ConstantComposite 10 10 10 10
               12:             TypeInt 32 0
               13:     12(int) Constant 1
-              14:     12(int) Constant 4040
+              14:     12(int) Constant 3400
           15(c1):      8(ptr) Variable Output
               16:     12(int) Constant 72
               20:     12(int) Constant 2056