SWDEV-511672 - Special case the Remote USWC memory usage for HIP, if the alloc size is large.

Change-Id: I524c1402b249cedfd58b56f494caa2ac057e1623
Tá an tiomantas seo le fáil i:
kjayapra-amd údaraithe agus Karthik Jayaprakash tiomanta 2025-02-11 06:42:18 -05:00
1 tuismitheoir 4c95ee5e1e
tiomantas cf6aabb823
1 comhad athraithe
+2 -1
+2 -1
Féach ar an gComhad
@@ -26,6 +26,7 @@
#include "device/device.hpp"
#include "device/pal/paldevice.hpp"
#include "device/pal/palblit.hpp"
#include "utils/flags.hpp"
#ifdef _WIN32
#include <d3d10_1.h>
@@ -114,7 +115,7 @@ bool Memory::create(Resource::MemoryType memType, Resource::CreateParams* params
memType = Persistent;
}
if (dev().settings().apuSystem_) {
if (amd::IS_HIP && dev().settings().apuSystem_) {
const Pal::GpuMemoryHeapProperties& invisibleHeap = dev().GetGpuHeapInvisible();
Pal::gpusize totalAlloc = dev().TotalAlloc();
if (invisibleHeap.logicalSize > 0 && memType == Local &&