SWDEV-471863 - avoid copy of invisibleHeap
Change-Id: Ieb0aa22ac6d0d01cb9ca7fbf1305df03a1ab3cdf
[ROCm/clr commit: 5a810f789a]
Tá an tiomantas seo le fáil i:
tiomanta ag
Ajay GunaShekar
tuismitheoir
7fa7a7cae5
tiomantas
2a79ff2bca
@@ -120,7 +120,7 @@ bool Memory::create(Resource::MemoryType memType, Resource::CreateParams* params
|
||||
// if requested memory is greater than available then exit the loop
|
||||
dev().globalFreeMemory(freeMemory);
|
||||
|
||||
const Pal::GpuMemoryHeapProperties invisibleHeap = dev().GetGpuHeapInvisible();
|
||||
const Pal::GpuMemoryHeapProperties& invisibleHeap = dev().GetGpuHeapInvisible();
|
||||
if (dev().settings().apuSystem_ && (size() > (invisibleHeap.logicalSize * 2))) {
|
||||
memType = RemoteUSWC;
|
||||
break;
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir