D3D12.X: disable blending on typed integer color targets #2271

Open
github-bot wants to merge 1 commit from github-bot/gh-2271 into main AGit
Owner

@⁠Swagi-REDACTED on GitHub · 2026-11-25 11:55 UTC · original
Swagi-REDACTED:d3d12x/integer-target-blend → main · +195 −0 · 2 files · 1 commits · open

PC D3D12 rejected an R8_UINT attachment with blending enabled during an integration run of A newer retail game (debug error 676, E_INVALIDARG). Disable blending on active typed integer color targets, expanding shared state so float/normalized attachments keep their effective blending. This addresses pipeline creation; the separate world-loading failure remains unresolved.

What is in it

  • real.rs: normalize translated graphics descriptions before their driver-cache key and two-pass MS/GS streams before native creation; CPU and synthetic GPU regressions.
  • README.md: document the supported mixed-target behavior and its validation limits.

Tested

  • RTX 3060 12 GB, driver 621.14 (32.0.16.2114); Ryzen 7 9800X3D, 16 GB RAM; Windows 11 build 26200; Rust stable MSVC 1.95.0; SDK DXC 1.9.2602.17.
  • Debug cargo test --locked -p xcl --lib integer_blend -- --test-threads=4: 5 passed, 0 failed, 0 ignored. Before the conversion, 4 failed and 1 passed; the native mixed-MRT descriptor returned 0x80070057. Afterward both native descriptor and stream APIs create the pipeline.
  • Debug cargo test --locked --workspace -- --test-threads=4: 1159 passed, 0 failed, 46 ignored; 25 explicit SKIPPED events (20 wave64, three unsupported per-lane f16 forms, one heap-windows-disabled fixture, one driver-cache measurement requiring Windows Developer Mode). Default runtime flags, NVIDIA selected.
  • An earlier overlapping suite attempt stopped at two end-to-end out-of-memory failures while a separate title run was active; the full successful rerun above had that title stopped.
  • cargo build --locked --release --workspace: passed on the clean committed head. Sixty-second title smokes below retain profile/menu rendering, without advancing into world loading.

Regression run
Main:

xcl-smoke v1
commit: cbc296ab65a2661a61e3e2da109134bcd5319f60
gpu: NVIDIA GeForce RTX 3060
title: A newer retail game
seconds: 60
exit: 0x0
frames shown: 1249 (PresentX 1250)
presents per 2 s (last 3): 14 59 44
device removals: 0
crashes: 0
peak commit: 14346 MB

This PR's head:

xcl-smoke v1
commit: f73d97dbc3abbb708229abec4a7e56d2e5dc051a
gpu: NVIDIA GeForce RTX 3060
title: A newer retail game
seconds: 60
exit: 0x0
frames shown: 1358 (PresentX 1359)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 12840 MB

Not tested

  • AMD/Intel GPUs, output pixel readback, or native creation of an emitted two-pass MS/GS fixture (the GPU fixture uses VS/PS; stream conversion has CPU coverage).
  • The smoke runs do not exercise the retail integer-target pipeline or establish 3D/world/prologue playability. The integration run that exposed the rejection included additional unmerged changes.

AI use

  • Codex, GPT-6 (exact serving variant not exposed): diagnosis, implementation, tests, read-only review and this report. All reported runs were executed on the hardware above. User-authored commit with Codex co-author.
