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:
Adrià authored and GitHub committed 2026-10-27 17:06:45 +01:00
commit c547deaacb
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;