D3D12.X: translate geometry pipeline target formats #1717

Closed
github-bot wants to merge 1 commit from gh-pr/1717/head into gh-pr/1717/base
Owner

@⁠hajduzsolt on GitHub · 2026-11-24 19:43 UTC · original
hajduzsolt:fix/geometry-pipeline-target-formats → main · +34 −4 · 1 files · 1 commits · closed without merging

Runtime fix verified with unit tests and RX 9070 XT smoke run.

What is in it

  • Translate console RTV and DSV formats to their PC equivalents when building the two-pass geometry pipeline stream. Addresses XCL-BT-036 in #1488.
  • Add a synthetic stream test covering a converted render-target format, an unchanged format, depth conversion, target count, and preservation of the source descriptor.

Tested

  • Windows 11 x64, AMD Ryzen 7 9800X3D, AMD Radeon RX 9070 XT 16 GB: cargo test -p xcl --lib geometry_stream_maps_console_target_formats -- --test-threads=2 passed.
  • cargo test --workspace -- --test-threads=2 passed; library tests: 810 passed, 22 ignored. Other test binaries also passed. Runtime GPU skips were not individually assessed in this run.

Regression run

main:

xcl-smoke v1
commit: 9039900ba3710fda9d791db589d548b1aaeb3cf8
gpu: AMD Radeon RX 9070 XT
title: A newer retail game
seconds: 60
exit: 0x0
frames shown: 1678 (PresentX 1678)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14839 MB

PR:

xcl-smoke v1
commit: 4b686763342dc57c8129075d3914f62d9d37d374
gpu: AMD Radeon RX 9070 XT
title: A newer retail game
seconds: 60
exit: 0x0
frames shown: 1681 (PresentX 1681)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14838 MB

Not tested

  • Geometry rendering using translated console shaders or console-specific formats on a GPU; NVIDIA and Intel GPUs.

AI use

  • Codex (GPT 6.1 Terra Medium) wrote the implementation and synthetic unit test; human review and smoke verification are pending.
**@⁠hajduzsolt** on GitHub · 2026-11-24 19:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/1717) `hajduzsolt:fix/geometry-pipeline-target-formats` → `main` · +34 −4 · 1 files · 1 commits · closed without merging Runtime fix verified with unit tests and RX 9070 XT smoke run. **What is in it** - Translate console RTV and DSV formats to their PC equivalents when building the two-pass geometry pipeline stream. Addresses XCL-BT-036 in #1488. - Add a synthetic stream test covering a converted render-target format, an unchanged format, depth conversion, target count, and preservation of the source descriptor. **Tested** - Windows 11 x64, AMD Ryzen 7 9800X3D, AMD Radeon RX 9070 XT 16 GB: `cargo test -p xcl --lib geometry_stream_maps_console_target_formats -- --test-threads=2` passed. - `cargo test --workspace -- --test-threads=2` passed; library tests: 810 passed, 22 ignored. Other test binaries also passed. Runtime GPU skips were not individually assessed in this run. **Regression run** main: ``` xcl-smoke v1 commit: 9039900ba3710fda9d791db589d548b1aaeb3cf8 gpu: AMD Radeon RX 9070 XT title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1678 (PresentX 1678) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14839 MB ``` PR: ``` xcl-smoke v1 commit: 4b686763342dc57c8129075d3914f62d9d37d374 gpu: AMD Radeon RX 9070 XT title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1681 (PresentX 1681) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14838 MB ``` **Not tested** - Geometry rendering using translated console shaders or console-specific formats on a GPU; NVIDIA and Intel GPUs. **AI use** - Codex (GPT 6.1 Terra Medium) wrote the implementation and synthetic unit test; human review and smoke verification are pending.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:02:33 +00:00
github-bot closed this pull request 2026-11-26 05:02:33 +00:00
Author
Owner

@⁠WebIdentity1 on GitHub · 2026-11-24 19:55 UTC · original · edited 2026-11-24 19:56 UTC

Independent native NVIDIA validation of exact head 4b686763342dc57c8129075d3914f62d9d37d374 (parent c160d86ef2efe3a07e4dfb473e4fa72eafb413c0).

