Skip to content

Commit 4756266

Browse files
MaciejKalinskiigcbot
authored andcommitted
Minor refactoring
Minor code refactoring.
1 parent a631f43 commit 4756266

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

IGC/AdaptorCommon/RayTracing/AutoGenRTStackAccessPrivateOS.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,20 @@ auto* _getPrimLeaf_Xe(Value* arg_0, Value* arg_1)
10071007
return V_8;
10081008
}
10091009

1010+
auto* _getInstanceLeaf_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName = "")
1011+
{
1012+
auto* V_2 = CreateInBoundsGEP(arg_0, { getInt64(0), getInt32(1), getInt32(5) });
1013+
auto* V_3 = CreateICmpEQ(arg_1, getInt32(1));
1014+
auto* V_4 = CreateInBoundsGEP(arg_0, { getInt64(0), getInt32(0), getInt32(5) });
1015+
auto* V_5 = CreateSelect(V_3, V_4, V_2);
1016+
auto* V_6 = CreateLoad(V_5);
1017+
auto* V_7 = CreateShl(V_6, getInt64(6));
1018+
auto* V_8 = CreateAnd(V_7, getInt64(281474976710592));
1019+
auto* V_9 = canonizePointer(V_8);
1020+
auto* V_10 = CreateIntToPtr(V_9, PointerType::get(_struct_RTStackFormat__InstanceLeaf(*Ctx.getModule()), 1), _ReturnName);
1021+
return V_10;
1022+
}
1023+
10101024
auto* _getInstanceContributionToHitGroupIndex_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName = "")
10111025
{
10121026
auto* V_2 = CreateInBoundsGEP(arg_0, { getInt64(0), getInt32(1), getInt32(5) });

IGC/AdaptorCommon/RayTracing/RTBuilder.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,6 +1435,8 @@ Value* RTBuilder::getLeafType(
14351435
}
14361436

14371437

1438+
1439+
14381440
CallInst* RTBuilder::CreateLSCFence(
14391441
LSC_SFID SFID, LSC_SCOPE Scope, LSC_FENCE_OP FenceOp)
14401442
{

IGC/Compiler/CodeGenContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ namespace IGC
905905
}
906906

907907

908+
908909
bool CodeGenContext::isBufferBoundsChecking() const
909910
{
910911
return false;

IGC/GenISAIntrinsics/Intrinsic_definitions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3254,7 +3254,8 @@
32543254
("float", "ray Tmin"),
32553255
("float", "ray Tmax"),
32563256
("anyptr", "payload"),
3257-
("int", "reserved")],
3257+
("int", "reserved"),
3258+
("float", "reserved")],
32583259
"None"]],
32593260
####################################################################################################
32603261
"GenISA_TraceRayInlineAbort": ["Raytracing: Abort operation for RayQuery object at index taken in the input",

0 commit comments

Comments
 (0)