2019-06-12 09:13:06 +02:00
|
|
|
/*
|
2023-11-23 13:58:58 +00:00
|
|
|
* Copyright (C) 2019-2023 Intel Corporation
|
2019-06-12 09:13:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/gen9/hw_cmds.h"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/helpers/hardware_commands_helper.h"
|
|
|
|
|
#include "opencl/source/helpers/hardware_commands_helper_base.inl"
|
2021-08-03 11:48:35 +00:00
|
|
|
#include "opencl/source/helpers/hardware_commands_helper_bdw_and_later.inl"
|
2019-06-12 09:13:06 +02:00
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
2022-07-25 15:30:11 +00:00
|
|
|
using FamilyType = Gen9Family;
|
2019-06-12 09:13:06 +02:00
|
|
|
|
2021-07-08 13:08:56 +00:00
|
|
|
template struct HardwareCommandsHelper<FamilyType>;
|
2023-11-23 13:58:58 +00:00
|
|
|
template size_t HardwareCommandsHelper<FamilyType>::sendIndirectState<FamilyType::WALKER_TYPE, FamilyType::INTERFACE_DESCRIPTOR_DATA>(
|
|
|
|
|
LinearStream &commandStream,
|
|
|
|
|
IndirectHeap &dsh,
|
|
|
|
|
IndirectHeap &ioh,
|
|
|
|
|
IndirectHeap &ssh,
|
|
|
|
|
Kernel &kernel,
|
|
|
|
|
uint64_t kernelStartOffset,
|
|
|
|
|
uint32_t simd,
|
|
|
|
|
const size_t localWorkSize[3],
|
|
|
|
|
const uint32_t threadGroupCount,
|
|
|
|
|
const uint64_t offsetInterfaceDescriptorTable,
|
|
|
|
|
uint32_t &interfaceDescriptorIndex,
|
|
|
|
|
PreemptionMode preemptionMode,
|
|
|
|
|
FamilyType::WALKER_TYPE *walkerCmd,
|
|
|
|
|
FamilyType::INTERFACE_DESCRIPTOR_DATA *inlineInterfaceDescriptor,
|
|
|
|
|
bool localIdsGenerationByRuntime,
|
|
|
|
|
uint64_t scratchAddress,
|
|
|
|
|
const Device &device);
|
|
|
|
|
|
|
|
|
|
template size_t HardwareCommandsHelper<FamilyType>::sendCrossThreadData<FamilyType::WALKER_TYPE>(
|
|
|
|
|
IndirectHeap &indirectHeap,
|
|
|
|
|
Kernel &kernel,
|
|
|
|
|
bool inlineDataProgrammingRequired,
|
|
|
|
|
FamilyType::WALKER_TYPE *walkerCmd,
|
|
|
|
|
uint32_t &sizeCrossThreadData,
|
|
|
|
|
uint64_t scratchAddress);
|
|
|
|
|
|
|
|
|
|
template size_t HardwareCommandsHelper<FamilyType>::sendInterfaceDescriptorData<FamilyType::WALKER_TYPE, FamilyType::INTERFACE_DESCRIPTOR_DATA>(
|
|
|
|
|
const IndirectHeap &indirectHeap,
|
|
|
|
|
uint64_t offsetInterfaceDescriptor,
|
|
|
|
|
uint64_t kernelStartOffset,
|
|
|
|
|
size_t sizeCrossThreadData,
|
|
|
|
|
size_t sizePerThreadData,
|
|
|
|
|
size_t bindingTablePointer,
|
|
|
|
|
[[maybe_unused]] size_t offsetSamplerState,
|
|
|
|
|
uint32_t numSamplers,
|
|
|
|
|
const uint32_t threadGroupCount,
|
|
|
|
|
uint32_t numThreadsPerThreadGroup,
|
|
|
|
|
const Kernel &kernel,
|
|
|
|
|
uint32_t bindingTablePrefetchSize,
|
|
|
|
|
PreemptionMode preemptionMode,
|
|
|
|
|
const Device &device,
|
|
|
|
|
FamilyType::WALKER_TYPE *walkerCmd,
|
|
|
|
|
FamilyType::INTERFACE_DESCRIPTOR_DATA *inlineInterfaceDescriptor);
|
|
|
|
|
|
|
|
|
|
template void HardwareCommandsHelper<FamilyType>::programInlineData<FamilyType::WALKER_TYPE>(
|
|
|
|
|
Kernel &kernel,
|
|
|
|
|
FamilyType::WALKER_TYPE *walkerCmd, uint64_t indirectDataAddress, uint64_t scratchAddress);
|
|
|
|
|
|
2019-06-12 09:13:06 +02:00
|
|
|
} // namespace NEO
|