mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Do not program thread arbitration policy on command list init and reset
This logic is now redundant and can be removed. Related-To: NEO-6728 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a71b88fefb
commit
a5ac961726
@@ -239,7 +239,6 @@ struct CommandListCoreFamily : CommandListImp {
|
||||
void appendEventForProfilingCopyCommand(ze_event_handle_t hEvent, bool beforeWalker);
|
||||
void appendSignalEventPostWalker(ze_event_handle_t hEvent);
|
||||
void programStateBaseAddress(NEO::CommandContainer &container, bool genericMediaStateClearRequired);
|
||||
void programThreadArbitrationPolicy(Device *device);
|
||||
void appendComputeBarrierCommand();
|
||||
NEO::PipeControlArgs createBarrierFlags();
|
||||
void appendMultiTileBarrier(NEO::Device &neoDevice);
|
||||
|
||||
@@ -70,20 +70,6 @@ CommandListCoreFamily<gfxCoreFamily>::~CommandListCoreFamily() {
|
||||
this->patternAllocations.clear();
|
||||
}
|
||||
|
||||
template <GFXCORE_FAMILY gfxCoreFamily>
|
||||
void CommandListCoreFamily<gfxCoreFamily>::programThreadArbitrationPolicy(Device *device) {
|
||||
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
|
||||
auto &hwHelper = NEO::HwHelper::get(device->getNEODevice()->getHardwareInfo().platform.eRenderCoreFamily);
|
||||
auto threadArbitrationPolicy = hwHelper.getDefaultThreadArbitrationPolicy();
|
||||
if (NEO::DebugManager.flags.OverrideThreadArbitrationPolicy.get() != -1) {
|
||||
threadArbitrationPolicy = static_cast<uint32_t>(NEO::DebugManager.flags.OverrideThreadArbitrationPolicy.get());
|
||||
}
|
||||
NEO::StreamProperties streamProperties{};
|
||||
streamProperties.stateComputeMode.threadArbitrationPolicy.set(threadArbitrationPolicy);
|
||||
NEO::EncodeComputeMode<GfxFamily>::programComputeModeCommand(*commandContainer.getCommandStream(), streamProperties.stateComputeMode,
|
||||
this->device->getHwInfo());
|
||||
}
|
||||
|
||||
template <GFXCORE_FAMILY gfxCoreFamily>
|
||||
ze_result_t CommandListCoreFamily<gfxCoreFamily>::reset() {
|
||||
printfFunctionContainer.clear();
|
||||
@@ -115,7 +101,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::reset() {
|
||||
programStateBaseAddress(commandContainer, false);
|
||||
}
|
||||
commandContainer.setDirtyStateForAllHeaps(false);
|
||||
programThreadArbitrationPolicy(device);
|
||||
}
|
||||
|
||||
for (auto alloc : this->ownedPrivateAllocations) {
|
||||
@@ -160,7 +145,6 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::initialize(Device *device, NEO
|
||||
}
|
||||
}
|
||||
commandContainer.setDirtyStateForAllHeaps(false);
|
||||
programThreadArbitrationPolicy(device);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user