mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
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>
23 lines
510 B
C++
23 lines
510 B
C++
/*
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace NEO {
|
|
struct KernelDescriptor;
|
|
|
|
namespace PatchTokenBinary {
|
|
struct KernelFromPatchtokens;
|
|
}
|
|
|
|
void populateKernelDescriptorRtDispatchGlobals(KernelDescriptor &dst, const PatchTokenBinary::KernelFromPatchtokens &src);
|
|
void populateKernelDescriptor(KernelDescriptor &dst, const PatchTokenBinary::KernelFromPatchtokens &src, uint32_t gpuPointerSizeInBytes);
|
|
|
|
} // namespace NEO
|