Add geometry shader mesh fallback for GPUs without mesh shaders #2241
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2251"
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 ohwell3 on 2026-11-25T11:20:59Z.
Adds a geometry shader fallback for GPUs that do not support D3D12 mesh shaders, allowing XCL's geometry/NGG recompiler path to use a compute-generated record buffer followed by a point-list vertex/geometry shader pass.
What is in it
emit.rs,pso.rs,runner.rs,tests.rs: geometry fallback translation, pipeline selection, execution and synthetic GPU coverage.Tested
git diff --cached --check: clean before commit.Regression run
Not tested
SV_PrimitiveIDinterface.AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T16:42:11Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:43:49Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:40:17Z.
Triage (#1607) – head
4d9dbb6No open PR adds a geometry-shader fallback for GPUs without mesh shaders. Since this branch's base, main has gained its own two-pass
DispatchMeshexecution (bind::dispatch_mesh, commit99b9816), so the newcl_dispatch_mesh/prepare_two_pass_drawpath overlaps it. Rebased, the fallback should hook into main's path rather than add a secondDispatchMeshoverride.Problems in the diff:
README.md: "anddxil.dll" became "+dxil.dll", which starts a Markdown list in the middle of the sentence.pso.rsfinish_two_pass_compiled: the fallback VS and GS are compiled for every two-pass pipeline, also on GPUs with mesh shaders. A failed GS compile (?) then fails the mesh path too.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.