mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
Add RTDispatchGlobals allocation for ray tracing
If a kernel has ray tracing calls, we allocate and initialize per-device RTDispatchGlobals if needed, and hand off pointer to the same into a running kernel via an implicit parameter. Related-To: NEO-5384 Signed-off-by: Jim Snow <jim.m.snow@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7d5924cd98
commit
2dfb7df63b
@@ -20,6 +20,7 @@ class RayTracingHelper : public NonCopyableOrMovableClass {
|
||||
static constexpr uint32_t hitInfoSize = 64;
|
||||
static constexpr uint32_t bvhStackSize = 96;
|
||||
static constexpr uint32_t memoryBackedFifoSizePerDss = 8 * KB;
|
||||
static constexpr uint32_t maxBvhLevels = 8;
|
||||
|
||||
static size_t getDispatchGlobalSize(const Device &device, uint32_t maxBvhLevel, uint32_t extraBytesLocal, uint32_t extraBytesGlobal) {
|
||||
return static_cast<size_t>(alignUp(getRtGlobalsSize(), MemoryConstants::cacheLineSize) +
|
||||
|
||||
Reference in New Issue
Block a user