Revert "Allow for blit enqueue on read/write buffer operations"

This reverts commit dd75cdcf04.

Change-Id: I0e653d25b190036cc0fdbc6765dd79a5646df3d8
This commit is contained in:
Mrozek, Michal
2019-10-07 00:41:05 -07:00
committed by sys_ocldev
parent 6f08328aa7
commit 2ca541a343
2 changed files with 6 additions and 5 deletions

View File

@@ -578,10 +578,11 @@ bool CommandQueue::queueDependenciesClearRequired() const {
}
bool CommandQueue::blitEnqueueAllowed(cl_command_type cmdType) const {
bool blitAllowed = device->getExecutionEnvironment()->getHardwareInfo()->capabilityTable.blitterOperationsSupported;
bool blitAllowed = false;
if (DebugManager.flags.EnableBlitterOperationsForReadWriteBuffers.get() != -1) {
blitAllowed &= !!DebugManager.flags.EnableBlitterOperationsForReadWriteBuffers.get();
blitAllowed = !!DebugManager.flags.EnableBlitterOperationsForReadWriteBuffers.get() &&
device->getExecutionEnvironment()->getHardwareInfo()->capabilityTable.blitterOperationsSupported;
}
bool commandAllowed = (CL_COMMAND_READ_BUFFER == cmdType) || (CL_COMMAND_WRITE_BUFFER == cmdType);