Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 9ec58d9

Browse files
committed
[PAL] Detect if resizable bar is enabled
Change-Id: I54b2e878d1cf7235a848a4b243f878538e226702
1 parent 42f9ab9 commit 9ec58d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

device/pal/paldevice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,11 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
702702

703703
info_.cooperativeGroups_ = settings().enableCoopGroups_;
704704
info_.cooperativeMultiDeviceGroups_ = settings().enableCoopMultiDeviceGroups_;
705+
706+
if (heaps[Pal::GpuHeapInvisible].heapSize == 0) {
707+
info_.largeBar_ = true;
708+
ClPrint(amd::LOG_INFO, amd::LOG_INIT, "Resizable bar enabled");
709+
}
705710
}
706711
}
707712

0 commit comments

Comments
 (0)