tombox-xshader tests: pin the refusal of GS emit and cut on streams 1-3 #232
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/232"
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 omonkeyz/xbox-emulator. Originally posted by azerioxfr on 2026-11-23T06:21:55Z.
Library / 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 noteImported from omonkeyz/xbox-emulator. Originally posted by omonkeyz on 2026-11-23T14:08:22Z.
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.Imported from omonkeyz/xbox-emulator. Originally posted by kiwe147 on 2026-11-23T18:57:11Z.
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)
Imported from omonkeyz/xbox-emulator. Originally posted by omonkeyz on 2026-11-25T13:08:32Z.
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