[pr-fix][rendering][shaders] Preserve packed lighting history at shared texture stores #589

Closed
paales wants to merge 2 commits from paales/preserve-packed-texel-history into Main AGit
First-time contributor

Written by 🤖:

What it changes

A shader can select a packed R32_UINT view or a float UAV before a shared texture store. The translator uses the incoming control-flow edge to select the store type and preserves the execution mask. A valid packed word can have a float NaN bit pattern. Writing that word as a float can zero the lighting history.

How it was tested

  • Base c8258f955. Regression test 9b300173d reads zero on hardware where the packed view requires 0x7F800001.
  • Fix c76ff017e. With DARNER_NAN_SCRUB=1, cargo test --profile fast --locked -p darner-shader --lib a_view_join_preserves_packed_and_float_texels passes on the RTX 5070 Ti and WARP. The test also checks the float output.
  • The integration build passes 569 shader tests, with 16 ignored. Both standalone commits pass cargo xtask policy --staged. Workspace gates on the standalone branch are untested.
  • One run per variant on an RTX 5070 Ti, Series X profile, 4K SDR, DLSS Quality, Ray Reconstruction, hardware RT, frame generation off. Across six matched frames, mean planter outline contrast falls from 9.64 to 0.13 on a 0–255 luma scale. Both runs use the stock GI history length. Visual coverage is limited to this scene and GPU.

Checklist

  • Tested in game.
  • One change based on main.
  • The diff follows the asset policy.
  • Dependencies: none.

Checked for overlap

  • Searched issues and open PRs for the symptom and affected files.
  • Related PRs: #439 changes float NaN checks. #443 changes render-target storage. #535 handles scalar lane masks. Each uses a different code path.
_Written by 🤖:_ ## What it changes A shader can select a packed R32_UINT view or a float UAV before a shared texture store. The translator uses the incoming control-flow edge to select the store type and preserves the execution mask. A valid packed word can have a float NaN bit pattern. Writing that word as a float can zero the lighting history. ## How it was tested - Base `c8258f955`. Regression test `9b300173d` reads zero on hardware where the packed view requires `0x7F800001`. - Fix `c76ff017e`. With `DARNER_NAN_SCRUB=1`, `cargo test --profile fast --locked -p darner-shader --lib a_view_join_preserves_packed_and_float_texels` passes on the RTX 5070 Ti and WARP. The test also checks the float output. - The integration build passes 569 shader tests, with 16 ignored. Both standalone commits pass `cargo xtask policy --staged`. Workspace gates on the standalone branch are untested. - One run per variant on an RTX 5070 Ti, Series X profile, 4K SDR, DLSS Quality, Ray Reconstruction, hardware RT, frame generation off. Across six matched frames, mean planter outline contrast falls from 9.64 to 0.13 on a 0–255 luma scale. Both runs use the stock GI history length. Visual coverage is limited to this scene and GPU. ## Checklist - [x] Tested in game. - [x] One change based on main. - [x] The diff follows the asset policy. - [x] Dependencies: none. ## Checked for overlap - [x] Searched issues and open PRs for the symptom and affected files. - Related PRs: #439 changes float NaN checks. #443 changes render-target storage. #535 handles scalar lane masks. Each uses a different code path.
Author
First-time contributor

ChatGPT-afbeelding 5 dec 2026, 18_53_32
download
download

Also see his skin and shirt in the two examples.

![ChatGPT-afbeelding 5 dec 2026, 18_53_32](/attachments/b48b0e37-7c67-4eda-b2f4-331a4d3ce561) ![download](/attachments/8fe937b2-f07f-4bda-8690-c66cdbca111a) ![download](/attachments/44473238-651e-43d9-9b8b-c3c8ed925cdb) Also see his skin and shirt in the two examples.
paales closed this pull request 2026-12-06 00:45:42 +00:00

Pull request closed

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