Repository navigation
Shaders: walk predecessor live-outs once during IR renaming - #71
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
| ]); | ||
| } | ||
| for i in 0..regs { | ||
| words.push(0x4A00_0000 | (i << 9) | (i << 17)); // v_add_nc_u32 v[i], v[i], v[i] |
Contributor
Author
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.
Ports upstream Marvisak/VIctory#2520.
Summary
ir_buildbenchmark; no title files or GPU needed.Measurement
Upstream median results: 128 registers / 500 divergent ifs 10.5 ms -> 7.6 ms; 128 registers / 2000 divergent ifs 47.2 ms -> 36.0 ms. Local benchmark after the port: 7.66 ms and 30.09 ms respectively.
Validation
cargo test -p victory-shader --lib --locked: 172 passed, 2 ignoredcargo bench -p victory-shader --bench ir_build --locked: passcargo fmt --all -- --check: passCARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo clippy -p victory-shader --all-targets --locked --target x86_64-pc-windows-msvc: passcargo run --locked --quiet --package xtask -- policy: passNo real game/GPU/Proton validation is available on this VM.