diff options
| author | QemmHD <stephenlethco2@gmail.com> | 2026-11-24 11:25:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-24 11:25:49 -0500 |
| commit | 3ed8e50b754eb9dcf9e3819eddbbbccd52fc1177 (patch) | |
| tree | d764c4cec00ef9d927a544b73e3e41419bd2080e /runtime/src/vulkan_backend.h | |
| parent | b9c7fc862010a19f6af9b44ab0578a4d5719d053 (diff) | |
| parent | 5a67c51a49c512c8b87a28dd7dae988d4ad11da9 (diff) | |
Merge pull request #488 from xroneyaa/fix/vulkan-host-at-aliasing
Merging.
**Why merged:** host_at passes the byte length to BufferVaIndex::find, so aliasing placed buffers resolve over the full range rather than at the start address only. The CMake change only adds the new test target.
**Why it's good:** vk_host_at_aliasing, buffer_va_index and vk_buffer_registration_oom all pass both plain and under validation.
Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Alone on main, its tests passed both plain and with LEONIDA_VK_VALIDATION=1. Cumulative: #388, #418, #421, #434, #470, #484, #485, #486 and #488 merged onto main 1504c1af6 (a225e593e). There the repo-consistency set gives 566 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 306/308. The 2 failures are the same pre-existing ones as main (d3d12_execute_indirect_validation, d3d12_depth_resolve), with the same skip set. git merge-tree against current main 98a977b4b: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.
AI-assisted (Claude Code, Claude Opus 5.5).
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 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; |