D3D12.X: no VS, input layout or topology from the title in a mesh pipeline #1926
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1936"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by mastrr9 on 2026-11-24T23:43:49Z.
translated_mesh_streambuilds XCL's PC mesh pipeline and then copied almost every other subobject of the title's stream into it, including VS / DS / HS / GS / CS, input layout, strip cut value, stream output and primitive topology type. D3D12 allows none of these in a mesh pipeline, soCreatePipelineStatecan fail withE_INVALIDARG(0x80070057), and a console VS or GS among them reached the driver as console bytecode. The copy now leaves them out.Draft: the head commit has not been built or tested yet.
What is in it
hle/d3d12x/real.rs:mesh_stream_statecopies only the state a mesh pipeline may setmesh_stream_state_tests: one test of what is kept, one GPU test that creates the pipeline from a stream naming a VS, input layout, strip cut value and line topologyTested
These runs are from before the final rebase, on a combined branch (
01db80a, based on maine9e94ce; it holds this change plus four other changes), not on this PR's head commit.cargo testdebug build. Driver, CPU and Rust versions were not recorded.XCL_REQUIRE_GPU=mesh,cargo test -p xcl --lib mesh_stream_state_tests -- --nocapture --test-threads=1: 2 passed, 0 failed; the GPU test ran on the adapter (not skipped).real.rsis unchanged betweene9e94ceandf5136a6, and the commit's patch is the same after the rebase.Regression run
Not run: there are no
xcl-smokeblocks for this change.Not tested
f5136a6) has not been built or tested: it was rebased on macOS, with no Rust toolchain.cargo test --workspacewas not run for this change on its own.TRIANGLEwhere this change leaves the type out. The two conflict inreal.rs; #1937 does not remove the other subobjects. If it lands first, this needs a rebase that keeps itsTRIANGLEdeclaration, with the unit test adjusted.AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T02:41:07Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:07:37Z.
Triage (#1607) – head
6158c0cPart of this is on main: #1937 (merged) skips the title's topology subobject (14) in the mesh stream copy. Main's loop in
translated_mesh_stream_oncestill copies VS / DS / HS / GS / CS, stream output, input layout and strip cut value ([0, 2, 14, 19, 24, 25]). Those are what this PR adds. No other open PR filters them.Main has since changed that loop: BLEND now goes through
sanitize_integer_rt_blend. The rebase has to keep that, and keep main's topology handling instead of this PR's, as the description says.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.