Fix outdoor shadows at 5120x1440 DLAA #3308

Open
invismann wants to merge 3 commits from upstream-pr/3308 into main
invismann commented 2026-11-29 21:35:52 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by invismann on 2026-11-29T21:35:52Z.


What it changes

At 5120x1440 DLAA the retail Series X directional-shadow tile list can exceed 256 columns. An 8-bit X coordinate wraps at pixel 4096, leaving a dark rectangle on the right outdoors.

Use 9 bits for X and 7 for Y in the paired tile-list writers and readers for the supported wide render sizes. Select the shader variants by container fingerprint and check the expected operands before rewriting. Include this switch in the translated shader cache key.

This branch is based on current main. Reproducing the 5120x1440 gameplay check requires the display and budget changes in #2400, which builds on #2210.

How it was tested

  • RTX 4090, Xbox Series X retail profile, 5120x1440, DLAA, frame generation and title ray tracing off. Tested on the integration branch with the display changes present.
  • Before: a dark rectangle appeared on the right outdoors. After: directional shadows covered the right side of the same scene.
  • On this PR branch, the release build and both focused shadow tests passed. The runtime shader translation path produced different DXIL for all 34 tile-list shaders with the switch on, and all 34 validated in both modes with the wave32 target.
  • The shader-cache switch coverage test stops on the existing stale VICTORY_SCALAR_SPLITS entry on main. The same test passes on the integration branch.

Checked for overlap

  • Searched open, merged, and closed PRs for this artifact and the affected shader path. #1273 addresses indirect group counts and #2220 addresses an adaptive-shadow compiler issue. #2210 and #2400 are related to running the reproduction at 5120x1440.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5555370595 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3308). Originally posted by [invismann](https://github.com/invismann) on 2026-11-29T21:35:52Z. --- ## What it changes At 5120x1440 DLAA the retail Series X directional-shadow tile list can exceed 256 columns. An 8-bit X coordinate wraps at pixel 4096, leaving a dark rectangle on the right outdoors. Use 9 bits for X and 7 for Y in the paired tile-list writers and readers for the supported wide render sizes. Select the shader variants by container fingerprint and check the expected operands before rewriting. Include this switch in the translated shader cache key. This branch is based on current main. Reproducing the 5120x1440 gameplay check requires the display and budget changes in #2400, which builds on #2210. ## How it was tested - RTX 4090, Xbox Series X retail profile, 5120x1440, DLAA, frame generation and title ray tracing off. Tested on the integration branch with the display changes present. - Before: a dark rectangle appeared on the right outdoors. After: directional shadows covered the right side of the same scene. - On this PR branch, the release build and both focused shadow tests passed. The runtime shader translation path produced different DXIL for all 34 tile-list shaders with the switch on, and all 34 validated in both modes with the wave32 target. - The shader-cache switch coverage test stops on the existing stale VICTORY_SCALAR_SPLITS entry on main. The same test passes on the integration branch. ## Checked for overlap - [x] Searched open, merged, and closed PRs for this artifact and the affected shader path. #1273 addresses indirect group counts and #2220 addresses an adaptive-shadow compiler issue. #2210 and #2400 are related to running the reproduction at 5120x1440.
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/3308:upstream-pr/3308'
git switch 'upstream-pr/3308'

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/3308'
git switch 'upstream-pr/3308'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3308'
git switch 'upstream-pr/3308'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3308'
git switch 'main'
git merge --squash 'upstream-pr/3308'
git switch 'main'
git merge --ff-only 'upstream-pr/3308'
git switch 'main'
git merge 'upstream-pr/3308'
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
trustno1-coder/VIctory-NVIDIA!3308
No description provided.