mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Enable local memory bank in DG1
Change-Id: Ifabfd2a7c8c3effd5765995d5ed5740b301e5269 Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
dd322c3466
commit
515d300c8a
@@ -90,7 +90,7 @@ bool createDrmAllocation(Drm *drm, DrmAllocation *allocation, uint64_t gpuAddres
|
||||
auto &storageInfo = allocation->storageInfo;
|
||||
auto boAddress = gpuAddress;
|
||||
for (auto handleId = 0u; handleId < storageInfo.getNumBanks(); handleId++) {
|
||||
uint32_t memoryBanks = static_cast<uint32_t>(storageInfo.getMemoryBanks());
|
||||
uint32_t memoryBanks = 1u;
|
||||
if (storageInfo.getNumBanks() > 1) {
|
||||
memoryBanks &= 1u << handleId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user