upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorxroneyaa <202318392+xroneyaa@users.noreply.github.com>2026-11-24 11:13:12 +0500
committerxroneyaa <202318392+xroneyaa@users.noreply.github.com>2026-11-24 11:13:12 +0500
commit5a67c51a49c512c8b87a28dd7dae988d4ad11da9 (patch)
tree598c877131df0b6d3e0503fa781f35a90c370dd3 /runtime/src
parent8f481cf16f261c7f37458aeb45e8f4e19994146d (diff)
vulkan_backend: pass byte length to BufferVaIndex::find in host_at
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/vulkan_backend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/vulkan_backend.h b/runtime/src/vulkan_backend.h
index e3e4defe8..e9033d901 100644
--- a/runtime/src/vulkan_backend.h
+++ b/runtime/src/vulkan_backend.h
@@ -1000,7 +1000,7 @@ public:
1000 // binding's host pointer is null on DEFAULT and READBACK heaps, whose mapped bytes the GPU can write. 1000 // binding's host pointer is null on DEFAULT and READBACK heaps, whose mapped bytes the GPU can write.
1001 replay_.host_at = [this](std::uint64_t va, std::uint64_t bytes, const std::uint8_t*& host) { 1001 replay_.host_at = [this](std::uint64_t va, std::uint64_t bytes, const std::uint8_t*& host) {
1002 BufferVaIndex<ResourceId>::Hit hit{}; 1002 BufferVaIndex<ResourceId>::Hit hit{};
1003 if (!buffer_vas_.find(va, hit)) return HostReadStatus::absent; 1003 if (!buffer_vas_.find(va, hit, bytes)) return HostReadStatus::absent;
1004 const ResourceBinding* b = resolve(hit.id); 1004 const ResourceBinding* b = resolve(hit.id);
1005 if (!b) return HostReadStatus::absent; 1005 if (!b) return HostReadStatus::absent;
1006 if (!b->host) return HostReadStatus::not_cpu_written; 1006 if (!b->host) return HostReadStatus::not_cpu_written;