tombox-xshader tests: pin the refusal of GS emit and cut on streams 1-3 #232
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!232
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/232/head"
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?
@azerioxfr on GitHub · 2026-11-23 06:21 UTC · original
azerioxfr:xshader-pin-gs-stream-refusal→main· +26 −0 · 1 files · 1 commits · closed without mergingLibrary / area: tombox-xshader tests, geometry shader
s_sendmsg(emit_sendmsg)Exports changed (exports.txt rows): none
Source of the behaviour: your answer on #104: streams 1-3 only feed stream-out, and the D3D12 layer has no stream-out path, so the translator keeps the explicit error rather than dropping those emits. No translator change.
One topic, +25: one helper and one test in
tests/synthetic.rs, next togeometry_adjacency_primitives_translate.What was missing
That decision had no test. A later change could drop or remap stream 1-3 emits (the remap #104 first proposed,
SV_RenderTargetArrayIndex, would be wrong), and no test would notice.The test
geometry_emit_and_cut_on_streams_1_to_3_are_refusedbuilds a geometry shader whose body is ones_sendmsg(message 2 = GS) ands_endpgm:Err("GS output stream != 0 unsupported")emit_sendmsgdisabled (if false && stream != 0)cargo test --locked -p tombox-xshader --test synthetic geometry: 2 passed. I ran onx86_64-pc-windows-gnu, because this machine has no MSVC linker. The test does no floating-point maths.cargo test -p tombox-xshader --test syntheticpasses for the new testmissingwith a note@omonkeyz on GitHub · 2026-11-23 14:08 UTC · original
Applied locally on main with your authorship kept (cherry-picked,
6d86929); the tombox-xshader suite passes in a sandbox (exec 155/155 on WARP). It ships in the next release; this PR will be closed when that is pushed. Thanks.@kiwe147 on GitHub · 2026-11-23 18:57 UTC · original
Tested head
bdcae1f53b, applied withgit apply(whitespace ignored, the line endings of my checkout differ) onmainf89e410, together with #199, #229 (one tree; the PRs touch different files). It applied without conflicts and built.Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, NVIDIA GeForce RTX 3080 (driver 621.24), MSVC, Rust 1.91.1.
tombox-xshaderlib +opcodes,synthetic,mesh,linkage,mixed_table,ps_linkage,centroid,gcn_dims,amp,xshader_cli,isa_sweepexecsuite on WARPTOMBOX_EXEC_HW=1(RTX 3080)No new failure against
mainf89e410in any of these. This is one combined tree, not a run of this PR alone.AI-assisted: yes (Claude Code)
@omonkeyz on GitHub · 2026-11-25 13:08 UTC · original
Applied on main in
6d86929(cherry-picked onto the current history with your authorship kept; comment lines stripped per CONTRIBUTING). Thank you.Pull request closed