SWDEV-513810 - APU: memory allocations threshold 0.75-->1

Needs further debugging but for now can test the change

Need to verify if this fixes all the below issues-
SWDEV-512754, SWDEV-511675, SWDEV-511055, SWDEV-504085, SWDEV-499503
Also verify original issues
SWDEV-471863, SWDEV-490991

Change-Id: Ic845f851de1b98e8ed9aa0f07afddec3858119e9


[ROCm/clr commit: f1b8ee7b7f]
This commit is contained in:
agunashe authored and Rakesh Roy committed 2025-03-11 05:30:43 -04:00
1 parent c94c02a2e6
commit 4a5c6b8d82
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ bool Memory::create(Resource::MemoryType memType, Resource::CreateParams* params
const Pal::GpuMemoryHeapProperties& invisibleHeap = dev().GetGpuHeapInvisible();
Pal::gpusize totalAlloc = dev().TotalAlloc();
if (invisibleHeap.logicalSize > 0 && memType == Local &&
(totalAlloc > (invisibleHeap.logicalSize * 0.75))) {
(totalAlloc > invisibleHeap.logicalSize)) {
memType = RemoteUSWC;
}
}