mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Change RequirementsStatus from enum to enum class
Related-To: NEO-5167 Change-Id: Iecf6ac74b5f757e90c36ef84a0f65339bf58e3f9 Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
495594142c
commit
e4adb7efbf
@@ -379,7 +379,7 @@ DrmAllocation *DrmMemoryManager::allocateGraphicsMemoryForNonSvmHostPtr(const Al
|
||||
if (validateHostPtrMemory) {
|
||||
auto boPtr = bo.get();
|
||||
int result = pinBBs.at(allocationData.rootDeviceIndex)->validateHostPtr(&boPtr, 1, registeredEngines[defaultEngineIndex].osContext, 0, getDefaultDrmContextId());
|
||||
if (result != SUCCESS) {
|
||||
if (result != 0) {
|
||||
unreference(bo.release(), true);
|
||||
releaseGpuRange(reinterpret_cast<void *>(gpuVirtualAddress), alignedSize, allocationData.rootDeviceIndex);
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user