mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 08:07:19 +08:00
fix: Use system ptr for 32 bit svm cpu
Resolves: HSD-14025543711 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
09981f7102
commit
0ec6f51e0e
@@ -29,6 +29,11 @@ std::optional<aub_stream::ProductFamily> ProductHelperHw<gfxProduct>::getAubStre
|
||||
|
||||
template <>
|
||||
std::optional<GfxMemoryAllocationMethod> ProductHelperHw<gfxProduct>::getPreferredAllocationMethod(AllocationType allocationType) const {
|
||||
if constexpr (is32bit) {
|
||||
if (allocationType == AllocationType::svmCpu) { // no heap SVM in allocateByKmd on 32 bit
|
||||
return GfxMemoryAllocationMethod::useUmdSystemPtr;
|
||||
}
|
||||
}
|
||||
return GfxMemoryAllocationMethod::allocateByKmd;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user