Skip to content

Commit ba77388

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: d6d0b61: Update RTDispatchGlobals struct
Update RTDispatchGlobals struct
1 parent 86a80e1 commit ba77388

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

IGC/AdaptorOCL/ocl_igc_shared/raytracing/ocl_raytracing_structures.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ struct alignas(32) RTDispatchGlobals
100100
uint64_t callStackHandlerKSP; // this is the KSP of the continuation handler that is invoked by BTD when the read KSP is 0
101101
uint32_t stackSizePerRay; // maximal stack size of a ray in 64 byte blocks
102102
uint32_t numDSSRTStacks; // number of stacks per DSS
103-
uint32_t maxBVHLevels : 3; // the maximal number of supported instancing levels, 0->8, 1->1, 2->2, etc.
104-
uint32_t hitGroupStride : 13; // stride of hit group shader records (16-bytes alignment)
105-
uint32_t missShaderStride : 13; // stride of miss shader records (8-bytes alignment)
106-
uint32_t _pad2_mbz : 3;
107-
uint32_t flags : 1;
108-
uint32_t pad_mbz : 31;
103+
/* : 3; TODO: should this be a bitfield here?*/
104+
uint32_t maxBVHLevels; // the maximal number of supported instancing levels, 0->8, 1->1, 2->2, etc.
109105

110106
// Not cached by HW
111107
public:
112108
uint64_t hitGroupBasePtr; // base pointer of hit group shader record array (16-bytes alignment)
113109
uint64_t missShaderBasePtr; // base pointer of miss shader record array (8-bytes alignment)
114-
uint32_t _align_mbz[4]; // pad hardware section to 64 bytes
110+
uint64_t callableShaderBasePtr; // base pointer of callable shader record array (8-bytes alignment)
111+
uint32_t hitGroupStride; // stride of hit group shader records (16-bytes alignment)
112+
uint32_t missShaderStride; // stride of miss shader records (8-bytes alignment)
113+
uint32_t callableShaderStride; // stride of callable shader records (8-bytes alignment)
114+
uint32_t dispatchRaysDimensions[3]; // dispatch dimensions of the thread grid
115115
};

0 commit comments

Comments
 (0)