Preserve packed lighting history at shared texture stores #674

Open
paales wants to merge 1 commit from paales/packed-lighting-history into post-merge AGit
First-time contributor

Written by 🤖:

What it changes

When a shader shares a texture store between a packed integer view and a float view, the translator selects the store type from the incoming control-flow edge. It preserves the execution mask and the bits of the packed lighting history.

How it was tested

  • Base 28a9b4259 fails the shared-store regression test. Fix 119327be8 passes the test and the Windows DXIL validator.
  • cargo build --locked --offline --jobs 1 -p darner passes on both revisions. cargo test --locked --offline --jobs 1 -p darner-shader --lib passes with the fix. Strict Clippy reports the same six lints on both revisions.
  • One run per revision at the Key Lento Marina Club on an RTX 5070 Ti with driver 621.24, Series X profile, 1440p SDR, DLSS Quality, hardware RT, and frame generation off. Both runs use the same save and replacement shaders.
  • In three frames per run, the same pavement area averages 2,331 pixels with luma below 8 on the base and 49 with the fix. The dark stair edge also fades. Gameplay coverage consists of this scene and GPU.

Checklist

  • Tested in game.
  • One change based on post-merge.
  • The diff passes the asset policy.
  • Dependencies recorded. None required.

Checked for overlap

  • Searched open pull requests for the symptom and affected code.
  • Replaces #589 on the post-merge branch.
_Written by 🤖:_ ## What it changes When a shader shares a texture store between a packed integer view and a float view, the translator selects the store type from the incoming control-flow edge. It preserves the execution mask and the bits of the packed lighting history. ## How it was tested - Base `28a9b4259` fails the shared-store regression test. Fix `119327be8` passes the test and the Windows DXIL validator. - `cargo build --locked --offline --jobs 1 -p darner` passes on both revisions. `cargo test --locked --offline --jobs 1 -p darner-shader --lib` passes with the fix. Strict Clippy reports the same six lints on both revisions. - One run per revision at the Key Lento Marina Club on an RTX 5070 Ti with driver 621.24, Series X profile, 1440p SDR, DLSS Quality, hardware RT, and frame generation off. Both runs use the same save and replacement shaders. - In three frames per run, the same pavement area averages 2,331 pixels with luma below 8 on the base and 49 with the fix. The dark stair edge also fades. Gameplay coverage consists of this scene and GPU. ## Checklist - [x] Tested in game. - [x] One change based on `post-merge`. - [x] The diff passes the asset policy. - [x] Dependencies recorded. None required. ## Checked for overlap - [x] Searched open pull requests for the symptom and affected code. - Replaces #589 on the `post-merge` branch.
TrustNo1 changed title from [pr-fix][rendering][shaders] Preserve packed lighting history at shared texture stores to Preserve packed lighting history at shared texture stores 2026-12-06 03:25:18 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/674/head:paales/packed-lighting-history'
git switch 'paales/packed-lighting-history'

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 'post-merge'
git merge --no-ff 'paales/packed-lighting-history'
git switch 'paales/packed-lighting-history'
git rebase 'post-merge'
git switch 'post-merge'
git merge --ff-only 'paales/packed-lighting-history'
git switch 'paales/packed-lighting-history'
git rebase 'post-merge'
git switch 'post-merge'
git merge --no-ff 'paales/packed-lighting-history'
git switch 'post-merge'
git merge --squash 'paales/packed-lighting-history'
git switch 'post-merge'
git merge --ff-only 'paales/packed-lighting-history'
git switch 'post-merge'
git merge 'paales/packed-lighting-history'
git push origin 'post-merge'
Sign in to join this conversation.
No reviewers
No milestone
No project
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.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!674
No description provided.