test: fix the Linux and Windows CI test builds (#1504)

This commit is contained in:
NeySlim
2026-10-16 01:43:24 +02:00
committed by GitHub
parent 6568fe9a84
commit c6b8210d7c
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -5374,14 +5374,14 @@ public:
}
auto &cache = context.GetBufferCache();
// Exercise the ordinary ring before requesting the captured 576-MiB footprint.
const auto small = cache.ObtainBufferForImage(base, page);
const auto ring_slice = cache.ObtainBufferForImage(base, page);
auto readback = CreateHostBuffer(name, 8u * sizeof(u32),
vk::BufferUsageFlagBits::eTransferDst, {});
const vk::BufferCopy small_copy{small.second, 0, sizeof(u32)};
scheduler.Current().Handle().copyBuffer(small.first->Handle(), readback.buffer, 1, &small_copy);
const vk::BufferCopy small_copy{ring_slice.second, 0, sizeof(u32)};
scheduler.Current().Handle().copyBuffer(ring_slice.first->Handle(), readback.buffer, 1, &small_copy);
const auto large = cache.ObtainBufferForImage(base, size);
Require(name, "temporary image source", large.first != nullptr && large.first != small.first &&
large.first->Size() == size && small.first->Size() == ring_size,
Require(name, "temporary image source", large.first != nullptr && large.first != ring_slice.first &&
large.first->Size() == size && ring_slice.first->Size() == ring_size,
"oversized image upload resized the ring or truncated its source");
constexpr std::array<uint64_t, 5> probes{0, page, ring_size - 4u, ring_size, size - 4u};
std::array<vk::BufferCopy, probes.size()> copies{};