mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
Merge pull request #11293 from LeandroLP23/test/agc-storage-budget-small-device-heap
test(agc): give the storage image budget test a device-local heap as large as its reported budget
This commit is contained in:
1 file changed
+1
@@ -1051,6 +1051,7 @@ void storageMemoryTests(Context context) {
|
||||
auto held = Sampled(context, block.Surface(0));
|
||||
const auto heap = LargestDeviceLocalHeap(context.memory);
|
||||
Require(heap.has_value(), "the device has no device-local heap");
|
||||
context.memory.memoryHeaps[*heap].size = std::max<VkDeviceSize>(context.memory.memoryHeaps[*heap].size, ReportedBudget);
|
||||
const auto half = std::min<std::uint64_t>(context.memory.memoryHeaps[*heap].size / 2u, ReportedBudget / 2u);
|
||||
Require(ReadStorageBudget(context) == half, "52 GiB free of a 64 GiB budget does not leave the storage image cache half of the heap or of the budget");
|
||||
context.memoryProperties2 = &ReportPressure;
|
||||
|
||||
Reference in new issue
Block a user