Skip to content

Commit 3fa9f64

Browse files
authored
Add spirv patch for split barrier support (#326)
1 parent c7ec4bb commit 3fa9f64

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 961375101474e9fa383f9cfb3939443f5581b252 Mon Sep 17 00:00:00 2001
2+
From: Feng Zou <[email protected]>
3+
Date: Fri, 25 Feb 2022 09:56:51 +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 94db4f56..043efec6 100644
13+
--- a/lib/SPIRV/libSPIRV/spirv.hpp
14+
+++ b/lib/SPIRV/libSPIRV/spirv.hpp
15+
@@ -1058,6 +1058,7 @@ enum Capability {
16+
CapabilityAtomicFloat64AddEXT = 6034,
17+
CapabilityLongConstantCompositeINTEL = 6089,
18+
CapabilityFastCompositeINTEL = 6093,
19+
+ CapabilitySplitBarrierINTEL = 6141,
20+
CapabilityMax = 0x7fffffff,
21+
};
22+
23+
@@ -1766,6 +1767,8 @@ enum Op {
24+
OpTypeStructContinuedINTEL = 6090,
25+
OpConstantCompositeContinuedINTEL = 6091,
26+
OpSpecConstantCompositeContinuedINTEL = 6092,
27+
+ OpControlBarrierArriveINTEL = 6142,
28+
+ OpControlBarrierWaitINTEL = 6143,
29+
OpMax = 0x7fffffff,
30+
};
31+
32+
@@ -2400,6 +2403,8 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
33+
case OpRayQueryGetIntersectionWorldToObjectKHR: *hasResult = true; *hasResultType = true; break;
34+
case OpAtomicFAddEXT: *hasResult = true; *hasResultType = true; break;
35+
case OpTypeBufferSurfaceINTEL: *hasResult = true; *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)