Skip to content

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

Draft
Valdi320 wants to merge 9 commits into
brcly:mainfrom
Valdi320:work/mesh-validation-20261126
Draft

Valdi320 wants to merge 9 commits into
brcly:mainfrom
Valdi320:work/mesh-validation-20261126

Conversation

@Valdi320

@Valdi320 Valdi320 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

@Valdi320

Copy link
Copy Markdown
Contributor Author

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 #273. No AMD, full check, or retail replay. The A/B evidence is in #268.

@Valdi320

Copy link
Copy Markdown
Contributor Author

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

@Valdi320

Copy link
Copy Markdown
Contributor Author

Updated this existing draft to 0ca25e6 (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

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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 3296860, 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 Valdi320 changed the title verify: render translated NGG shared-count mesh shaders verify: validate translated mesh shaders and explicit fallback policy Nov 26, 2026
@Valdi320

Copy link
Copy Markdown
Contributor Author

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. verify: validate translated mesh shaders and explicit fallback policy #272 — mesh GPU correctness and explicit fallback policy (includes verify: isolate the deliberate compute stand-in policy #273).
  2. d3d12: coalesce redundant placed texture queue waits #277 — small synchronization change; coalesces same-fence waits, no cross-fence or cross-phase merging.
  3. diagnostics: attribute compute pipeline failures and replay exact shader variants #249 — exact request attribution, memory sampling and offline guard audit (includes tools: replay Wave32 variants exactly and audit compute loop guards #261).
  4. launcher: deduplicate shader compilation and verify one bounded cache snapshot #239 — content single-flight and bounded verified cache snapshot (includes launcher: reuse one bounded verified DXIL snapshot #247).
  5. d3d12: adapt large shader compile concurrency to available memory #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants