gpu: honor console sample masks with guarded pipeline twins #31
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ReTerryDavis--ReVIctory!31
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-31"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@oscarrc91 on GitHub · 2026-12-03 17:00 UTC · original
oscarrc91:fix/console-sample-mask→main· +881 −14 · 10 files · 2 commits · merged 2026-12-04 01:57 UTCThe newer command-list
OMSetSampleMaskXslot (142 /0x470) is currently ignored. The title uses complementary masks to fade between object LODs, so ignoring the slot lets both draws cover every pixel. This ports the per-quad coverage implementation from Mandy, including its vertex/mesh position-linkage fixes and synthetic draw tests.VICTORY_SAMPLE_MASK=0restores the previous behavior.SV_Position, read it from the row actually written by the preceding vertex/mesh shader.Validation and visual scope
631b2ed4f2c3e41b7115198913c857a9310389c7.cargo test --offline --locked --release -p victory-shader --lib mask -- --test-threads=1 --nocapturecargo test --offline --locked --release -p victory-gpu --lib mask -- --test-threads=1 --nocaptureVICTORY_REQUIRE_GPU_TEST=1makes missing hardware a failure during local validation; it is not required on normal CI.warm --usedcatalog does not enumerate them. Temporary baseline coverage while a twin is pending is a known limitation. No FPS improvement is claimed.Attribution and existing work
Adapted from NotRexed's ProjectLeonida/mandy commit 0807f9c, itself crediting
trustno1-coder/VIctory-NVIDIAcommit0938dd9. The later Mandy synchronous first-use variant is not included: this port retains ReVIctory's guarded compilation path.Reviewed the existing open and closed ReVIctory PRs. #14 already contains the separate helper-lane correction, and #29 changes placed views, far occlusion and UAV table copies. This PR implements the missing console sample-mask operation; it does not duplicate those changes or claim their visual results.
@staticman256 on GitHub · 2026-12-03 17:36 UTC · original
If this was intended to fix the LOD pop in issue, it doesn't do it.
@oscarrc91 on GitHub · 2026-12-03 19:13 UTC · original
Thanks for testing, @staticman256. To clarify the scope: this PR implements the missing
OMSetSampleMaskXoperation (slot 142 /0x470). It applies the title's per-quad coverage masks during LOD crossfades. Ignoring those masks lets both LOD draws cover every pixel instead of respecting their complementary coverage.The intended correction is that missing coverage behavior. It does not change when the game selects an LOD or finishes streaming an object, so it is not a general fix for LOD pop-in.
Our local RX 9070 XT results also have an important limitation: this patch alone did not remove the static geometric outlines around distant mangroves. Those disappeared after adding the separate helper-lane correction already included in #14, while keeping this patch installed. We have not isolated whether both changes were necessary. The synthetic tests validate mask coverage and vertex/mesh-to-pixel position linkage; they do not establish that general gameplay pop-in is fixed.
There is also a first-use limitation: masked pipeline variants compile asynchronously, and the original pipeline is used while a variant is pending, so coverage can temporarily remain unmasked.
Could you share a short clip or the location and build/settings for the pop-in you are seeing? That would help distinguish a coverage problem this implementation still misses from a separate LOD or streaming issue.