Skip to content

Commit 3dd3742

Browse files
authored
Add spirv patch for split barrier support (#330)
1 parent a397c06 commit 3dd3742

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 05dbb133140653f21efc1feebfcb614386cc2a62 Mon Sep 17 00:00:00 2001
2+
From: Feng Zou <[email protected]>
3+
Date: Fri, 25 Feb 2022 13:51:07 +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 cbe5a94c..631396b8 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+
@@ -1538,6 +1539,8 @@ enum Op {
24+
OpFPGARegINTEL = 5949,
25+
OpAtomicFAddEXT = 6035,
26+
OpTypeBufferSurfaceINTEL = 6086,
27+
+ OpControlBarrierArriveINTEL = 6142,
28+
+ OpControlBarrierWaitINTEL = 6143,
29+
OpMax = 0x7fffffff,
30+
};
31+
32+
@@ -2076,6 +2079,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)