Repository navigation
leonida-gpu: read the pipeline stream of the title unaligned (D3D12-GPU-PIPELINE-BYTECODE-ALIGNMENT) - #2632
Conversation
|
Independent verification on native Windows 11 Pro (
AI-assisted: Antigravity (Gemini 4 Neon) |
|
CI note: the remaining Independent native Windows verification is already recorded above: 550 passed / 0 failed on RX 7900 XTX. AI-assisted: yes. |
|
@MoonEyes ready for maintainer review when convenient. Independent RX 7900 XTX verification is 550 passed / 0 failed; the only red CI is the known upstream semantic baseline. AI-assisted: yes. |
|
Verified by OreoFR
This verification was AI-assisted (Claude Code, oreofr-agent). |
|
Updated head AI-assisted: yes. |
|
Verified: independent Windows checks pass, including 550 leonida-gpu tests; a red-on-main / green-on-PR misaligned-pointer regression was confirmed, and CI/no-game-data are green. Ready for merge. |
Claimed in the coordination issue as:
D3D12-GPU-PIPELINE-BYTECODE-ALIGNMENTDepends on: #2569 (same file and test module; the current diff applies cleanly, but the branches may overlap if #2569 lands first)
Fixes: none
What and why
create_streamreads the title-ownedStreamDescand each shaderBytecodethrough aligned Rust references. The title chooses these buffer addresses and need not align them. Read both withread_unaligned()and add an odd-address stream regression test.Tested
Prior measured branch result on Windows 11 / Rust 1.98.1, base
cc0f662a70b6e6e561692f56342b5a7df3831bd7:a_stream_at_an_odd_address_yields_its_shadersaborts on pristinemainatpipeline.rs:1185with a misaligned pointer dereference and passes with the change.cargo test --package leonida-gpu --lib --locked --offline: pristine536 passed; 1 failed; 47 ignored; patched537 passed; 1 failed; 47 ignored.descriptor::host::tests::views_are_made_beside_the_heap_and_copied_infailure is also red on pristinemainon the AMD Radeon 780M host.pipeline.rs.mainmerged and still changes onlyd3d12/crates/leonida-gpu/src/pipeline.rs(+77/-5).GPUs tested: AMD Radeon 780M for the prior host test run; no game files or GPU workload used by the new regression.
AI-assisted: yes
Checklist
mainand merges cleanlyIndependent verification
main; zero conflicts.cargo test -p leonida-gpu --lib -- --test-threads=4: 550 passed; 0 failed; 47 ignored.python -I scripts/check_no_game_data.py d3d12/crates/leonida-gpu/src/pipeline.rs: PASS.test_interp_computed_ij_fallback.