mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Revert "fix: configure ISA Pool params based on productHelper"
This reverts commit bf20ae7ae8.
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b32f726913
commit
f5e37e725c
@@ -1881,10 +1881,11 @@ void fillGmmsInAllocation(GmmHelper *gmmHelper, DrmAllocation *allocation) {
|
||||
}
|
||||
}
|
||||
|
||||
inline uint64_t getCanonizedHeapAllocationAddress(HeapIndex heap, GmmHelper *gmmHelper, GfxPartition *gfxPartition, size_t &sizeAllocated, size_t alignment, bool packed) {
|
||||
if (const size_t customAlignment = static_cast<size_t>(debugManager.flags.ExperimentalEnableCustomLocalMemoryAlignment.get());
|
||||
customAlignment > 0) {
|
||||
alignment = customAlignment;
|
||||
inline uint64_t getCanonizedHeapAllocationAddress(HeapIndex heap, GmmHelper *gmmHelper, GfxPartition *gfxPartition, size_t &sizeAllocated, bool packed) {
|
||||
size_t alignment = 0;
|
||||
|
||||
if (debugManager.flags.ExperimentalEnableCustomLocalMemoryAlignment.get() != -1) {
|
||||
alignment = static_cast<size_t>(debugManager.flags.ExperimentalEnableCustomLocalMemoryAlignment.get());
|
||||
}
|
||||
auto address = gfxPartition->heapAllocateWithCustomAlignment(heap, sizeAllocated, alignment);
|
||||
return gmmHelper->canonize(address);
|
||||
@@ -1904,15 +1905,10 @@ AllocationStatus getGpuAddress(const AlignmentSelector &alignmentSelector, HeapA
|
||||
case AllocationType::kernelIsa:
|
||||
case AllocationType::kernelIsaInternal:
|
||||
case AllocationType::internalHeap:
|
||||
case AllocationType::debugModuleArea: {
|
||||
size_t alignment = 0;
|
||||
if (gmmHelper->getRootDeviceEnvironment().getHelper<ProductHelper>().is2MBLocalMemAlignmentEnabled()) {
|
||||
alignment = MemoryConstants::pageSize2M;
|
||||
}
|
||||
case AllocationType::debugModuleArea:
|
||||
gpuAddress = getCanonizedHeapAllocationAddress(heapAssigner.get32BitHeapIndex(allocType, true, hwInfo, allocationData.flags.use32BitFrontWindow),
|
||||
gmmHelper, gfxPartition, sizeAllocated, alignment, false);
|
||||
gmmHelper, gfxPartition, sizeAllocated, false);
|
||||
break;
|
||||
}
|
||||
case AllocationType::writeCombined:
|
||||
sizeAllocated = 0;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user