diff options
| author | xroneyaa <202318392+xroneyaa@users.noreply.github.com> | 2026-11-24 11:13:12 +0500 |
|---|---|---|
| committer | xroneyaa <202318392+xroneyaa@users.noreply.github.com> | 2026-11-24 11:13:12 +0500 |
| commit | 5a67c51a49c512c8b87a28dd7dae988d4ad11da9 (patch) | |
| tree | 598c877131df0b6d3e0503fa781f35a90c370dd3 /runtime/src/vulkan_backend.h | |
| parent | 8f481cf16f261c7f37458aeb45e8f4e19994146d (diff) | |
vulkan_backend: pass byte length to BufferVaIndex::find in host_at
Diffstat (limited to 'runtime/src/vulkan_backend.h')
| -rw-r--r-- | runtime/src/vulkan_backend.h | 2 |
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; |