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

Change-Id: I524c1402b249cedfd58b56f494caa2ac057e1623
Bu işleme şunda yer alıyor:
kjayapra-amd
2025-02-10 17:11:40 -05:00
işlemeyi yapan: Karthik Jayaprakash
ebeveyn 4c95ee5e1e
işleme cf6aabb823
+2 -1
Dosyayı Görüntüle
@@ -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 &&