mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Make BUFFER allocation lockable on DG1
Related-To: NEO-5733 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e605efb88e
commit
ed31aaedb8
@@ -291,6 +291,11 @@ void HwHelperHw<TGLLPFamily>::setExtraAllocationData(AllocationData &allocationD
|
||||
allocationData.flags.useSystemMemory = true;
|
||||
}
|
||||
}
|
||||
if (IGFX_DG1 == hwInfo.platform.eProductFamily) {
|
||||
if (properties.allocationType == GraphicsAllocation::AllocationType::BUFFER) {
|
||||
allocationData.storageInfo.isLockable = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
template class HwHelperHw<Family>;
|
||||
|
||||
@@ -12,5 +12,6 @@ struct StorageInfo {
|
||||
uint32_t getNumBanks() const;
|
||||
uint32_t getMemoryBanks() const { return 0u; }
|
||||
bool multiStorage = false;
|
||||
bool isLockable = false;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user