Internal update

Change-Id: I84965fc114101683a63d7b2eae465a2f46e23603
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2020-09-21 11:49:37 +02:00
committed by sys_ocldev
parent 2e912aff52
commit 6ba7a3f6c1
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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);