Fix blit enqueue support check

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-03-23 10:25:36 +00:00
committed by Compute-Runtime-Automation
parent bdf8cf5e23
commit ee44979bb5
3 changed files with 29 additions and 33 deletions

View File

@@ -737,7 +737,7 @@ bool CommandQueue::queueDependenciesClearRequired() const {
}
bool CommandQueue::blitEnqueueAllowed(cl_command_type cmdType) const {
auto blitterSupported = device->getHardwareInfo().capabilityTable.blitterOperationsSupported || this->isCopyOnly;
auto blitterSupported = (getBcsCommandStreamReceiver() != nullptr);
bool blitEnqueueAllowed = getGpgpuCommandStreamReceiver().peekTimestampPacketWriteEnabled() || this->isCopyOnly;
if (DebugManager.flags.EnableBlitterForEnqueueOperations.get() != -1) {