mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
refactor: adjust file names after pre-gen12 removal 1/3
Related-To: NEO-12681 Signed-off-by: Michał Pryba <michal.pryba@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
efa61ff069
commit
53831f61df
@@ -36,7 +36,7 @@ set(NEO_CORE_HELPERS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cache_policy.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cache_policy.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cache_policy_base.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cache_policy_bdw_and_later.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cache_policy_tgllp_and_later.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/casts.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/common_types.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compiler_product_helper.h
|
||||
@@ -131,7 +131,6 @@ set(NEO_CORE_HELPERS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/populate_factory.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/preamble.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/preamble_base.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/preamble_bdw_and_later.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/preprocessor.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/product_config_helper.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/product_config_helper.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/command_stream/stream_properties.h"
|
||||
#include "shared/source/helpers/flat_batch_buffer_helper.h"
|
||||
#include "shared/source/helpers/preamble_base.inl"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
template <typename GfxFamily>
|
||||
void *PreambleHelper<GfxFamily>::getSpaceForVfeState(LinearStream *pCommandStream,
|
||||
const HardwareInfo &hwInfo,
|
||||
EngineGroupType engineGroupType) {
|
||||
using MEDIA_VFE_STATE = typename GfxFamily::MEDIA_VFE_STATE;
|
||||
addPipeControlBeforeVfeCmd(pCommandStream, &hwInfo, engineGroupType);
|
||||
return pCommandStream->getSpaceForCmd<MEDIA_VFE_STATE>();
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void PreambleHelper<GfxFamily>::programVfeState(void *pVfeState,
|
||||
const RootDeviceEnvironment &rootDeviceEnvironment,
|
||||
uint32_t scratchSize,
|
||||
uint64_t scratchAddress,
|
||||
uint32_t maxFrontEndThreads,
|
||||
const StreamProperties &streamProperties) {
|
||||
using MEDIA_VFE_STATE = typename GfxFamily::MEDIA_VFE_STATE;
|
||||
|
||||
auto pMediaVfeState = reinterpret_cast<MEDIA_VFE_STATE *>(pVfeState);
|
||||
MEDIA_VFE_STATE cmd = GfxFamily::cmdInitMediaVfeState;
|
||||
cmd.setMaximumNumberOfThreads(maxFrontEndThreads);
|
||||
cmd.setNumberOfUrbEntries(1);
|
||||
cmd.setUrbEntryAllocationSize(PreambleHelper<GfxFamily>::getUrbEntryAllocationSize());
|
||||
cmd.setPerThreadScratchSpace(PreambleHelper<GfxFamily>::getScratchSizeValueToProgramMediaVfeState(scratchSize));
|
||||
cmd.setStackSize(PreambleHelper<GfxFamily>::getScratchSizeValueToProgramMediaVfeState(scratchSize));
|
||||
uint32_t lowAddress = static_cast<uint32_t>(0xFFFFFFFF & scratchAddress);
|
||||
uint32_t highAddress = static_cast<uint32_t>(0xFFFFFFFF & (scratchAddress >> 32));
|
||||
cmd.setScratchSpaceBasePointer(lowAddress);
|
||||
cmd.setScratchSpaceBasePointerHigh(highAddress);
|
||||
|
||||
appendProgramVFEState(rootDeviceEnvironment, streamProperties, &cmd);
|
||||
*pMediaVfeState = cmd;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
uint64_t PreambleHelper<GfxFamily>::getScratchSpaceAddressOffsetForVfeState(LinearStream *pCommandStream, void *pVfeState) {
|
||||
using MEDIA_VFE_STATE = typename GfxFamily::MEDIA_VFE_STATE;
|
||||
return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(pVfeState) -
|
||||
reinterpret_cast<uintptr_t>(pCommandStream->getCpuBase()) +
|
||||
MEDIA_VFE_STATE::PATCH_CONSTANTS::SCRATCHSPACEBASEPOINTER_BYTEOFFSET);
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
size_t PreambleHelper<GfxFamily>::getVFECommandsSize() {
|
||||
using MEDIA_VFE_STATE = typename GfxFamily::MEDIA_VFE_STATE;
|
||||
return sizeof(MEDIA_VFE_STATE) + sizeof(PIPE_CONTROL);
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void PreambleHelper<GfxFamily>::setSingleSliceDispatchMode(void *cmd, bool enable) {
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user