Skip to content

perf(shader): skip redundant SPIR-V validation after unchanged compaction - #10389

Closed
daviaaze wants to merge 2 commits into
boykopovar:mainfrom
daviaaze:pr/spirv-unchanged-validation-2
Closed

daviaaze wants to merge 2 commits into
boykopovar:mainfrom
daviaaze:pr/spirv-unchanged-validation-2

Conversation

@daviaaze

Copy link
Copy Markdown
Contributor

Summary

  • Keep validation and optimization of the materialized SPIR-V before descriptor compaction.
  • After compaction, run the full validator on the compact module only if its words differ from the already validated materialized module; byte-identical output reuses the earlier validation result. Changed output remains fully validated.
  • Remove the compute-capture test's arbitrary 12-variant limit; it still verifies every generated capture's replay/output and device identity.

Validation

  • RelWithDebInfo build with ANYPS5_ENABLE_SPIRV_TOOLS=ON.
  • 80 focused SPIR-V/shader/compute/prepared-shader/graphics CTests passed on the rebased branch. Khronos Vulkan validation enabled; 0 VUID/validation errors.
  • The capture test was rerun serially after a parallel run hit its 30-second timeout under load; all four previously timed-out/cardinality-failing cases then passed.

This is a validation-call reduction only; no game-performance claim.

Extracted from perf/spirv-validate-once at 3efca53; original history preserved. No same-scene game performance claim.

(cherry picked from commit 9d5ebd7fce4406130d39aa9cb0d343af5d8369fb)
@github-actions github-actions Bot added perf Performance change perf numbers missing perf pull request without a before and after summary line labels Oct 23, 2026
@github-actions

Copy link
Copy Markdown

This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

@github-actions github-actions Bot added the open PR limit Closed over the open PR limit: 1 without merged PRs, 20 with at least 1, none from 20 label Oct 23, 2026
@github-actions

Copy link
Copy Markdown

Thank you for your contribution! Authors with no pull requests merged into main can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

@github-actions github-actions Bot closed this Oct 23, 2026
@daviaaze

Copy link
Copy Markdown
Contributor Author

@adriadam10 #9961 has now merged, satisfying the first-merged-PR requirement. Could a maintainer please reopen this PR, which was automatically closed for the open PR limit? Both the CLI reopen operation and REST update were rejected by GitHub, so I cannot reopen it directly. I am refreshing the branch and verification against current main. AI-assisted: yes.

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

Labels

open PR limit Closed over the open PR limit: 1 without merged PRs, 20 with at least 1, none from 20 perf numbers missing perf pull request without a before and after summary line perf Performance change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant