mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Fail on blitMemoryToAllocation when blitter is not supported
Related-To: NEO-6325 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
93e3d948f5
commit
515130dbe8
@@ -174,11 +174,7 @@ BlitOperationResult BlitHelper::blitMemoryToAllocation(const Device &device, Gra
|
||||
BlitOperationResult BlitHelper::blitMemoryToAllocationBanks(const Device &device, GraphicsAllocation *memory, size_t offset, const void *hostPtr,
|
||||
const Vec3<size_t> &size, DeviceBitfield memoryBanks) {
|
||||
const auto &hwInfo = device.getHardwareInfo();
|
||||
auto isBlitterRequired = HwHelper::get(hwInfo.platform.eRenderCoreFamily).isBlitCopyRequiredForLocalMemory(hwInfo, *memory);
|
||||
if (!hwInfo.capabilityTable.blitterOperationsSupported && !isBlitterRequired) {
|
||||
return BlitOperationResult::Unsupported;
|
||||
}
|
||||
if (0 == DebugManager.flags.EnableBlitterOperationsSupport.get()) {
|
||||
if (!hwInfo.capabilityTable.blitterOperationsSupported) {
|
||||
return BlitOperationResult::Unsupported;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user