Repository navigation
lanes: draw through the second of two raster root tables - #208
Merged
Merged
Conversation
Add the `raster-tables` self-test scenario, the Lanes coverage brcly#168 left for a follow-up. Two hand-written console programs (`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, which its FSSM records and PSV binding name `t3, space2`. The title's root declares `t0` to `t3` in space 1 for that table, so the draw writes the expected value only under the root the provider reflects from both programs. Under the title's root the pipeline becomes a stand-in and the target keeps its clear value; a wrong table or slot reads a decoy that names its view. The reflected root is serialized while the game runs, so nothing can be prepared before launch. The `lanes-raster-tables` verify suite runs the scenario with the host worker and `TUXBOX_TRACE_RASTER_ROOTS=1`. It requires the reflected trace and pipeline lines, no stand-in, and no translation of either program without a root, and removes only these programs' cache entries. Like `xbox-shader`, the scenario stays out of `LANES_SCENARIOS`. The production xshader translates both programs against no root, the title's root and the expected reflected root, and DXC and DXV accept all six. A dxbc test pins the binding the pixel program resolves to under the title's root.
Owner
|
Seem's useful, however, there are conflicts that need resolving |
postblink
force-pushed
the
test/lanes-raster-tables
branch
from
November 26, 2026 02:28
90e906a to
ff9d54c
Compare
Contributor
Author
|
Rebased onto Checks on the rebased branch, as CONTRIBUTING now asks for both vendors:
Both runs used Proton Experimental on CachyOS, Linux 7.3.6. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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 d3d12: use 32-byte guest stride for Device11 inline descriptor arenas #184's 32-byte guest stride; before d3d12: use 32-byte guest stride for Device11 inline descriptor arenas #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.