Skip to content

Commit

Permalink
Change shadertype base enum type to uint32_t
Browse files Browse the repository at this point in the history
Change shadertype base enum type to uint32_t
  • Loading branch information
jaladreips authored and igcbot committed Dec 19, 2024
1 parent f977421 commit 1c30d69
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions IGC/AdaptorCommon/RayTracing/AutoGenRTStackAccessPrivateOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ auto* _getPrimLeaf_Xe(Value* arg_0, Value* arg_1)
auto* _getInstanceLeaf_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName = "")
{
auto* V_2 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(1), getInt32(5) });
auto* V_3 = CreateICmpEQ(arg_1, getInt8(1));
auto* V_3 = CreateICmpEQ(arg_1, getInt32(1));
auto* V_4 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(0), getInt32(5) });
auto* V_5 = CreateSelect(V_3, V_4, V_2);
auto* V_6 = CreateLoad(getInt64Ty(), V_5);
Expand All @@ -1136,7 +1136,7 @@ auto* _getInstanceLeaf_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName =
auto* _getInstanceContributionToHitGroupIndex_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName = "")
{
auto* V_2 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(1), getInt32(5) });
auto* V_3 = CreateICmpEQ(arg_1, getInt8(1));
auto* V_3 = CreateICmpEQ(arg_1, getInt32(1));
auto* V_4 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(0), getInt32(5) });
auto* V_5 = CreateSelect(V_3, V_4, V_2);
auto* V_6 = CreateLoad(getInt64Ty(), V_5);
Expand Down Expand Up @@ -1274,7 +1274,7 @@ auto* _TransformWorldToObject_Xe(Value* arg_0, Value* arg_1, Value* arg_2, Value
auto* BB_6 = BasicBlock::Create(*Ctx.getLLVMContext(), VALUE_NAME("_TransformWorldToObject_Xe."), _JoinBB->getParent(), _JoinBB);
SetInsertPoint(BB_4);
auto* V_7 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(1), getInt32(5) });
auto* V_8 = CreateICmpEQ(arg_3, getInt8(1));
auto* V_8 = CreateICmpEQ(arg_3, getInt32(1));
auto* V_9 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(0), getInt32(5) });
auto* V_10 = CreateSelect(V_8, V_9, V_7);
auto* V_11 = CreateLoad(getInt64Ty(), V_10);
Expand Down Expand Up @@ -1324,7 +1324,7 @@ auto* _TransformWorldToObject_Xe(Value* arg_0, Value* arg_1, Value* arg_2, Value
auto* _getObjWorldAndWorldObj_Xe(Value* arg_0, Value* arg_1, Value* arg_2, Value* arg_3, const Twine& _ReturnName = "")
{
auto* V_4 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(1), getInt32(5) });
auto* V_5 = CreateICmpEQ(arg_3, getInt8(1));
auto* V_5 = CreateICmpEQ(arg_3, getInt32(1));
auto* V_6 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(0), getInt32(5) });
auto* V_7 = CreateSelect(V_5, V_6, V_4);
auto* V_8 = CreateLoad(getInt64Ty(), V_7);
Expand All @@ -1350,10 +1350,10 @@ auto* _getObjWorldAndWorldObj_Xe(Value* arg_0, Value* arg_1, Value* arg_2, Value
auto* _getRayTCurrent_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName = "")
{
auto* V_2 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(1), getInt32(0) });
auto* V_3 = CreateICmpEQ(arg_1, getInt8(3));
auto* V_3 = CreateICmpEQ(arg_1, getInt32(3));
auto* V_4 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(2), getInt32(3) });
auto* V_5 = CreateSelect(V_3, V_4, V_2);
auto* V_6 = CreateICmpEQ(arg_1, getInt8(1));
auto* V_6 = CreateICmpEQ(arg_1, getInt32(1));
auto* V_7 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(0), getInt32(0) });
auto* V_8 = CreateSelect(V_6, V_7, V_5);
auto* V_9 = CreateLoad(getFloatTy(), V_8, _ReturnName);
Expand Down Expand Up @@ -1381,7 +1381,7 @@ void _setHitT_Xe(Value* arg_0, Value* arg_1, Value* arg_2)
auto* _getInstanceIndex_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName = "")
{
auto* V_2 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(1), getInt32(5) });
auto* V_3 = CreateICmpEQ(arg_1, getInt8(1));
auto* V_3 = CreateICmpEQ(arg_1, getInt32(1));
auto* V_4 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(0), getInt32(5) });
auto* V_5 = CreateSelect(V_3, V_4, V_2);
auto* V_6 = CreateLoad(getInt64Ty(), V_5);
Expand All @@ -1397,7 +1397,7 @@ auto* _getInstanceIndex_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName
auto* _getInstanceID_Xe(Value* arg_0, Value* arg_1, const Twine& _ReturnName = "")
{
auto* V_2 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(1), getInt32(5) });
auto* V_3 = CreateICmpEQ(arg_1, getInt8(1));
auto* V_3 = CreateICmpEQ(arg_1, getInt32(1));
auto* V_4 = CreateInBoundsGEP(_struct_RTStackFormat__RTStack(*Ctx.getModule()), arg_0, { getInt64(0), getInt32(0), getInt32(5) });
auto* V_5 = CreateSelect(V_3, V_4, V_2);
auto* V_6 = CreateLoad(getInt64Ty(), V_5);
Expand Down
2 changes: 1 addition & 1 deletion IGC/GenISAIntrinsics/GenIntrinsicInst.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ See LICENSE.TXT for details.
#include "usc_gen7_types.h"

namespace IGC {
enum CallableShaderTypeMD : uint8_t;
enum CallableShaderTypeMD : uint32_t;
} // namespace IGC

namespace llvm {
Expand Down
2 changes: 1 addition & 1 deletion IGC/common/RaytracingShaderTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SPDX-License-Identifier: MIT

#include "EmUtils.h"

enum CallableShaderTypeMD : uint8_t
enum CallableShaderTypeMD : uint32_t
{
AnyHit,
ClosestHit,
Expand Down

0 comments on commit 1c30d69

Please sign in to comment.