mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
Dont force system memory for internal allocations
use HEAP_INTERNAL_DEVICE_MEMORY for internal allocations Change-Id: Id70caa30cd1e9c79df60773227d72b09541e4b77 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ce4a75e121
commit
fff8be32f4
@@ -999,7 +999,7 @@ std::unique_lock<SpinLock> Wddm::acquireLock(SpinLock &lock) {
|
||||
HeapIndex Wddm::selectHeap(const WddmAllocation *allocation, const void *ptr) const {
|
||||
if (allocation) {
|
||||
if (allocation->origin == AllocationOrigin::INTERNAL_ALLOCATION) {
|
||||
return HeapIndex::HEAP_INTERNAL;
|
||||
return HeapIndex::HEAP_INTERNAL_DEVICE_MEMORY;
|
||||
} else if (allocation->is32BitAllocation) {
|
||||
return HeapIndex::HEAP_EXTERNAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user