Windows 10 Home 19045, RTX 3090 driver 591.74, Rust 1.98.1 MSVC, Agility SDK 1.620.2; XCL_ADAPTER=3090, XCL_REQUIRE_GPU=mesh, XCL_HEAP_WINDOWS=1, direct DXIL unset. All 292 tracked-file SHA-256 hashes matched on Windows before and after testing.

  • New geometry_stream_maps_console_target_formats: 1 passed / 0 failed / 0 ignored.
  • Existing gpu_geometry_mode_es_gs_strip: 1 passed / 0 failed / 0 ignored, no skip. This executes the synthetic translated geometry compute and mesh pass-through draw on the 3090. It does not call the changed put_geometry_target_formats helper.
  • cargo build --locked --workspace: exit 0.
  • cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output in interactive desktop session 1: 858 passed / 1 failed / 42 ignored across 20 targets, no timeout. Sole failure: the pre-existing #202 CLAMP lane-0 assertion. In an earlier same-day run on the exact parent with the same adapter/Agility/heap-window settings, the counts were 857 / 1 / 42 with the same sole failure; the head adds one unit test.

Four explicit skip paths are included in the passing totals: two native-wave64 reference tests and two system D3D12 debug-layer tests. Some workspace fixtures choose the default adapter independently. I did not run a retail title or an integrated console VS+GS PSO using one of the converted formats, so this does not establish that the format mapping changes actual gameplay pixels on NVIDIA. It adds independent Ampere build, unit, synthetic geometry draw, and suite coverage.

Overlap found after this run: #1716 opened about two minutes before this PR and changes the same translated_gs_pso RTV/DSV mapping for XCL-BT-036. It routes both the stream and existing plain-desc pipeline through pc_pipeline_formats, while this PR uses a separate stream helper. My #1717 test results do not compare the two implementations; please coordinate which patch to carry forward.

Validation/report prepared with Codex (GPT-6); all test results above came from the Windows machine.

**@⁠WebIdentity1** on GitHub · 2026-11-24 19:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1717#issuecomment-7142779446) · edited 2026-11-24 19:56 UTC Independent native NVIDIA validation of exact head `4b686763342dc57c8129075d3914f62d9d37d374` (parent `c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`). Windows 10 Home 19045, RTX 3090 driver 591.74, Rust 1.98.1 MSVC, Agility SDK 1.620.2; `XCL_ADAPTER=3090`, `XCL_REQUIRE_GPU=mesh`, `XCL_HEAP_WINDOWS=1`, direct DXIL unset. All 292 tracked-file SHA-256 hashes matched on Windows before and after testing. - New `geometry_stream_maps_console_target_formats`: **1 passed / 0 failed / 0 ignored**. - Existing `gpu_geometry_mode_es_gs_strip`: **1 passed / 0 failed / 0 ignored**, no skip. This executes the synthetic translated geometry compute and mesh pass-through draw on the 3090. It does **not** call the changed `put_geometry_target_formats` helper. - `cargo build --locked --workspace`: exit 0. - `cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output` in interactive desktop session 1: **858 passed / 1 failed / 42 ignored** across 20 targets, no timeout. Sole failure: the pre-existing #202 CLAMP lane-0 assertion. In an earlier same-day run on the exact parent with the same adapter/Agility/heap-window settings, the counts were **857 / 1 / 42** with the same sole failure; the head adds one unit test. Four explicit skip paths are included in the passing totals: two native-wave64 reference tests and two system D3D12 debug-layer tests. Some workspace fixtures choose the default adapter independently. I did not run a retail title or an integrated console VS+GS PSO using one of the converted formats, so this does not establish that the format mapping changes actual gameplay pixels on NVIDIA. It adds independent Ampere build, unit, synthetic geometry draw, and suite coverage. **Overlap found after this run:** [#1716](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1716) opened about two minutes before this PR and changes the same `translated_gs_pso` RTV/DSV mapping for `XCL-BT-036`. It routes both the stream and existing plain-desc pipeline through `pc_pipeline_formats`, while this PR uses a separate stream helper. My #1717 test results do not compare the two implementations; please coordinate which patch to carry forward. Validation/report prepared with Codex (GPT-6); all test results above came from the Windows machine.
Author
Owner

@⁠hajduzsolt on GitHub · 2026-11-24 20:10 UTC · original

Thanks for the independent validation and for catching the overlap. I confirmed that #1716 was opened first and covers the same geometry pipeline format mapping, so I am closing this duplicate in favor of that PR.

**@⁠hajduzsolt** on GitHub · 2026-11-24 20:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/1717#issuecomment-7143143752) Thanks for the independent validation and for catching the overlap. I confirmed that #1716 was opened first and covers the same geometry pipeline format mapping, so I am closing this duplicate in favor of that PR.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 22:28 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 22:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/1717#issuecomment-7146277920) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. Thanks!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.