**@⁠Swagi-REDACTED** on GitHub · 2026-11-25 11:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/2271) `Swagi-REDACTED:d3d12x/integer-target-blend` → `main` · +195 −0 · 2 files · 1 commits · open PC D3D12 rejected an `R8_UINT` attachment with blending enabled during an integration run of **A newer retail game** (debug error 676, `E_INVALIDARG`). Disable blending on active typed integer color targets, expanding shared state so float/normalized attachments keep their effective blending. This addresses pipeline creation; the separate world-loading failure remains unresolved. **What is in it** - `real.rs`: normalize translated graphics descriptions before their driver-cache key and two-pass MS/GS streams before native creation; CPU and synthetic GPU regressions. - `README.md`: document the supported mixed-target behavior and its validation limits. **Tested** - RTX 3060 12 GB, driver 621.14 (32.0.16.2114); Ryzen 7 9800X3D, 16 GB RAM; Windows 11 build 26200; Rust stable MSVC 1.95.0; SDK DXC 1.9.2602.17. - Debug `cargo test --locked -p xcl --lib integer_blend -- --test-threads=4`: 5 passed, 0 failed, 0 ignored. Before the conversion, 4 failed and 1 passed; the native mixed-MRT descriptor returned `0x80070057`. Afterward both native descriptor and stream APIs create the pipeline. - Debug `cargo test --locked --workspace -- --test-threads=4`: 1159 passed, 0 failed, 46 ignored; 25 explicit SKIPPED events (20 wave64, three unsupported per-lane f16 forms, one heap-windows-disabled fixture, one driver-cache measurement requiring Windows Developer Mode). Default runtime flags, NVIDIA selected. - An earlier overlapping suite attempt stopped at two end-to-end out-of-memory failures while a separate title run was active; the full successful rerun above had that title stopped. - `cargo build --locked --release --workspace`: passed on the clean committed head. Sixty-second title smokes below retain profile/menu rendering, without advancing into world loading. **Regression run** Main: ``` xcl-smoke v1 commit: cbc296ab65a2661a61e3e2da109134bcd5319f60 gpu: NVIDIA GeForce RTX 3060 title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1249 (PresentX 1250) presents per 2 s (last 3): 14 59 44 device removals: 0 crashes: 0 peak commit: 14346 MB ``` This PR's head: ``` xcl-smoke v1 commit: f73d97dbc3abbb708229abec4a7e56d2e5dc051a gpu: NVIDIA GeForce RTX 3060 title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1358 (PresentX 1359) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 12840 MB ``` **Not tested** - AMD/Intel GPUs, output pixel readback, or native creation of an emitted two-pass MS/GS fixture (the GPU fixture uses VS/PS; stream conversion has CPU coverage). - The smoke runs do not exercise the retail integer-target pipeline or establish 3D/world/prologue playability. The integration run that exposed the rejection included additional unmerged changes. **AI use** - Codex, GPT-6 (exact serving variant not exposed): diagnosis, implementation, tests, read-only review and this report. All reported runs were executed on the hardware above. User-authored commit with Codex co-author.
A mixed MRT pipeline in A newer retail game enables blending on an R8_UINT
attachment. PC D3D12 rejects that state with E_INVALIDARG (debug error 676).
Normalize translated graphics descriptions and two-pass MS/GS streams,
expanding shared blend state to preserve normalized/float attachments.

The synthetic native GPU pipeline failed before the conversion and passes
through both descriptor and stream APIs after it. Workspace tests on RTX 3060:
1159 passed, 0 failed, 46 ignored; 25 explicit capability/configuration skips.
This does not address the separate world-loading GPU hang or memory failure.

Co-authored-by: Codex <[email protected]>
Assisted-by: Codex (GPT-6; exact serving variant not exposed)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:25:09 +00:00
Author
Owner

@⁠DarkPanda69 on GitHub · 2026-11-25 12:20 UTC · original

AMD run (listed as untested), plus an RTX 3060: the new pipeline test passes on both.

Head f73d97d applied on main 1a0bbe3, debug, Windows 11 Pro 26200, XCL_ADAPTER set to each card:

  • RX 9070 XT (RDNA4, driver 32.0.32029.2010): gpu_integer_blend_mixed_targets_create_a_pipeline ok, so the AMD driver accepts the pipeline with blending off on the integer targets. Whole gpu:: filter: 629 passed, 2 failed, 22 ignored, the same as on main; the 2 failures are the AMD fuzz seeds 722 and 1599 tracked in #2115.
  • RTX 3060 (driver 32.0.16.1088): the new test ok; gpu:: 631 passed, 0 failed, 22 ignored.

Not tested: output pixel readback, a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

