Repository navigation
GPU: build and test the D3D12 crate off Windows - #120
Open
lordra9-svg wants to merge 1 commit into
Open
lordra9-svg wants to merge 1 commit into
lordra9-svg wants to merge 1 commit into
Conversation
ValueWait::holds reads guest memory through cfg(windows) host/texture helpers and resource::view_format asks the host resource for its description. Give both a cfg(not(windows)) body (there is no guest memory to read and no host copy to ask about) so the crate type-checks elsewhere; the Windows bodies are unchanged. The cfg(windows) host paths leave helpers and parameters unused off Windows, so allow those lints there only. victory-gpu (26 tests) and victory-game (14) now build and run natively on Linux. victory-hle still needs victory-loader's crash module gated (see DexNom#93).
|
Independent native Windows MSVC diagnostics check at Verification was AI-assisted with GPT-6.2 Astra. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this PR exists
#93 gets the inherited CPU crates building on Linux and leaves one design call open:
victory-gpustill does not compile off Windows because two functions in non-Windows code callcfg(windows)host/texture helpers. This takes the smallest option it lists — gate those two functions — so the D3D12 crate andvictory-gamebehind it type-check and their CPU tests run on Linux. The Windows build is unchanged.What changes
crates/victory-gpu/src/list.rs,ValueWait::holds: the existing body (the kernel read throughhost::read_into, with the optionaltexture::committedpre-check) is nowcfg(windows). Thecfg(not(windows))body returnstrue: there is no guest memory to read, so nothing can be waiting on it in a check-only build.crates/victory-gpu/src/resource.rs,view_format: the existing body (asks the host resource'sGetDesc) is nowcfg(windows). Off Windows it returnsNone: no host copies are made, so no view needs the title format.crates/victory-gpu/src/lib.rs: off Windows, allowdead_code,unused_imports,unused_mutandunused_variables. Thecfg(windows)host paths leave their helpers and parameters unused there; Windows keeps the workspace lints as they are.Testing
Machine: AMD Ryzen 7 7700 (8c/16t), 30 GiB, Bazzite, kernel 7.3.5,
rustc 1.98.1fromrust-toolchain.toml. BCPack tables from the pinned upstream blob, sha2561f1d4760419202bb5672f0c428ce51e456b5d08fbaec8f371d043fd94e01c36b. No game data.cargo test --locked --no-fail-fast -p victory-core -p victory-formats -p victory-pipeline -p victory-shader -p victory-gpu -p victory-gamecargo check -p victory-gpu -p victory-game(native Linux): clean, no warnings.cargo clippy -p victory-gpu -p victory-game(native Linux, workspace lints): clean.cargo check -p victory-gpu -p victory-game --target x86_64-pc-windows-gnuis clean, andcargo clippy … --target x86_64-pc-windows-gnu -- -D warningsis clean. The msvc target cannot build blake3's C code here withoutcl.exe, so the gnu target was used, as Gate Windows-only self-exe tests and the crash module; Linux test lane goes 227/4 to 230/0 #93 did.victory-pestill reports its four self-exe fixture failures off Windows (those are the ones Gate Windows-only self-exe tests and the crash module; Linux test lane goes 227/4 to 230/0 #93 gates), andvictory-hlestill needs Gate Windows-only self-exe tests and the crash module; Linux test lane goes 227/4 to 230/0 #93'scrashmodule gate before it compiles on Linux.Not tested
No D3D12 device, GPU execution or gameplay: this is a Linux machine without a Windows graphics path. The new bodies are never reached by the Windows runtime.
AI use
The patch, the test runs and this description were produced by an OpenCode agent running DeepSeek V4.1 Flash. Submitted from @lordra9-svg's account.