Repository navigation
Runtime: support RGB96 footprint copies on dedicated COPY queues - #4817
gabrielsteglich wants to merge 3 commits into
Conversation
|
Tested Built via Red control: rebuilt baseline AI-assisted (Devin); no game files. |
|
Tested
No validation messages in either run. So the RTX 5080 run checks the transfer-only handoff to the primary queue on a second NVIDIA generation, after the PR's RTX 3090. The Radeon checks that a COPY family with compute is unaffected. AI-assisted (Claude Code). |
|
Tested Controls (one change at a time, rebuilt, then restored):
The second row is pinned by the updated AI-assisted (Claude Code). |
|
ACCEPT. Builds clean, and Minor:
Approve. AI-assisted review, no game files. |
|
Independent Pascal verification of head Environment (AI-assisted, OpenCode): Windows 11 Pro build 26300, MSVC 19.44.35230, CMake 4.4.4 + Ninja, RelWithDebInfo. GPU: NVIDIA GeForce GTX 1060 6GB, driver 582.78, subgroup sizes 32..32, no Resizable BAR (upload heaps in system memory). No game data, keys or decryption. The case only this hardware covers: the test reports Results:
Build of the two changed targets was clean. |
|
Tested 7182111 on Windows 11 (MSVC BuildTools 2022, Ninja, RelWithDebInfo, -j 4; no Vulkan validation layer installed), one GPU at a time, device line confirmed: AMD Radeon RDNA2 iGPU (driver 26.10.1) and NVIDIA RTX 5080 (driver 616.92). Ran AI-assisted. |
|
Verified against main 3faac55 (clean merge): compileall clean, the docs guards (repo paths, CLI flags, links) pass, no game data in the diff and the fixture values are procedurally generated. Static review is consistent — timeline progress_ orders the physical-queue switch and the doc claims match the code — but the new d3d12_rgb96 / d3d12_rgb96_copy_queue ctest targets need a Vulkan build and were not run on this CPU-only host. Two spots a human should eyeball: the new state_mutex_ acquisition in idle() (lock order against submit_mutex_ is not provable statically) and the device-lost path through conversion_pending / scratch_ticket = UINT64_MAX. Checks still pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only review). |
|
Tested 7182111 on Intel UHD 770, driver 32.0.101.7088, Windows 11, MSVC, with LEONIDA_VK_VALIDATION=1 and the Khronos validation layer loaded: ctest -R rgb96 passes 2 of 2. d3d12_rgb96 (1.40 sec) reports "8 texture shapes matched WARP and the expected texels bit for bit", and d3d12_rgb96_copy_queue (0.23 sec) reports "RGB96 DIRECT -> COPY -> DIRECT: 7x5 texels, shifted 3x3 patch and footprint sentinels match", with no validation errors. This GPU has a single queue family, and the test prints "RGB96 COPY on the primary family 0", so the dedicated transfer-family path this PR adds is not exercised here. AI-assisted. |
|
Tested
AI-assisted (Claude Code). |
|
Tested f9f29ed merged with main 8575d36 on Windows 11 (MSVC 14.51, RelWithDebInfo, Ninja): pass |
Claimed in the coordination issue #4683.
Depends on: #4107, #3481, #4577 for merge-order conflicts. This branch builds directly on
main(98fa503f).What and why
A standard RGB96 buffer–texture copy needs compute to repack 12-byte D3D12 texels into the 16-byte Vulkan image format. On a dedicated transfer-only family, submit the affected logical COPY batch on the primary compute-capable queue. Ordinary COPY batches still use the dedicated family. Cross-queue handoffs wait on the previous COPY timeline ticket, including handoffs involving fence signals and sparse binds. Keep the compute write in the readback-to-host barrier and share conversion scratch across the queue families that use it.
This change covers standard RGB96 footprints. The emulated D24-only path on a transfer-only family remains unsupported.
Tested
Head
71821118againstmainat98fa503f.Windows 11 Pro 26300, Visual Studio 2022 Build Tools (MSVC 19.44.35229, Windows SDK 10.0.26100.0), Vulkan SDK 1.4.363.0, NVIDIA GeForce RTX 3090 on 621.01, x64 RelWithDebInfo, with core and synchronization validation enabled.
d3d12_rgb96_copy_queuematched 420 texel bytes and 1,436 sentinels for a 7×5 texture and an offset 3×3 patch. It exercises DIRECT → COPY → DIRECT waits on both a dedicated family and a shared primary queue.depth24_convertalso verifies that the RGB96 readback barrier covers compute writes.AI-assisted (Codex). No game data, keys, or decryption.