Skip to content

Commit 2f124cb

Browse files
elvinw-inteligcbot
authored andcommitted
Expand RayQueryFlag arg for GenISA_AllocateRayQuery
Add a secondary argument.
1 parent d081d33 commit 2f124cb

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

IGC/AdaptorCommon/RayTracing/RTStackFormat.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,11 @@ enum class RayFlags_Xe3 : uint16_t
12701270
constexpr uint32_t RayFlagsMask_Xe3 = getRayFlagMask((uint32_t)RayFlags_Xe3::FORCE_2STATE_STOC);
12711271
static_assert(sizeof(MemTravStack) == 32, "MemTravStack has to be 32 bytes large");
12721272

1273+
enum class RayQueryFlags : uint16_t
1274+
{
1275+
NONE = 0x00,
1276+
};
1277+
12731278

12741279
// On DG2, writes will not go to the L1$ unless they are 16-byte aligned
12751280
// and at least 16 bytes in size.

IGC/GenISAIntrinsics/GenIntrinsicInst.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,7 @@ class AllocateRayQueryIntrinsic : public GenIntrinsicInst {
18201820
}
18211821

18221822
Value* getFlags() const { return getOperand(0); }
1823+
Value* getQueryFlags() const { return getOperand(1); }
18231824
};
18241825

18251826
class ConvertRayQueryHandleToRTStackPointerIntrinsic : public GenIntrinsicInst {

IGC/GenISAIntrinsics/generator/input/Intrinsic_definitions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10695,6 +10695,10 @@ intrinsics:
1069510695
name: Arg0
1069610696
type_definition: *i32
1069710697
comment: "rayFlags"
10698+
- !<ArgumentDefinition>
10699+
name: Arg1
10700+
type_definition: *i16
10701+
comment: "rayQueryFlags"
1069810702
attributes:
1069910703
- !AttributeID "NoUnwind"
1070010704
- !<IntrinsicDefinition>

0 commit comments

Comments
 (0)