mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
Internal update
Change-Id: I84965fc114101683a63d7b2eae465a2f46e23603 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
2e912aff52
commit
6ba7a3f6c1
@@ -19,7 +19,7 @@ components:
|
|||||||
internal:
|
internal:
|
||||||
branch: master
|
branch: master
|
||||||
dest_dir: internal
|
dest_dir: internal
|
||||||
revision: fb79d6e30f52a7d640bc808ec41997a1ce1faa34
|
revision: 603332ad122fdb2eb0a8151dda4e12b50f1620d7
|
||||||
type: git
|
type: git
|
||||||
kmdaf:
|
kmdaf:
|
||||||
branch: kmdaf
|
branch: kmdaf
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ void *DrmMemoryManager::lockResourceInLocalMemoryImpl(BufferObject *bo) {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto addr = mmapFunction(nullptr, bo->peekSize(), PROT_WRITE | PROT_READ, MAP_SHARED, getDrm(rootDeviceIndex).getFileDescriptor(), mmapOffset.offset);
|
auto addr = mmapFunction(nullptr, bo->peekSize(), PROT_WRITE | PROT_READ, MAP_SHARED, getDrm(rootDeviceIndex).getFileDescriptor(), static_cast<off_t>(mmapOffset.offset));
|
||||||
DEBUG_BREAK_IF(addr == MAP_FAILED);
|
DEBUG_BREAK_IF(addr == MAP_FAILED);
|
||||||
|
|
||||||
bo->setLockedAddress(addr);
|
bo->setLockedAddress(addr);
|
||||||
|
|||||||
Reference in New Issue
Block a user