Skip to content

Commit 4529a57

Browse files
authored
Add spirv patch for split barrier support (#328)
1 parent c9ccd46 commit 4529a57

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
From f0f41dc13da291403f6be0737d78873b58f17b2a Mon Sep 17 00:00:00 2001
2+
From: Feng Zou <[email protected]>
3+
Date: Fri, 25 Feb 2022 10:48:46 +0800
4+
Subject: [PATCH] update SPIR-V headers for SPV_INTEL_split_barrier
5+
6+
PR:https://github.com/KhronosGroup/SPIRV-Headers/pull/268
7+
---
8+
lib/SPIRV/libSPIRV/spirv.hpp | 5 +++++
9+
1 file changed, 5 insertions(+)
10+
11+
diff --git a/lib/SPIRV/libSPIRV/spirv.hpp b/lib/SPIRV/libSPIRV/spirv.hpp
12+
index d9dda943..cf90ecc5 100644
13+
--- a/lib/SPIRV/libSPIRV/spirv.hpp
14+
+++ b/lib/SPIRV/libSPIRV/spirv.hpp
15+
@@ -983,6 +983,7 @@ enum Capability {
16+
CapabilityAtomicFloat64AddEXT = 6034,
17+
CapabilityFastCompositeINTEL = 6093,
18+
CapabilityOptNoneINTEL = 6094,
19+
+ CapabilitySplitBarrierINTEL = 6141,
20+
CapabilityMax = 0x7fffffff,
21+
};
22+
23+
@@ -1541,6 +1542,8 @@ enum Op {
24+
OpTypeStructContinuedINTEL = 6090,
25+
OpConstantCompositeContinuedINTEL = 6091,
26+
OpSpecConstantCompositeContinuedINTEL = 6092,
27+
+ OpControlBarrierArriveINTEL = 6142,
28+
+ OpControlBarrierWaitINTEL = 6143,
29+
OpMax = 0x7fffffff,
30+
};
31+
32+
@@ -2082,6 +2085,8 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
33+
*hasResult = true;
34+
*hasResultType = false;
35+
break;
36+
+ case SpvOpControlBarrierArriveINTEL: *hasResult = false; *hasResultType = false; break;
37+
+ case SpvOpControlBarrierWaitINTEL: *hasResult = false; *hasResultType = false; break;
38+
}
39+
}
40+
#endif /* SPV_ENABLE_UTILITY_CODE */
41+
--
42+
2.18.1
43+

0 commit comments

Comments
 (0)