Skip to content

Commit dd63f1d

Browse files
Add new function append3dStateBtd
Signed-off-by: Katarzyna Cencelewska <[email protected]>
1 parent 1671e0a commit dd63f1d

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

shared/source/command_container/command_encoder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ struct EncodeMiArbCheck {
384384
template <typename GfxFamily>
385385
struct EncodeEnableRayTracing {
386386
static void programEnableRayTracing(LinearStream &commandStream, GraphicsAllocation &backBuffer);
387+
static void append3dStateBtd(void *ptr3dStateBtd);
387388
};
388389

389390
template <typename GfxFamily>

shared/source/command_container/command_encoder.inl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,4 +841,7 @@ inline void EncodeStoreMemory<Family>::programStoreDataImm(LinearStream &command
841841
workloadPartitionOffset);
842842
}
843843

844+
template <typename GfxFamily>
845+
void EncodeEnableRayTracing<GfxFamily>::append3dStateBtd(void *ptr3dStateBtd) {}
846+
844847
} // namespace NEO

shared/source/command_container/command_encoder_raytracing_xehp_and_later.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2021 Intel Corporation
2+
* Copyright (C) 2020-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*

shared/source/command_container/command_encoder_xe_hpg_core_and_later.inl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
2-
* Copyright (C) 2021 Intel Corporation
2+
* Copyright (C) 2021-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

88
#include "shared/source/command_container/command_encoder.h"
9+
#include "shared/source/helpers/hw_helper.h"
910
#include "shared/source/helpers/hw_info.h"
1011

1112
#include "hw_cmds.h"
@@ -25,6 +26,7 @@ void EncodeEnableRayTracing<GfxFamily>::programEnableRayTracing(LinearStream &co
2526
auto cmd = GfxFamily::cmd3dStateBtd;
2627
cmd.getBtdStateBody().setPerDssMemoryBackedBufferSize(static_cast<typename GfxFamily::_3DSTATE_BTD_BODY::PER_DSS_MEMORY_BACKED_BUFFER_SIZE>(RayTracingHelper::getMemoryBackedFifoSizeToPatch()));
2728
cmd.getBtdStateBody().setMemoryBackedBufferBasePointer(backBuffer.getGpuAddress());
29+
append3dStateBtd(&cmd);
2830
*commandStream.getSpaceForCmd<typename GfxFamily::_3DSTATE_BTD>() = cmd;
2931
}
3032

0 commit comments

Comments
 (0)