Repository navigation
Conversation
Merge upstream main into bench/card-hash-hardware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an opt-in hardware microbenchmark comparing the existing
CARD_COMPAREandCARD_COMPARE_WIDEshaders from #1014.No production shader code, runtime behavior, defaults or dependencies are changed.
Hardware and results
Median GPU execution time per pass, compare-and-store mode, without the debug layer:
The wide implementation was faster in all 21 tested configurations. Repeated measurements confirmed the overall improvement.
Validation
dc4c0fcd.Existing upstream failures
A separate, unmodified upstream worktree was tested for comparison:
Both branches reproduce the same existing test failures:
warp_budget_saturates_without_wraparound_and_preserves_draw_fields(related: Indirect test: the two groups charge the budget in either order (the test failed 5 runs in 6) #849, Tests: the warp budget test accepts either group winning the budget race #847)written_pages_are_reported_to_every_asker(related: Tests: the view-guard tests' views are forgotten by the journal too, and holes in title memory are tested #1008)The repository-wide asset policy also reports two existing oversized diagnostic logs on both branches.
These unrelated failures are not addressed by this PR.
Reproduction
Enable D3D12 debug validation with:
Limitations
These measurements are not gameplay FPS measurements. No commercial game files were used.
AI-assisted implementation using OpenAI Codex and ChatGPT. All hardware measurements were performed locally.