D3D12.X: disable blending on typed integer color targets #2261
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2271"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Swagi-REDACTED on 2026-11-25T11:55:38Z.
PC D3D12 rejected an
R8_UINTattachment 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
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 returned0x80070057. Afterward both native descriptor and stream APIs create the pipeline.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.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:
This PR's head:
Not tested
AI use
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T12:20:05Z.
AMD run (listed as untested), plus an RTX 3060: the new pipeline test passes on both.
Head
f73d97dapplied onmain1a0bbe3, debug, Windows 11 Pro 26200,XCL_ADAPTERset to each card:gpu_integer_blend_mixed_targets_create_a_pipelineok, so the AMD driver accepts the pipeline with blending off on the integer targets. Wholegpu::filter: 629 passed, 2 failed, 22 ignored, the same as onmain; the 2 failures are the AMD fuzz seeds 722 and 1599 tracked in #2115.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.
Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T15:18:02Z.
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
cargo test --locked -p xcl --lib integer_blend -- --nocapture --test-threads=1on 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.cargo test --locked -p xcl --lib gpu_integer_blend_mixed_targets_create_a_pipeline -- --nocapture --test-threads=1reported 1 passed, 0 failed, 0 ignored, and no logged skips per adapter. Both logged0x80070057for 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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T17:09:16Z.
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!
upstream-sync referenced this pull request2026-11-25 19:08:37 +00:00
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-27T00:09:45Z.
RTX 5070 mixed render-target readback for XCL PR #2271
A synthetic D3D12 draw on an NVIDIA GeForce RTX 5070 verified all 16 pixels of a 4 × 4 draw in both checked targets. The first RGBA8 pixel was
[127, 0, 128, 127], consistent with half-alpha red blended over blue. The integer red channel read back exactly3at every pixel. PR #2271The probe used a test-only overlay on PR head
f73d97dbc3abbb708229abec4a7e56d2e5dc051a. It applied the PR’s unchanged descriptor normalizer to a shared blend state, created a native VS/PS pipeline, and drew a full-screen triangle into three bound targets. It checked slot 0 (R8G8B8A8_UNORM) within one quantization step and slot 2 (R8_UINT) exactly. Slot 1 (R16G16B16A16_FLOAT) was bound and unmeasured. The command list copied the two checked targets to a readback buffer and the probe waited for GPU completion before mapping it.The focused run passed in 0.70 seconds with zero failures or skips. The log names the selected adapter. The experiment covers descriptor-based VS/PS rendering. Stream-based two-pass MS/GS output and retail gameplay remain unmeasured. Run log
AI use: OpenAI Codex prepared the synthetic readback fixture, ran it, and wrote this report.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T00:27:45Z.
Tested:
f73d97dbc3abbb708229abec4a7e56d2e5dc051a, Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, DXC/DXIL 1.9.2602.17, debug.cargo test --locked -j 2 -p xcl --lib --no-run, then the checked-ininteger_blend_testsCPU cases: 4 passed. The Arc fixturegpu_integer_blend_mixed_targets_create_a_pipelinepassed withXCL_ADAPTER=A770. Both native descriptor and stream APIs accepted the mixed UNORM, FLOAT and R8_UINT graphics pipeline. Zero failures, ignores or skips.Not tested: Arc pixel readback, two-pass MS/GS emission, full suite or retail smoke.
AI use: T3 Code / Codex (
gpt-6.2-sol) ran and reran the checks and wrote the report.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:43:14Z.
Triage (#1607) – head
f73d97dMain already does this:
sanitize_integer_rt_blendinhle/d3d12x/real.rs(commit587d77be, merged with #1988) clearsBlendEnableon*_UINT/*_SINTtargets and, withIndependentBlendEnablefalse and mixed float/integer targets, copies slot 0 to all slots so float targets keep blending. It runs inpc_topology_type(called fromtranslated_graphics_pso_once) and in the two-pass mesh stream builders, and it also handlesLogicOpEnable, whichnormalize_integer_blend_targetshere does not. The PR also conflicts with main.Recommendation: close (superseded by main commit
587d77be).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:51:43Z.
Closing as superseded: this change is already on
main(587d77be). main sanitize_integer_rt_blend clears BlendEnable on integer RTs and promotes shared blend to independent; called from pc_topology_type, the two-pass mesh builders and the pipeline-stream patch (real.rs)Two independent checks found this: Foniass's close list on #1607 and ours against current
main. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.
Pull request closed