[enhancement][shaders] Support lane masks read as data in CS_TraceShadowRays_FullAdaptive #67

Open
opened 2026-12-03 18:44:14 +00:00 by umcakatabla · 1 comment
Contributor

What you would like

Extend the shader translator to emit DXIL for CS_TraceShadowRays_FullAdaptive_ae7b9cf0_Wrapped (compute, dbdbf36298727135). The preload and a targeted offline translator check both refuse it at 0xae80 with a lane mask holding lanes elsewhere read as data.

The targeted check used a local diagnostic release based on 4a92569. The shader translator sources are identical on the checked main revision b3a615f. I ran darner translate --list --jobs 1 <shader archive> with DARNER_HOST_MAX_WAVE=32, DARNER_HW_RT=1, and DARNER_TRANSLATE_ONLY=d82a0a5a22471c77,3c9d23fa83d63d43,dbdbf36298727135,34992f2b65a789a5. This was an offline check. Gameplay impact is untested.

The preload summary counted 195 containers without a supported vertex, pixel, compute, or mesh program, 11 wave64-to-wave32 lowering refusals, and one lane-mask-as-data refusal. The preload records one example hash per diagnostic, so the complete set of 207 hashes is unavailable from that log.

Related work includes #66 for the separate temporal resolve shader and #43 for the opt-in paired-lanes lowering.

Are you working on a fix?

No.

## What you would like Extend the shader translator to emit DXIL for `CS_TraceShadowRays_FullAdaptive_ae7b9cf0_Wrapped` (compute, `dbdbf36298727135`). The preload and a targeted offline translator check both refuse it at `0xae80` with `a lane mask holding lanes elsewhere read as data`. The targeted check used a local diagnostic release based on `4a92569`. The shader translator sources are identical on the checked `main` revision `b3a615f`. I ran `darner translate --list --jobs 1 <shader archive>` with `DARNER_HOST_MAX_WAVE=32`, `DARNER_HW_RT=1`, and `DARNER_TRANSLATE_ONLY=d82a0a5a22471c77,3c9d23fa83d63d43,dbdbf36298727135,34992f2b65a789a5`. This was an offline check. Gameplay impact is untested. The preload summary counted 195 containers without a supported vertex, pixel, compute, or mesh program, 11 wave64-to-wave32 lowering refusals, and one lane-mask-as-data refusal. The preload records one example hash per diagnostic, so the complete set of 207 hashes is unavailable from that log. Related work includes #66 for the separate temporal resolve shader and #43 for the opt-in paired-lanes lowering. ## Are you working on a fix? No.
Author
Contributor

I captured the complete failure inventory from the same preload --used path a game start uses, with the RTX 4070 Ti SUPER and the Agility 1.620.2 diagnostic runtime.

  • 25,778 unique shader containers precompiled successfully.
  • 207 unique containers failed, split exactly into the existing summary groups: 195 containers without a supported vertex/pixel/compute/mesh program, 11 wave64 programs without wave32 lowering, and one lane mask read as data.
  • The sole member of the lane-mask group has full BLAKE3 dbdbf3629872713527d4c2cd8c587515dde51e10387cdbcfce60e7524ffb80be.

The local inventory contains one full container hash, source label and exact error per failed container. It has 207 unique hashes and no shader bytes. I kept it outside the repository and did not attach it because source labels come from title data.

I captured the complete failure inventory from the same `preload --used` path a game start uses, with the RTX 4070 Ti SUPER and the Agility 1.620.2 diagnostic runtime. - 25,778 unique shader containers precompiled successfully. - 207 unique containers failed, split exactly into the existing summary groups: 195 containers without a supported vertex/pixel/compute/mesh program, 11 wave64 programs without wave32 lowering, and one lane mask read as data. - The sole member of the lane-mask group has full BLAKE3 `dbdbf3629872713527d4c2cd8c587515dde51e10387cdbcfce60e7524ffb80be`. The local inventory contains one full container hash, source label and exact error per failed container. It has 207 unique hashes and no shader bytes. I kept it outside the repository and did not attach it because source labels come from title data.
Sign in to join this conversation.
No labels
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#67
No description provided.