Improve shader mask handling and GPU diagnostics #1227

Open
chiragmadhuprasad wants to merge 24 commits from upstream-pr/1227 into main
chiragmadhuprasad commented 2026-11-24 16:35:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by chiragmadhuprasad on 2026-11-24T16:35:11Z.


Summary

This contribution contains three improvements:

Shader handling: Improve mask handling at data joins and support s_bcnt1 SCC mask behaviour.

GPU diagnostics: Improve shadow-buffer allocation diagnostic messages.

Documentation: Add experimental compatibility investigation results and D3D12 debugging notes.

Testing

The following checks completed successfully:

cargo test -p victory-shader

cargo test --workspace

cargo build --release --workspace --features victory-gpu/diagnostics,victory-core/diagnostics

Compatibility investigation

The documentation records experimental GTA VI compatibility research, including shader translation results and D3D12 runtime observations.

These findings do not establish that the game is playable.

Notes

The shader changes include a cherry-picked contribution. Original authorship is preserved in the commit history.

Further review and testing by VIctory maintainers would be appreciated.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6586641641 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1227). Originally posted by [chiragmadhuprasad](https://github.com/chiragmadhuprasad) on 2026-11-24T16:35:11Z. --- Summary This contribution contains three improvements: Shader handling: Improve mask handling at data joins and support s_bcnt1 SCC mask behaviour. GPU diagnostics: Improve shadow-buffer allocation diagnostic messages. Documentation: Add experimental compatibility investigation results and D3D12 debugging notes. Testing The following checks completed successfully: cargo test -p victory-shader cargo test --workspace cargo build --release --workspace --features victory-gpu/diagnostics,victory-core/diagnostics Compatibility investigation The documentation records experimental GTA VI compatibility research, including shader translation results and D3D12 runtime observations. These findings do not establish that the game is playable. Notes The shader changes include a cherry-picked contribution. Original authorship is preserved in the commit history. Further review and testing by VIctory maintainers would be appreciated.
Zipettte commented 2026-11-24 18:06:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T17:59:45Z.


Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 13b1beb: cargo test -p victory-gpu -p victory-shader passes, 170 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140004606 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1227#issuecomment-7140004606). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T17:59:45Z. --- Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 13b1beb: `cargo test -p victory-gpu -p victory-shader` passes, 170 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Marvisak commented 2026-11-25 02:05:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:19:27Z.


Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: crates/victory-gpu/src/copystat.rs, crates/victory-gpu/src/descriptor/host.rs, crates/victory-gpu/src/draw.rs, crates/victory-gpu/src/host.rs, crates/victory-gpu/src/shadow.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149430313 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1227#issuecomment-7149430313). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:19:27Z. --- <!-- victory-triage v1 head=c3beb4a2628b4f50bc8a02de9616e7f027ef9185 verdict=needs-rebase at=2026-11-25T01:19:25Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `crates/victory-gpu/src/copystat.rs`, `crates/victory-gpu/src/descriptor/host.rs`, `crates/victory-gpu/src/draw.rs`, `crates/victory-gpu/src/host.rs`, `crates/victory-gpu/src/shadow.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1227:upstream-pr/1227'
git switch 'upstream-pr/1227'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1227'
git switch 'upstream-pr/1227'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1227'
git switch 'upstream-pr/1227'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1227'
git switch 'main'
git merge --squash 'upstream-pr/1227'
git switch 'main'
git merge --ff-only 'upstream-pr/1227'
git switch 'main'
git merge 'upstream-pr/1227'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1227
No description provided.