diff options
Diffstat (limited to 'runtime/src')
| -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 e2bf327b6..a95994256 100644 --- a/runtime/src/vulkan_backend.h +++ b/runtime/src/vulkan_backend.h | |||
| @@ -1017,7 +1017,7 @@ public: | |||
| 1017 | // binding's host pointer is null on DEFAULT and READBACK heaps, whose mapped bytes the GPU can write. | 1017 | // binding's host pointer is null on DEFAULT and READBACK heaps, whose mapped bytes the GPU can write. |
| 1018 | replay_.host_at = [this](std::uint64_t va, std::uint64_t bytes, const std::uint8_t*& host) { | 1018 | replay_.host_at = [this](std::uint64_t va, std::uint64_t bytes, const std::uint8_t*& host) { |
| 1019 | BufferVaIndex<ResourceId>::Hit hit{}; | 1019 | BufferVaIndex<ResourceId>::Hit hit{}; |
| 1020 | if (!buffer_vas_.find(va, hit)) return HostReadStatus::absent; | 1020 | if (!buffer_vas_.find(va, hit, bytes)) return HostReadStatus::absent; |
| 1021 | const ResourceBinding* b = resolve(hit.id); | 1021 | const ResourceBinding* b = resolve(hit.id); |
| 1022 | if (!b) return HostReadStatus::absent; | 1022 | if (!b) return HostReadStatus::absent; |
| 1023 | if (!b->host) return HostReadStatus::not_cpu_written; | 1023 | if (!b->host) return HostReadStatus::not_cpu_written; |