GTA VI: first approach with the title memory mirror (draft, for reference) #1968

Closed
antocorvo3000 wants to merge 89 commits from upstream-pr/1970 into main
antocorvo3000 commented 2026-11-25 01:56:19 +00:00 (Migrated from github.com)

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


Our first approach to Grand Theft Auto VI 1.0.2.1 (based on main of 24/11 morning, before many of your recent changes), published for reference: 87 commits of ours. Several of its fixes are now covered differently on main, but some are not, for example:

  • Title memory mirror: one reserved 128 GiB GPU buffer with title pages mapped at their own addresses; one reserved buffer per title memory view (raw views must end below 4 GiB of their resource).
  • Copy-back of only the dwords the GPU changed, and plain stores into read-write title memory.
  • Root UAVs declare only the bytes the shader can reach (range analysis of the translated DXIL).
  • Translator: image_sample_d_cl and cube gradients from face space, 64-bit image atomics (R32G32 views, SM 6.6), spilled compute roots, computed title reads and indexed root buffers, structured buffers of unknown stride, gather4 at an explicit level, s_getpc_b64, masked static buffer addresses in mesh shaders, backward lane permutes.
  • Compute dispatches past 65535 groups per dimension are split.
  • Texture to buffer copies (an earlier version of the one in #1965).
  • Diagnostics: device-removed reports naming mirror aliases, why a draw cannot bind, Agility SDK device factory (VICTORY_D3D12_AGILITY).
  • Local conveniences: two-plane compositor for Series S menus, VICTORY_AUTO_A, in-memory title patches.

The work that reaches the lit world on current main is #1965 (and #1962 for the black albedo). A budget-based alternative for placed-texture heap slots, superseded by #1962, is on branch gta6-placed-texture-budget of the fork.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5483629306 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1970). Originally posted by [antocorvo3000](https://github.com/antocorvo3000) on 2026-11-25T01:56:19Z. --- Our first approach to Grand Theft Auto VI 1.0.2.1 (based on main of 24/11 morning, before many of your recent changes), published for reference: 87 commits of ours. Several of its fixes are now covered differently on main, but some are not, for example: - Title memory mirror: one reserved 128 GiB GPU buffer with title pages mapped at their own addresses; one reserved buffer per title memory view (raw views must end below 4 GiB of their resource). - Copy-back of only the dwords the GPU changed, and plain stores into read-write title memory. - Root UAVs declare only the bytes the shader can reach (range analysis of the translated DXIL). - Translator: `image_sample_d_cl` and cube gradients from face space, 64-bit image atomics (R32G32 views, SM 6.6), spilled compute roots, computed title reads and indexed root buffers, structured buffers of unknown stride, gather4 at an explicit level, `s_getpc_b64`, masked static buffer addresses in mesh shaders, backward lane permutes. - Compute dispatches past 65535 groups per dimension are split. - Texture to buffer copies (an earlier version of the one in #1965). - Diagnostics: device-removed reports naming mirror aliases, why a draw cannot bind, Agility SDK device factory (`VICTORY_D3D12_AGILITY`). - Local conveniences: two-plane compositor for Series S menus, `VICTORY_AUTO_A`, in-memory title patches. The work that reaches the lit world on current main is #1965 (and #1962 for the black albedo). A budget-based alternative for placed-texture heap slots, superseded by #1962, is on branch `gta6-placed-texture-budget` of the fork.
Marvisak commented 2026-11-25 04:06:46 +00:00 (Migrated from github.com)

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


Automated triage for the maintainers.

This pull request conflicts with main in 26 files, among them crates/victory-gpu/src/descriptor/host.rs, crates/victory-gpu/src/shadow.rs, crates/victory-shader/src/emit/lower.rs and apps/victory/src/run.rs. It will be reviewed once it is rebased onto current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7151739966 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1970#issuecomment-7151739966). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:15:19Z. --- <!-- victory-triage v1 head=ed73944bee83b0e23f3a56a9c1f36d60236ec53f verdict=needs-rebase at=2026-11-25T03:17:00Z --> Automated triage for the maintainers. This pull request conflicts with `main` in 26 files, among them `crates/victory-gpu/src/descriptor/host.rs`, `crates/victory-gpu/src/shadow.rs`, `crates/victory-shader/src/emit/lower.rs` and `apps/victory/src/run.rs`. It will be reviewed once it is rebased onto current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_

Pull request closed

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!1968
No description provided.