tools: replay Wave32 variants exactly and audit compute loop guards #261
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/261"
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 brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T18:53:15Z.
Two reproducible offline replay bugs relevant to #232: the emitter-only triage omitted --wave32-host for .wave32 requests, and the digest-verified snapshot compared the SHA-256 against the _w32-suffixed key. Both regression tests fail before the fix. Preserve variant identity and verify the underlying source digest.
Add tools/audit_shader_guards.py to compare actual emitted HLSL guard sites for identical, privately snapshotted requests across pinned xshader binaries. Separate structured guards, guarded dispatchers and other dispatcher sites, report newly admitted compute programs and how many have generic guards. Static counts are NOT iteration counts, timings or proof of a fault. Aggregate only by default; optional per-request keys stay local. No change to emitted HLSL, guard bounds, execution or game caches.
Validation: 385 Python tests (27 skipped), six no-GPU groups. Actual compiler comparison of 10 synthetic requests: 9 compiled on both, 1 deterministic refusal, no failures, both .wave32 variants compiled with DXC/DXV. Extended guard census of 12 synthetic requests with 2 emitted generic structured guard sites, 0 inconclusive. No retail data or raw HLSL included. CPU-only diagnostic change; full GPU and AMD validation not run for this branch. Draft.
Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T21:42:12Z.
Updated to
4d7fba0344on upstreame76ff6a; resolved documentation conflict preserving the provider-provenance section. Guard audit now distinguishes generic structured/dispatcher guards from persistent PC-range dispatchers, and reports paired shape transitions and retained compute translations gaining/losing guards. The range check is NOT a bound on loop iterations. Default report remains aggregate-only. All six no-GPU groups and five audit unit tests passed. Real xshader A/B of 12 synthetic archived requests (including .wave32): both 11 compute, one refused, two structured guards, no inconclusive outcomes; transition counts reconcile. Persistent and changed-shape classifications tested with synthetic HLSL/unit inputs; no claim of retail corpus coverage or device-loss reproduction. No runtime changes.Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T23:20:46Z.
Consolidated into #249 (
d5b8516); the replay fixes and guard census are preserved and tested there. Closing this draft to make the review queue manageable, per the maintainer's request. The branch and history remain intact at4d7fba0; no branch deleted.Pull request closed