lanes: draw through the second of two raster root tables #208
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!208
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/208/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?
@postblink on GitHub · 2026-11-26 02:01 UTC · original
postblink:test/lanes-raster-tables→main· +509 −8 · 8 files · 1 commits · merged 2026-11-26 02:36 UTCSummary
This adds a
raster-tablesLanes self-test scenario: the GPU coverage that #168 (reflected raster roots with several descriptor tables) left for a follow-up.Two hand-written console programs (
examples/lanes/raster_fixture.py) draw a fullscreen triangle through the Xbox stream pipeline. The pixel program loads one dword from slot 2 of the root's second descriptor table. Its FSSM records and PSV binding name thatt3, space2, while the title's root declarest0tot3in space 1 for that table.The reflected root is serialized while the game runs, so nothing can be prepared before launch. The
lanes-raster-tablesverify suite therefore runs the scenario with the host worker andTUXBOX_TRACE_RASTER_ROOTS=1. It requires:It removes only these programs' cache entries. Like
xbox-shader, the scenario stays out ofLANES_SCENARIOS.The gate also matches the trace when Wine's
+debugstrescapes its quotes ({\"reflected\": 1}).test_trace_escaped_by_debugstr_passescovers that, and fails without the fix.The production xshader translates both programs against three roots: none, the title's, and the expected reflected root. DXC and DXV accept all six results. A dxbc test pins the binding the pixel program resolves to under the title's root.
Verified on Lanes
python tuxbox.py checkpassed on this branchGPU, driver and backend: NVIDIA GeForce RTX 5080 (
10de:2c02), driver 620.73.04, and AMD Radeon 610M iGPU (1002:13c0, RADV, Mesa 26.3.1), GE-Proton11-14. CachyOS, Linux 7.3.6, Ryzen 7 9800X3D.lanes-raster-tablespassed three runs of three on the RTX 5080 and passed on the Radeon. The Radeon pass needs #184's 32-byte guest stride; before #184 the scenario failed there.reflecteddisabled (compute_table.rs), the scenario fails on the RTX 5080 as intended:lanes-selftest FAIL raster-tables: texel 0,0 is 0: a stand-in pipeline or a skipped draw.Summary printed at the end (
python tuxbox.py check --adapter 10de:2c02, on this commit, oncb8c38b):Checks
Python unit tests pass locally (359 tests). This change has no evidence JSON.
@brcly on GitHub · 2026-11-26 02:06 UTC · original
Seem's useful, however, there are conflicts that need resolving
@postblink on GitHub · 2026-11-26 03:12 UTC · original
Rebased onto
4f7fa84(nowff9d54c). The conflicts were with the newwave64-shaderscenario, which sits in the same three places:examples/lanes/selftest.cpp,examples/lanes/README.mdandproject_tuxbox/verify.py. Both scenarios are kept.Checks on the rebased branch, as CONTRIBUTING now asks for both vendors:
10de:2c02, driver 620.73.04):python tuxbox.py check --adapter 10de:2c02passes every stage.lanes-raster-tablespasses 3 of 3, and fails as intended with the multi-table arm ofreflecteddisabled.1002:13c0, RADV, Mesa 26.3.1):lanes-raster-tablespasses. The full check fails only the fiveguest-present*gates, which read the frame back from the desktop (screen colors on frame 1: 0xf5f5f5…). Plainmainat4f7fa84fails the same five gates on this machine with the same receipts, 93 passed and 5 failed against this branch's 94 and 5, so that's a desktop-capture issue on this host rather than this change. This iGPU drives no display here; the monitors are on the NVIDIA card.Both runs used Proton Experimental on CachyOS, Linux 7.3.6.