Files
compute-runtime/runtime/helpers/state_base_address_bdw_plus.inl
Maciej Dziuban a90270c1de Extract functions to state_base_address_bdw_plus.inl
Change-Id: I577488aa18b7ca53e87c5e05c383d9879c545fbb
Related-To: NEO-3016
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-05-23 10:29:58 +02:00

33 lines
1.0 KiB
C++

/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/helpers/state_base_address_base.inl"
namespace NEO {
template <typename GfxFamily>
void StateBaseAddressHelper<GfxFamily>::appendStateBaseAddressParameters(
STATE_BASE_ADDRESS *stateBaseAddress,
const IndirectHeap &dsh,
const IndirectHeap &ioh,
const IndirectHeap &ssh,
uint64_t generalStateBase,
uint64_t internalHeapBase,
GmmHelper *gmmHelper,
DispatchFlags &dispatchFlags) {
}
template <typename GfxFamily>
void StateBaseAddressHelper<GfxFamily>::programBindingTableBaseAddress(LinearStream &commandStream, const IndirectHeap &ssh,
size_t stateBaseAddressCmdOffset, GmmHelper *gmmHelper) {
auto sbaCommand = static_cast<STATE_BASE_ADDRESS *>(ptrOffset(commandStream.getCpuBase(), stateBaseAddressCmdOffset));
UNRECOVERABLE_IF(sbaCommand->getSurfaceStateBaseAddress() != ssh.getGraphicsAllocation()->getGpuAddress());
}
} // namespace NEO