**@⁠DarkPanda69** on GitHub · 2026-11-25 12:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/2271#issuecomment-7162233403) AMD run (listed as untested), plus an RTX 3060: the new pipeline test passes on both. Head `f73d97d` applied on `main` `1a0bbe3`, debug, Windows 11 Pro 26200, `XCL_ADAPTER` set to each card: - **RX 9070 XT** (RDNA4, driver 32.0.32029.2010): `gpu_integer_blend_mixed_targets_create_a_pipeline` ok, so the AMD driver accepts the pipeline with blending off on the integer targets. Whole `gpu::` filter: 629 passed, 2 failed, 22 ignored, the same as on `main`; the 2 failures are the AMD fuzz seeds 722 and 1599 tracked in #2115. - **RTX 3060** (driver 32.0.16.1088): the new test ok; `gpu::` 631 passed, 0 failed, 22 ignored. Not tested: output pixel readback, a title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Author
Owner

@⁠nnonno91 on GitHub · 2026-11-25 15:18 UTC · original

Independent Windows test of f73d97dbc3abbb708229abec4a7e56d2e5dc051a. Confirmed the original blend state was rejected and the corrected mixed-target pipeline was accepted on both Radeon integrated graphics and RTX 5090.

Tested

  • Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, Radeon integrated graphics (32.0.21042.62), RTX 5090 (32.0.16.1742), Rust 1.100.0 x64 MSVC, Windows SDK DXC/DXIL 1.8.2502.11. Unoptimized test profile.
  • Clean head, cargo test --locked -p xcl --lib integer_blend -- --nocapture --test-threads=1 on each selected adapter. Each run reported 5 passed, 0 failed, 0 ignored, and no logged skips. The GPU test created a pipeline with mixed integer and non-integer targets through the native descriptor and stream forms.
  • Added a temporary negative control to the GPU fixture. cargo test --locked -p xcl --lib gpu_integer_blend_mixed_targets_create_a_pipeline -- --nocapture --test-threads=1 reported 1 passed, 0 failed, 0 ignored, and no logged skips per adapter. Both logged 0x80070057 for the unnormalized native descriptor before successfully creating the corrected pipelines. Restored the clean checkout.

Not tested

Rendered pixel values, the parent revision, retail titles, or the full workspace suite.

AI use

OpenAI Codex (GPT-6.2 Sol) prepared and ran the tests, verified the results, and wrote this report.

**@⁠nnonno91** on GitHub · 2026-11-25 15:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/2271#issuecomment-7166623074) Independent Windows test of `f73d97dbc3abbb708229abec4a7e56d2e5dc051a`. Confirmed the original blend state was rejected and the corrected mixed-target pipeline was accepted on both Radeon integrated graphics and RTX 5090. **Tested** - Windows 11 25H2 (26200.9974), Ryzen 7 9800X3D, Radeon integrated graphics (32.0.21042.62), RTX 5090 (32.0.16.1742), Rust 1.100.0 x64 MSVC, Windows SDK DXC/DXIL 1.8.2502.11. Unoptimized test profile. - Clean head, `cargo test --locked -p xcl --lib integer_blend -- --nocapture --test-threads=1` on each selected adapter. Each run reported 5 passed, 0 failed, 0 ignored, and no logged skips. The GPU test created a pipeline with mixed integer and non-integer targets through the native descriptor and stream forms. - Added a temporary negative control to the GPU fixture. `cargo test --locked -p xcl --lib gpu_integer_blend_mixed_targets_create_a_pipeline -- --nocapture --test-threads=1` reported 1 passed, 0 failed, 0 ignored, and no logged skips per adapter. Both logged `0x80070057` for the unnormalized native descriptor before successfully creating the corrected pipelines. Restored the clean checkout. **Not tested** Rendered pixel values, the parent revision, retail titles, or the full workspace suite. **AI use** OpenAI Codex (GPT-6.2 Sol) prepared and ran the tests, verified the results, and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 17:09 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 17:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2271#issuecomment-7169085259) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/2271/head:github-bot/gh-2271'
git switch 'github-bot/gh-2271'

Merge

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