verify: validate translated mesh shaders and explicit fallback policy #272

Merged
Valdi320 merged 9 commits from upstream-pr/272 into main 2026-11-27 14:07:09 +00:00
Valdi320 commented 2026-11-26 20:54:00 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T20:54:00Z.


Review goal: Verify actual translated mesh programs on the GPU, not desktop stand-ins. Test-only changes; no production translation change.

Scope: #272 + #273. Independent 28-draw mesh oracle, real rooted Lanes mesh/raster translations, explicit fallback policy. Merged main 12e4b06, retaining #278's lane-spill-interp scenario and its expected translation check. No unrelated changes.

Evidence: Head bd7fd5a on 12e4b06, RTX 4080 (10de:2704), NVIDIA 620.73.04, GE-Proton11-14: official six no-GPU groups PASS; 11/11 selected Lanes checks (5 raster/mesh/spill, 2 compute root/recovery, 4 bindless), 28/28 independent translated mesh draws, 1,792 exact words. Rebuilt providers, guest and translator; staged D3D12 SHA-256 309f9eee0f001c2a4654f29393abb339749e58a9e5b94e1ce422474b84f4cabe. Previous heads: Nick's AMD full checks 121/121 mesh, 120/120 policy; not current-head AMD evidence.

Review order: Fixtures and expected readback first, then verify.py / fallback tests. Independent of other pending PRs. Still draft: complete current-head GPU check and AMD run outstanding; no retail title claim.

<!-- greyfinch-sync:brcly/TuxBox:issue:5517006731 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/272). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T20:54:00Z. --- **Review goal:** Verify actual translated mesh programs on the GPU, not desktop stand-ins. Test-only changes; no production translation change. **Scope:** #272 + #273. Independent 28-draw mesh oracle, real rooted Lanes mesh/raster translations, explicit fallback policy. Merged main 12e4b06, retaining #278's lane-spill-interp scenario and its expected translation check. No unrelated changes. **Evidence:** Head bd7fd5a on 12e4b06, RTX 4080 (10de:2704), NVIDIA 620.73.04, GE-Proton11-14: official six no-GPU groups PASS; 11/11 selected Lanes checks (5 raster/mesh/spill, 2 compute root/recovery, 4 bindless), 28/28 independent translated mesh draws, 1,792 exact words. Rebuilt providers, guest and translator; staged D3D12 SHA-256 309f9eee0f001c2a4654f29393abb339749e58a9e5b94e1ce422474b84f4cabe. Previous heads: Nick's AMD full checks [121/121 mesh](https://github.com/brcly/TuxBox/pull/272#issuecomment-7204462103), [120/120 policy](https://github.com/brcly/TuxBox/pull/273#issuecomment-7204599238); not current-head AMD evidence. **Review order:** Fixtures and expected readback first, then verify.py / fallback tests. Independent of other pending PRs. Still draft: complete current-head GPU check and AMD run outstanding; no retail title claim.
Valdi320 commented 2026-11-26 21:33:13 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T21:33:13Z.


Rebased the translated mesh fixtures and Lanes worker-receipt checks on main e76ff6a after #266 and #268 merged: github.com/Valdi320/TuxBox@a953c10490. All six no-GPU groups and 6/6 selected Lanes gates on RTX 4080 / GE-Proton11-14 (rebuilt exact provider/guest), including both mesh samplers and both compute-root controls. Combined tree also includes the independent null-policy test fix https://github.com/brcly/TuxBox/pull/273. No AMD, full check, or retail replay. The A/B evidence is in #268.

