mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Refactor programBindingTableBaseAddress
Change-Id: I5a1d29ef3551717c7d28617c8af4d5f3bfbe3dbd Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
9a4e360fc2
commit
c6a202ab87
@@ -38,7 +38,6 @@ struct StateBaseAddressHelper {
|
||||
GmmHelper *gmmHelper,
|
||||
bool isMultiOsContextCapable);
|
||||
|
||||
static void programBindingTableBaseAddress(LinearStream &commandStream, const IndirectHeap &ssh, size_t stateBaseAddressCmdOffset,
|
||||
GmmHelper *gmmHelper);
|
||||
static void programBindingTableBaseAddress(LinearStream &commandStream, const IndirectHeap &ssh, GmmHelper *gmmHelper);
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
@@ -19,11 +19,7 @@ void StateBaseAddressHelper<GfxFamily>::appendStateBaseAddressParameters(
|
||||
}
|
||||
|
||||
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());
|
||||
void StateBaseAddressHelper<GfxFamily>::programBindingTableBaseAddress(LinearStream &commandStream, const IndirectHeap &ssh, GmmHelper *gmmHelper) {
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -328,8 +328,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
|
||||
}
|
||||
|
||||
if (bindingTableBaseAddressRequired) {
|
||||
StateBaseAddressHelper<GfxFamily>::programBindingTableBaseAddress(commandStreamCSR, ssh, stateBaseAddressCmdOffset,
|
||||
device.getGmmHelper());
|
||||
StateBaseAddressHelper<GfxFamily>::programBindingTableBaseAddress(commandStreamCSR, ssh, device.getGmmHelper());
|
||||
bindingTableBaseAddressRequired = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user