mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
[PVC] Remove tlb flush
Related-To: NEO-7116 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e53eae6e5f
commit
3f0e8f52bc
@@ -42,5 +42,6 @@ class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
||||
TagData currentTagData{};
|
||||
volatile TagAddressType *tagAddress;
|
||||
TaskCountType completionFenceValue{};
|
||||
bool tlbFlushRequired = true;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
@@ -35,6 +35,8 @@ DrmDirectSubmission<GfxFamily, Dispatcher>::DrmDirectSubmission(const DirectSubm
|
||||
this->completionFenceValue = static_cast<decltype(completionFenceValue)>(DebugManager.flags.OverrideUserFenceStartValue.get());
|
||||
}
|
||||
|
||||
this->tlbFlushRequired = inputParams.rootDeviceEnvironment.getProductHelper().isTlbFlushRequired();
|
||||
|
||||
auto osContextLinux = static_cast<OsContextLinux *>(&this->osContext);
|
||||
|
||||
auto subDevices = osContextLinux->getDeviceBitfield();
|
||||
@@ -162,7 +164,7 @@ bool DrmDirectSubmission<GfxFamily, Dispatcher>::handleResidency() {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
bool DrmDirectSubmission<GfxFamily, Dispatcher>::isNewResourceHandleNeeded() {
|
||||
auto osContextLinux = static_cast<OsContextLinux *>(&this->osContext);
|
||||
auto newResourcesBound = osContextLinux->isTlbFlushRequired();
|
||||
auto newResourcesBound = this->tlbFlushRequired && osContextLinux->isTlbFlushRequired();
|
||||
|
||||
if (DebugManager.flags.DirectSubmissionNewResourceTlbFlush.get() != -1) {
|
||||
newResourcesBound = DebugManager.flags.DirectSubmissionNewResourceTlbFlush.get();
|
||||
|
||||
Reference in New Issue
Block a user