<!-- greyfinch-sync:brcly/TuxBox:comment:7203836041 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/272#issuecomment-7203836041). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T21:33:13Z. --- Rebased the translated mesh fixtures and Lanes worker-receipt checks on main e76ff6a after #266 and #268 merged: https://github.com/Valdi320/TuxBox/tree/a953c104903c95b2b057edc88d183bafe7426d81. All six no-GPU groups and 6/6 selected Lanes gates on RTX 4080 / GE-Proton11-14 (rebuilt exact provider/guest), including both mesh samplers and both compute-root controls. Combined tree also includes the independent null-policy test fix https://github.com/brcly/TuxBox/pull/273. No AMD, full check, or retail replay. The A/B evidence is in #268.
Valdi320 commented 2026-11-26 21:37:16 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T21:37:16Z.


Additional targeted validation on the same rebuilt integration tree a953c104903c95b2b057edc88d183bafe7426d81, based on upstream e76ff6a (merged #252/#254/#259/#260/#266/#268/#269): RTX 4080, GE-Proton11-14.

  • 23/23 selected guest controls: previous 6 Lanes root/mesh cases, all 14 Lanes selftest scenarios, plus D3D12 heaps/tables/queues. Includes labels, cross-queue, dispatch/direct-copy waits, indirect dispatch, descriptor reclaim. The intended null policy fix is #273.
  • 7/7 selected translator controls: translated-mesh (28 cases, 1792 words), root-srv-remap (8 cases, 3072 words), third-table-atomic (8 cases, 3072 words), image-cmpswap (13 cases, 2080 words), raw-index (8 cases, 3072 words), wave-guard-32-chain (32 cases, 12288 words), wave-guard-64-chain (70 cases, 26880 words); 167 cases and 52256 compared words total. The initial combined runner reached its 105-second wrapper timeout after reporting six passes; the wave64 chain had a positive receipt and was independently rerun to a normal zero exit.
  • Six code groups passed. These are synthetic controls, not retail equivalence or a reproduction of #215/#232. No AMD run or full check claimed. The real corpus and device-loss attribution remain necessary.
<!-- greyfinch-sync:brcly/TuxBox:comment:7203901530 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/272#issuecomment-7203901530). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T21:37:16Z. --- Additional targeted validation on the same rebuilt integration tree a953c104903c95b2b057edc88d183bafe7426d81, based on upstream e76ff6a (merged #252/#254/#259/#260/#266/#268/#269): RTX 4080, GE-Proton11-14. - 23/23 selected guest controls: previous 6 Lanes root/mesh cases, all 14 Lanes selftest scenarios, plus D3D12 heaps/tables/queues. Includes labels, cross-queue, dispatch/direct-copy waits, indirect dispatch, descriptor reclaim. The intended null policy fix is #273. - 7/7 selected translator controls: translated-mesh (28 cases, 1792 words), root-srv-remap (8 cases, 3072 words), third-table-atomic (8 cases, 3072 words), image-cmpswap (13 cases, 2080 words), raw-index (8 cases, 3072 words), wave-guard-32-chain (32 cases, 12288 words), wave-guard-64-chain (70 cases, 26880 words); 167 cases and 52256 compared words total. The initial combined runner reached its 105-second wrapper timeout after reporting six passes; the wave64 chain had a positive receipt and was independently rerun to a normal zero exit. - Six code groups passed. These are synthetic controls, not retail equivalence or a reproduction of #215/#232. No AMD run or full check claimed. The real corpus and device-loss attribution remain necessary.
Valdi320 commented 2026-11-26 21:40:16 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T21:40:16Z.


Updated this existing draft to 0ca25e6521 (fast-forward, merged main e76ff6a). Incorporates the guarded FP16 mesh fixtures and the real root-aware Lanes mesh gates from the previously posted integration. Explicitly disables null pipelines for these four raster gates and restores the caller's policy; updated docs and negative tests. Final six code groups passed and 4/4 raster/mesh gates passed on RTX 4080 with inherited TUXBOX_NULL_PIPELINES=1; reused the rebuilt guest/provider binaries only after verifying identical runtime/fixture sources to a953c10. Fresh prefix and compiler from the PR head. #273 remains independent. No AMD/full-check or retail replay claim.

<!-- greyfinch-sync:brcly/TuxBox:comment:7203949255 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/272#issuecomment-7203949255). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T21:40:16Z. --- Updated this existing draft to 0ca25e65210fc348de306d7cc270a8d91f815d4c (fast-forward, merged main e76ff6a). Incorporates the guarded FP16 mesh fixtures and the real root-aware Lanes mesh gates from the previously posted integration. Explicitly disables null pipelines for these four raster gates and restores the caller's policy; updated docs and negative tests. Final six code groups passed and 4/4 raster/mesh gates passed on RTX 4080 with inherited TUXBOX_NULL_PIPELINES=1; reused the rebuilt guest/provider binaries only after verifying identical runtime/fixture sources to a953c10. Fresh prefix and compiler from the PR head. #273 remains independent. No AMD/full-check or retail replay claim.
NickStallman commented 2026-11-26 22:12:24 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T22:12:24Z.


AMD run of 0ca25e6 (this PR's head): the full python tuxbox.py check --adapter 1002:13c0 --proton … --prefix … --windows-dxc … passed, 121 gates, including translated-mesh: 28 mesh draws; 1792 words expected; PASS, lanes-mesh-samplers and lanes-mesh-sampler-single.

  • AMD Raphael iGPU (1002:13c0, RDNA2), RADV (Mesa 26.0.8), GE-Proton11-14, Linux 7.0.
  • Every group passed: Lanes and the fixtures, the D3D12 regression controls and the translator on the GPU.
<!-- greyfinch-sync:brcly/TuxBox:comment:7204462103 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/272#issuecomment-7204462103). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-26T22:12:24Z. --- AMD run of `0ca25e6` (this PR's head): the full `python tuxbox.py check --adapter 1002:13c0 --proton … --prefix … --windows-dxc …` passed, 121 gates, including `translated-mesh: 28 mesh draws; 1792 words expected; PASS`, `lanes-mesh-samplers` and `lanes-mesh-sampler-single`. - AMD Raphael iGPU (1002:13c0, RDNA2), RADV (Mesa 26.0.8), GE-Proton11-14, Linux 7.0. - Every group passed: Lanes and the fixtures, the D3D12 regression controls and the translator on the GPU.
Valdi320 commented 2026-11-26 23:15:03 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T23:15:03Z.


Thanks for the feedback on #273, and thanks Nick for the independent AMD full checks. I understand the review burden and will stop opening overlapping PRs. Consolidated #273 into this existing #272 branch at 3296860409, updated to main 6ce0aac (including the newly merged #235), no additional PR. Scope: guest/translator mesh correctness gates and explicit null-pipeline test policy; no runtime behavior change. Rebuilt providers and guest, verified staged D3D12/XMem bytes against the built binaries, all six no-GPU groups and 10/10 selected NVIDIA guest checks passed (raster/mesh 4, compute-root/recovery 2, bindless compute/sampler 4). Nick's earlier AMD reports apply to the individual previous heads; no claim of an AMD run on this combined head. The independent #273 will be closed as superseded, preserving its commits and AMD evidence here. For other outstanding groups I will prioritize consolidation or withdrawal rather than add more review work. No rush on review.

<!-- greyfinch-sync:brcly/TuxBox:comment:7205381825 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/272#issuecomment-7205381825). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T23:15:03Z. --- Thanks for the feedback on #273, and thanks Nick for the independent AMD full checks. I understand the review burden and will stop opening overlapping PRs. Consolidated #273 into this existing #272 branch at 32968604092c432f73dcb11bf2c8cb26e4d38030, updated to main 6ce0aac (including the newly merged #235), no additional PR. Scope: guest/translator mesh correctness gates and explicit null-pipeline test policy; no runtime behavior change. Rebuilt providers and guest, verified staged D3D12/XMem bytes against the built binaries, all six no-GPU groups and 10/10 selected NVIDIA guest checks passed (raster/mesh 4, compute-root/recovery 2, bindless compute/sampler 4). Nick's earlier AMD reports apply to the individual previous heads; no claim of an AMD run on this combined head. The independent #273 will be closed as superseded, preserving its commits and AMD evidence here. For other outstanding groups I will prioritize consolidation or withdrawal rather than add more review work. No rush on review.
Valdi320 commented 2026-11-26 23:21:59 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T23:21:59Z.


Thanks again for the feedback on #273. I reduced my open draft queue from 19 to 5; no new PRs. The related work is consolidated, and the remaining descriptions now separate current-head tests from historical runs and state exactly what still needs validation.

Suggested review order (no rush; independent drafts):

  1. #272 — mesh GPU correctness and explicit fallback policy (includes #273).
  2. #277 — small synchronization change; coalesces same-fence waits, no cross-fence or cross-phase merging.
  3. #249 — exact request attribution, memory sampling and offline guard audit (includes #261).
  4. #239 — content single-flight and bounded verified cache snapshot (includes #247).
  5. #236 — adaptive compile budget, after diagnostic evidence.

I closed the redundant #261/#247 and deferred 12 experiments: #279, #275, #271, #257, #248, #245, #243, #242, #234, #240, #238, #228. Their branches, commits and prior independent reports are preserved, with a reason and reactivation condition on each. In particular #238 can be revisited when actual stage timings are available; #228 remains deferred pending independent display-isolation evidence. No claim that these deferred changes were merged or that all current heads have full cross-vendor validation.

Going forward I'll keep experiments off the upstream PR queue, prioritize one review unit at a time, and avoid submitting overlapping proposals. Thanks for your patience.

<!-- greyfinch-sync:brcly/TuxBox:comment:7205479963 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/272#issuecomment-7205479963). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T23:21:59Z. --- Thanks again for the feedback on #273. I reduced my open draft queue from 19 to 5; no new PRs. The related work is consolidated, and the remaining descriptions now separate current-head tests from historical runs and state exactly what still needs validation. Suggested review order (no rush; independent drafts): 1. #272 — mesh GPU correctness and explicit fallback policy (includes #273). 2. #277 — small synchronization change; coalesces same-fence waits, no cross-fence or cross-phase merging. 3. #249 — exact request attribution, memory sampling and offline guard audit (includes #261). 4. #239 — content single-flight and bounded verified cache snapshot (includes #247). 5. #236 — adaptive compile budget, after diagnostic evidence. I closed the redundant #261/#247 and deferred 12 experiments: #279, #275, #271, #257, #248, #245, #243, #242, #234, #240, #238, #228. Their branches, commits and prior independent reports are preserved, with a reason and reactivation condition on each. In particular #238 can be revisited when actual stage timings are available; #228 remains deferred pending independent display-isolation evidence. No claim that these deferred changes were merged or that all current heads have full cross-vendor validation. Going forward I'll keep experiments off the upstream PR queue, prioritize one review unit at a time, and avoid submitting overlapping proposals. Thanks for your patience.
brcly commented 2026-11-27 14:08:50 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-27T14:08:50Z.


Merged, thank you. I updated it on current main: resolved conflicts in four files, kept the newer raster and mesh scenarios (mesh-sampler-rootless now uses your translated mesh program too), and removed mesh_samplers.hlsl, which nothing used any more. The full check passed with #277 on an RTX 4070 Ti SUPER and an AMD Raphael iGPU before that removal.

<!-- greyfinch-sync:brcly/TuxBox:comment:7220403790 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/272#issuecomment-7220403790). Originally posted by [brcly](https://github.com/brcly) on 2026-11-27T14:08:50Z. --- Merged, thank you. I updated it on current `main`: resolved conflicts in four files, kept the newer raster and mesh scenarios (`mesh-sampler-rootless` now uses your translated mesh program too), and removed `mesh_samplers.hlsl`, which nothing used any more. The full check passed with #277 on an RTX 4070 Ti SUPER and an AMD Raphael iGPU before that removal.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!272
No description provided.