mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Add support for allocating RT globals
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4a5f1b9358
commit
192ffa4c26
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -12,6 +12,8 @@
|
||||
#include "shared/source/helpers/basic_math.h"
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
|
||||
#include "ocl_igc_shared/raytracing/ocl_raytracing_structures.h"
|
||||
|
||||
#include <cstdint>
|
||||
namespace NEO {
|
||||
class RayTracingHelper : public NonCopyableOrMovableClass {
|
||||
@@ -36,7 +38,7 @@ class RayTracingHelper : public NonCopyableOrMovableClass {
|
||||
return static_cast<size_t>(Math::log2(memoryBackedFifoSizePerDss / KB) - 1);
|
||||
}
|
||||
|
||||
static size_t getRtGlobalsSize();
|
||||
static size_t getRtGlobalsSize() { return sizeof(RTDispatchGlobals); }
|
||||
|
||||
static uint32_t getNumRtStacks(const Device &device) {
|
||||
return device.getHardwareInfo().gtSystemInfo.DualSubSliceCount * stackDssMultiplier;
|
||||
|
||||
Reference in New Issue
Block a user