mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Revert optimization of gpgpu csr's mutex lock in the enqueue blit
optimization available under flag ForceCsrLockInBcsEnqueueOnlyForGpgpuSubmission Related-To: NEO-7011 Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
19cac22760
commit
61510e9a92
@@ -382,6 +382,18 @@ class MockCommandQueueHw : public CommandQueueHw<GfxFamily> {
|
||||
isBlitEnqueueImageAllowed = BaseClass::blitEnqueueImageAllowed(origin, region, image);
|
||||
return isBlitEnqueueImageAllowed;
|
||||
}
|
||||
bool isQueueBlocked() override {
|
||||
if (setQueueBlocked != -1) {
|
||||
return setQueueBlocked;
|
||||
}
|
||||
return BaseClass::isQueueBlocked();
|
||||
}
|
||||
bool isGpgpuSubmissionForBcsRequired(bool queueBlocked, TimestampPacketDependencies ×tampPacketDependencies) const override {
|
||||
if (forceGpgpuSubmissionForBcsRequired != -1) {
|
||||
return forceGpgpuSubmissionForBcsRequired;
|
||||
}
|
||||
return BaseClass::isGpgpuSubmissionForBcsRequired(queueBlocked, timestampPacketDependencies);
|
||||
}
|
||||
|
||||
unsigned int lastCommandType;
|
||||
std::vector<Kernel *> lastEnqueuedKernels;
|
||||
@@ -396,6 +408,8 @@ class MockCommandQueueHw : public CommandQueueHw<GfxFamily> {
|
||||
bool notifyEnqueueSVMMemcpyCalled = false;
|
||||
bool cpuDataTransferHandlerCalled = false;
|
||||
bool useBcsCsrOnNotifyEnabled = false;
|
||||
int setQueueBlocked = -1;
|
||||
int forceGpgpuSubmissionForBcsRequired = -1;
|
||||
mutable bool isBlitEnqueueImageAllowed = false;
|
||||
struct OverrideReturnValue {
|
||||
bool enabled = false;
|
||||
|
||||
Reference in New Issue
Block a user