Disable blending only on writable integer render targets #61

Open
github-bot wants to merge 2 commits from github-bot/gh-61 into beta AGit
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 04:50 UTC · original
HandshakeHackin:fix/writable-integer-target-blend → beta · +168 −12 · 1 files · 2 commits · open

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

**@⁠HandshakeHackin** on GitHub · 2026-11-26 04:50 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/61) `HandshakeHackin:fix/writable-integer-target-blend` → `beta` · +168 −12 · 1 files · 2 commits · open 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:54:12 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 04:51 UTC · original

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.

**@⁠PastiiJay** on GitHub · 2026-11-26 04:51 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/61#issuecomment-7182958229) 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`.
Author
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 05:01 UTC · original

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

**@⁠HandshakeHackin** on GitHub · 2026-11-26 05:01 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/61#issuecomment-7183103637) 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)
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 05:11 UTC · original

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** on GitHub · 2026-11-26 05:11 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/61#issuecomment-7183255955) 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).
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/61/head:github-bot/gh-61'
git switch 'github-bot/gh-61'

Merge

Merge the changes and update on Forgejo.
git switch 'beta'
git merge --no-ff 'github-bot/gh-61'
git switch 'github-bot/gh-61'
git rebase 'beta'
git switch 'beta'
git merge --ff-only 'github-bot/gh-61'
git switch 'github-bot/gh-61'
git rebase 'beta'
git switch 'beta'
git merge --no-ff 'github-bot/gh-61'
git switch 'beta'
git merge --squash 'github-bot/gh-61'
git switch 'beta'
git merge --ff-only 'github-bot/gh-61'
git switch 'beta'
git merge 'github-bot/gh-61'
git push origin 'beta'
This discussion has been locked. Commenting is limited to contributors.
No description provided.