SWDEV-511055 - fix HIP PAL memory allocation workaround for APU (#40)
Este commit está contenido en:
@@ -118,8 +118,7 @@ bool Memory::create(Resource::MemoryType memType, Resource::CreateParams* params
|
||||
if (amd::IS_HIP && dev().settings().apuSystem_) {
|
||||
const Pal::GpuMemoryHeapProperties& invisibleHeap = dev().GetGpuHeapInvisible();
|
||||
Pal::gpusize totalAlloc = dev().TotalAlloc();
|
||||
if (invisibleHeap.logicalSize > 0 && memType == Local &&
|
||||
(totalAlloc > invisibleHeap.logicalSize)) {
|
||||
if (memType == Local && (totalAlloc > invisibleHeap.logicalSize)) {
|
||||
memType = RemoteUSWC;
|
||||
}
|
||||
}
|
||||
|
||||
Referencia en una nueva incidencia
Block a user