Skip to content

Scripts: prepare verified shader diagnostic bundles - #2870

Draft
IISKII1 wants to merge 5 commits into
xcl-dev:mainfrom
IISKII1:codex/shader-analysis-bundles
Draft

IISKII1 wants to merge 5 commits into
xcl-dev:mainfrom
IISKII1:codex/shader-analysis-bundles

Conversation

@IISKII1

@IISKII1 IISKII1 commented Nov 26, 2026

Copy link
Copy Markdown

Stacked on #2553 (head b0d2fb8); only the top commit belongs here. Part of #2562.

Prepare isolated shader bundles before optional vendor analysis: verify the copied artifacts, retain the manifest and SHA-256 identities, and write a structured local report. A new directory per run prevents stale results from being reused.

What is in it

  • scripts/analyze_shader.py, five synthetic fixture tests, and README usage. No runtime change in this commit.

Tested

  • Windows 10 Pro build 19045, RX 7700 XT driver 32.0.22021.1009, Rust 1.94.0 MSVC, Python 3.13; debug.
  • python -B -m unittest discover -s scripts -p test_*.py: 35 passed, 0 failed on the matching local tree.
  • scripts/test.ps1: build succeeded; library tests 1297 passed, 3 failed, 26 ignored; 345 explicit GPU skips included in passes. The run stopped before integration tests. Failures: passthrough_mesh_stream_accepts_a_triangle_driver_blob, split_compute_program_prebuilds_and_caches_chain_pieces, stale_blob_cannot_bypass_the_offline_pipeline_cap. The latter reports no SM 6.6 on this Windows installation. Rust sources are unchanged from the dependency; no claim of a green full suite.
  • git diff --check passed. Remote tree matches the tested local tree.

Not tested

  • No retail title, no GPU execution coverage for skipped cases. Source revision is caller-supplied, not authenticated. This verifies artifact identity, not DXIL validity. Draft pending dependency and Windows suite validation.

AI use

  • Codex (GPT-6) implemented the code and tests, ran validation and wrote this description.

mokkamokacaffe and others added 5 commits November 25, 2026 23:43
Check the guest hash and the result selected by the manifest. Compare exact diagnostic bytes for rejected translations so saved artifacts can be verified without the source pack or a GPU.

Assisted-by: OpenAI Codex (GPT-6)
Remove an existing manifest before replacing any of its sibling artifacts. A failed rerun can then leave incomplete files, but cannot make the verifier accept the previous generation as the new result.

Add a two-generation regression that forces the replacement error artifact to be unwritable and checks that the old manifest is gone.

Assisted-by: OpenAI Codex (GPT-6.2 Astra Ultra)
Snapshot and verify analyzer inputs before external tools consume them. Record source metadata and SHA-256 identities separately from diagnostic results.

Assisted-by: Codex (GPT-6)
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.

3 participants