Skip to content

Commit e4d885d

Browse files
authored
Add spirv patch for split barrier support (#325)
1 parent 9d20f28 commit e4d885d

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 246d76d6244c94870da16288864be4e7b36578ed Mon Sep 17 00:00:00 2001
2+
From: Feng Zou <[email protected]>
3+
Date: Thu, 24 Feb 2022 21:51:52 +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 ca4359a7..38972ba6 100644
13+
--- a/lib/SPIRV/libSPIRV/spirv.hpp
14+
+++ b/lib/SPIRV/libSPIRV/spirv.hpp
15+
@@ -1054,6 +1054,7 @@ enum Capability {
16+
CapabilityFastCompositeINTEL = 6093,
17+
CapabilityAtomicFloat16AddEXT = 6095,
18+
CapabilityDebugInfoModuleINTEL = 6114,
19+
+ CapabilitySplitBarrierINTEL = 6141,
20+
CapabilityMax = 0x7fffffff,
21+
};
22+
23+
@@ -1796,6 +1797,8 @@ enum Op {
24+
OpTypeStructContinuedINTEL = 6090,
25+
OpConstantCompositeContinuedINTEL = 6091,
26+
OpSpecConstantCompositeContinuedINTEL = 6092,
27+
+ OpControlBarrierArriveINTEL = 6142,
28+
+ OpControlBarrierWaitINTEL = 6143,
29+
OpMax = 0x7fffffff,
30+
};
31+
32+
@@ -2438,6 +2441,8 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
33+
case OpTypeStructContinuedINTEL: *hasResult = false; *hasResultType = false; break;
34+
case OpConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
35+
case OpSpecConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; 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.29.2
43+

0 commit comments

Comments
 (0)