Repository navigation
fix(shader): lower direct pixel barycentrics - #164
Merged
pragyaangaur merged 5 commits intoNov 26, 2026
Merged
Conversation
Owner
|
Thanks, the lowering looks right. Please restore the negative coverage in the movreld loop test. The cases that must not be recognised should assert something that fails if the loop were wrongly accepted, for example that the output still reads the barycentric input. Please also rebase over #161 if that merges first. |
Owner
|
I merged main into this branch and restored the negative coverage in the movreld loop test. The test now feeds the loop raw perspective pull-model values, which still have no direct translation, so the complete loops must lower and every bad-loop case must still fail with the barycentrics-read-directly error if the output reads the input. CI is green and this is merged. Thank you for the work. |
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
D3D_NAME_BARYCENTRICSas a pixel-shader input with the default perspective/center mode.SV_Barycentrics, including their component and interpolation modes.This came from an unsupported direct-barycentrics translation observed in a local title log. I have no evidence that this shader caused the title corruption or null-write discussed in issue #50, and this change has not established world entry or gameplay.
Verification
cargo test --workspace --no-fail-fast(native): passed.cargo test -p victory-shader(native): 169 passed, 2 ignored.tools/macos/test-wine.sh -p victory-shader --no-fail-fast: 281 passed, 3 ignored.cargo clippy --workspace --all-targetsandcargo xtask policy: passed.victory-gpu::shadow::tests::marks_of_shaders_using_title_memory_are_held_back(expected page marks(170, 0), observed(0, 0)); the isolated test passed on rerun and the shader package Wine-target suite passed.cargo fmt --all -- --checkreports existing workspace formatting drift, including untouched legacy lines in changed files. The added lines were checked against rustfmt output; the global formatter was not run in write mode.dxil.dllis not installed.AI disclosure
Developed with AI assistance; the patch and local verification results were reviewed before submission.
Latest follow-up
0x20000); bit 22 is typed 64-bit atomics and remains clear. The native and Wine-target shader suites above include this final correction.682cd00passed, including Clippy, the diagnostics build, and tests: https://github.com/pragyaangaur/VIctory-macOS/actions/runs/45708254636.