Skip to content

D3D12.X: translate geometry pipeline target formats - #1717

Closed
hajduzsolt wants to merge 1 commit into
xcl-dev:mainfrom
hajduzsolt:fix/geometry-pipeline-target-formats
Closed

hajduzsolt wants to merge 1 commit into
xcl-dev:mainfrom
hajduzsolt:fix/geometry-pipeline-target-formats

Conversation

@hajduzsolt

@hajduzsolt hajduzsolt commented Nov 24, 2026 •

Copy link
Copy Markdown

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

What is in it

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
hajduzsolt marked this pull request as ready for review November 24, 2026 19:47
@WebIdentity1

WebIdentity1 commented Nov 24, 2026 •

Copy link
Copy Markdown

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 Recompiler: complete remaining RDNA2 integer CLAMP=1 saturation (#105) #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.

@hajduzsolt

Copy link
Copy Markdown
Author

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 hajduzsolt closed this Nov 24, 2026
@DavidM1911

Copy link
Copy Markdown
Contributor

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

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants