Disable blending only on writable integer render targets #61

Merged
HandshakeHackin merged 2 commits from upstream-pr/61 into beta 2026-11-26 09:57:42 +00:00
HandshakeHackin commented 2026-11-26 04:50:23 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-26T04:50:23Z.


In #55, both shaders translate, then vkd3d-proton refuses blending on the writable R8_UINT target at RT2. The maintainer saw the same mesh pipeline return 0x80070057 on a Windows RX 9070 XT in #31.

This change disables blending on writable UINT/SINT targets in mesh and graphics pipelines. If a mixed set inherits RT0’s settings, it first copies the effective state to the other targets so they keep their blend factors and write masks. The host pipeline library keys the corrected descriptor. Title pipeline IDs and existing skip lists keep their captured-state keys.

Four Windows tests passed, including a WARP reproduction that rejects the original descriptor and creates the corrected pipeline. A separate draw/readback checked all 16 pixels in each of three targets with both shared and independent settings. The normalized targets retained alpha blending and the independent channel mask. RT2 contained the shader’s integer value, 7, in both runs. WARP also created the mixed-target mesh PSO in both modes. Four regression tests · Draw and readback log

For the Radeon comparison, keep the scene and settings the same and check whether the log now says host mesh pipeline for mesh f5e50eb2108c425b and pixel ce3f0432a08f1d35. The original Proton run first bound this pair at frame 970. Any visible change in the same scene is a separate observation. Windows x64 beta test build with SHA-256

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:6619753564 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/61). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-26T04:50:23Z. --- In #55, both shaders translate, then vkd3d-proton refuses blending on the writable `R8_UINT` target at RT2. The maintainer saw the same mesh pipeline return `0x80070057` on a Windows RX 9070 XT in #31. This change disables blending on writable UINT/SINT targets in mesh and graphics pipelines. If a mixed set inherits RT0’s settings, it first copies the effective state to the other targets so they keep their blend factors and write masks. The host pipeline library keys the corrected descriptor. Title pipeline IDs and existing skip lists keep their captured-state keys. Four Windows tests passed, including a WARP reproduction that rejects the original descriptor and creates the corrected pipeline. A separate draw/readback checked all 16 pixels in each of three targets with both shared and independent settings. The normalized targets retained alpha blending and the independent channel mask. RT2 contained the shader’s integer value, 7, in both runs. WARP also created the mixed-target mesh PSO in both modes. [Four regression tests](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45757174844/job/139698424027) · [Draw and readback log](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45757355103/job/139698997201) For the Radeon comparison, keep the scene and settings the same and check whether the log now says `host mesh pipeline` for mesh `f5e50eb2108c425b` and pixel `ce3f0432a08f1d35`. The original Proton run first bound this pair at frame 970. Any visible change in the same scene is a separate observation. [Windows x64 beta test build with SHA-256](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45757174844/artifacts/15088406562)
PastiiJay commented 2026-11-26 04:51:04 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T04:51:04Z.


Nice, this matches what we saw on #55 and #31. It goes on the Radeon run next, same scene and settings, and we will report whether f5e50eb2108c425b / ce3f0432a08f1d35 reach host mesh pipeline.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7182958229 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/61#issuecomment-7182958229). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-26T04:51:04Z. --- Nice, this matches what we saw on #55 and #31. It goes on the Radeon run next, same scene and settings, and we will report whether `f5e50eb2108c425b` / `ce3f0432a08f1d35` reach `host mesh pipeline`.
HandshakeHackin commented 2026-11-26 05:01:01 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-26T05:01:01Z.


At head 5f2ed97, the four focused tests passed on Windows WARP and the release executable passed its startup check. Moving the helper also lets #27 and this PR merge cleanly. Current beta test build with checksum

I extended the pixel check to call DispatchMesh as well as DrawInstanced. All three targets matched between the two paths in both blend modes, including the independent channel mask and the integer value 7. Mesh and vertex draw readbacks

The upstream check stops at the existing sgd5.rs:557 Clippy error covered by #25. With #18, #25, #27 and the maintainer’s WARP-only test condition from 448b737 applied in a separate integration build, both strict Clippy passes and the asset check passed. The workspace ran 588 tests successfully with 13 ignored, then all four focused blend tests passed including the opt-in native WARP case. Upstream check · Full Windows integration log

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7183103637 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/61#issuecomment-7183103637). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-26T05:01:01Z. --- At head `5f2ed97`, the four focused tests passed on Windows WARP and the release executable passed its startup check. Moving the helper also lets #27 and this PR merge cleanly. [Current beta test build with checksum](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45758206959/artifacts/15089020396) I extended the pixel check to call `DispatchMesh` as well as `DrawInstanced`. All three targets matched between the two paths in both blend modes, including the independent channel mask and the integer value 7. [Mesh and vertex draw readbacks](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45757838201/job/139700559180) The upstream check stops at the existing `sgd5.rs:557` Clippy error covered by #25. With #18, #25, #27 and the maintainer’s WARP-only test condition from `448b737` applied in a separate integration build, both strict Clippy passes and the asset check passed. The workspace ran 588 tests successfully with 13 ignored, then all four focused blend tests passed including the opt-in native WARP case. [Upstream check](https://github.com/PastiiJay/klbf-lab/actions/runs/45758149419/job/139701561129) · [Full Windows integration log](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45758206959/job/139701745652)
PastiiJay commented 2026-11-26 05:11:06 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T05:11:06Z.


Radeon result: RX 9070 XT, Windows 11, Series S mode, same scene, 5 min per run, current beta with and without this PR as the only difference.

  • Without it: host mesh pipeline refused ... (0x80070057) for mesh f5e50eb2108c425b / pixel ce3f0432a08f1d35.
  • With it: host mesh pipeline for that same pair, no refusal.

No crash in either run, and room fps stayed comparable (medians 7.8 and 6.9, within our normal run-to-run variation).

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7183255955 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/61#issuecomment-7183255955). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-26T05:11:06Z. --- Radeon result: RX 9070 XT, Windows 11, Series S mode, same scene, 5 min per run, current beta with and without this PR as the only difference. - Without it: `host mesh pipeline refused ... (0x80070057)` for mesh `f5e50eb2108c425b` / pixel `ce3f0432a08f1d35`. - With it: `host mesh pipeline` for that same pair, no refusal. No crash in either run, and room fps stayed comparable (medians 7.8 and 6.9, within our normal run-to-run variation).
PastiiJay commented 2026-11-26 09:58:31 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T09:58:31Z.


In now. Same result as our run on the RX 9070 XT: that mesh pipeline builds instead of being refused.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7188734242 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/61#issuecomment-7188734242). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-26T09:58:31Z. --- In now. Same result as our run on the RX 9070 XT: that mesh pipeline builds instead of being refused.
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
PastiiJay/klbf-lab!61
No description provided.