D3D12.X: keep barriers carrying console hint flags #3090

Merged
Prime1997 merged 1 commit from upstream-pr/3090 into nvidia-dev 2026-11-28 04:12:54 +00:00
Prime1997 commented 2026-11-28 03:35:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-28T03:35:18Z.


Keep valid transition, aliasing and UAV records when their per-record flags include console hints. Preserve PC split-barrier bits and remove unsupported high bits instead of dropping the entire record.

What is in it

  • Barrier filtering and four regression fixtures in list_x.rs; README behavior note.

Tested

  • Windows build 26200 x64; Intel Core i5-10400; RTX 3060 Ti, driver 32.0.16.1714; Rust 1.100.0 MSVC, debug profile with debug symbols disabled.
  • 4 passed, 0 failed, 0 ignored, 0 reported skips. The original runtime fails all four controls. Native RTX 3060 Ti readback verified all 16 pixels in each of three cases: ordinary, hinted and split barriers.
  • cargo test --locked -p xcl --lib --target-dir <private-target> -- --exact --test-threads=1 --nocapture hle::d3d12x::list_x::tests::resource_barrier_console_flags_keep_transition_and_split_bits hle::d3d12x::list_x::tests::resource_barrier_console_flags_keep_uav_ordering_and_aliasing hle::d3d12x::list_x::tests::resource_barrier_console_flags_leave_existing_filters_in_place hle::d3d12x::list_x::tests::gpu_resource_barrier_console_hint_preserves_texture_copy
  • Those results are from the preserved patch on NVIDIA ba9d1f947. Current head b3e676171db6f82bd1741406630570aac50bcb5b rebases the identical patch onto e48e74cad7af992f7b472b59f06ad23ae3695166; stable patch identities match. The current-head rerun is pending.

Regression run
Pending. No retail smoke blocks are claimed.

Not tested

  • The full suite and retail regression on this rebased head, AMD, or launch readiness. The earlier unmodified NVIDIA baseline reported 1,892 passed, 2 failed, 48 ignored and 28 explicit skip diagnostics; #2771 fixes both overflow failures. Latest NVIDIA also added #2782, #2898 and #3005 and is being checked separately.
  • Shared ResourceBarrierX flags/output ABI, timing benefits and every console hint meaning are outside this patch.

AI use
Codex (GPT-6) implemented and independently reviewed the change and ran the reported checks. API contracts were checked against local GDK documentation; no SDK code, headers, binaries, samples or documentation text are included.

Optional temporary Discord for coordinating contributor work, testing and comparing results.

<!-- greyfinch-sync:ivall/xcl:issue:5536282100 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3090). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-28T03:35:18Z. --- Keep valid transition, aliasing and UAV records when their per-record flags include console hints. Preserve PC split-barrier bits and remove unsupported high bits instead of dropping the entire record. **What is in it** - Barrier filtering and four regression fixtures in list_x.rs; README behavior note. **Tested** - Windows build 26200 x64; Intel Core i5-10400; RTX 3060 Ti, driver 32.0.16.1714; Rust 1.100.0 MSVC, debug profile with debug symbols disabled. - 4 passed, 0 failed, 0 ignored, 0 reported skips. The original runtime fails all four controls. Native RTX 3060 Ti readback verified all 16 pixels in each of three cases: ordinary, hinted and split barriers. - `cargo test --locked -p xcl --lib --target-dir <private-target> -- --exact --test-threads=1 --nocapture hle::d3d12x::list_x::tests::resource_barrier_console_flags_keep_transition_and_split_bits hle::d3d12x::list_x::tests::resource_barrier_console_flags_keep_uav_ordering_and_aliasing hle::d3d12x::list_x::tests::resource_barrier_console_flags_leave_existing_filters_in_place hle::d3d12x::list_x::tests::gpu_resource_barrier_console_hint_preserves_texture_copy` - Those results are from the preserved patch on NVIDIA `ba9d1f947`. Current head `b3e676171db6f82bd1741406630570aac50bcb5b` rebases the identical patch onto `e48e74cad7af992f7b472b59f06ad23ae3695166`; stable patch identities match. The current-head rerun is pending. **Regression run** Pending. No retail smoke blocks are claimed. **Not tested** - The full suite and retail regression on this rebased head, AMD, or launch readiness. The earlier unmodified NVIDIA baseline reported 1,892 passed, 2 failed, 48 ignored and 28 explicit skip diagnostics; #2771 fixes both overflow failures. Latest NVIDIA also added #2782, #2898 and #3005 and is being checked separately. - Shared ResourceBarrierX flags/output ABI, timing benefits and every console hint meaning are outside this patch. **AI use** Codex (GPT-6) implemented and independently reviewed the change and ran the reported checks. API contracts were checked against local GDK documentation; no SDK code, headers, binaries, samples or documentation text are included. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
andrewDoing commented 2026-11-28 03:56:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-28T03:56:04Z.


I ran the four stock barrier tests on unmodified rebased head b3e676171db6f82bd1741406630570aac50bcb5b, native RTX 5070 / NVIDIA 616.92. Result: 4 passed, 0 failed, 0 ignored, no skip notices.

The GPU fixture independently checked all 16 RGBA8 pixels for the ordinary transition, console hint 0x10000, and paired split 0x10001 / 0x10002, after queue signal and fence completion. The other three tests cover transition flags, UAV/aliasing ordering, and existing filters.

I requested XCL_D3D12_DEBUG=1, but the runner does not expose whether enabling the debug layer succeeded, so this is not a certified debug-layer validation. I did not run the full workspace or a retail title.

AI use: OpenAI Codex with GPT-6.2 Astra ran the tests; Codex reviewed and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7233524753 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3090#issuecomment-7233524753). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-28T03:56:04Z. --- I ran the four stock barrier tests on unmodified rebased head `b3e676171db6f82bd1741406630570aac50bcb5b`, native RTX 5070 / NVIDIA 616.92. Result: **4 passed, 0 failed, 0 ignored, no skip notices**. The GPU fixture independently checked all 16 RGBA8 pixels for the ordinary transition, console hint `0x10000`, and paired split `0x10001` / `0x10002`, after queue signal and fence completion. The other three tests cover transition flags, UAV/aliasing ordering, and existing filters. I requested `XCL_D3D12_DEBUG=1`, but the runner does not expose whether enabling the debug layer succeeded, so this is not a certified debug-layer validation. I did not run the full workspace or a retail title. AI use: OpenAI Codex with GPT-6.2 Astra ran the tests; Codex reviewed and prepared this report.
thehollowedone commented 2026-11-28 04:00:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T04:00:28Z.


Independent RTX 3080 Ti check of #3090 head b3e67617, based on nvidia-dev e48e74ca. Windows 11 build 26300, driver 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC, DXC 1.8.2502.11.

cargo test --offline --locked -j 4 -p xcl --lib resource_barrier_console -- --test-threads=1 --nocapture passed 4/0/0, including the native 16-pixel texture readback. I also reran gpu_resource_barrier_console_hint_preserves_texture_copy with XCL_D3D12_DEBUG=1: 1/0/0, no reported skip or D3D12 error in that process's output. The test does not assert an ID3D12InfoQueue message count, so this is a readback result, not a complete validation-layer claim.

The full cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 finished 1,904 passed, 2 failed, 48 ignored across 40 targets, with 26 explicit SKIPPED notices. console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk failed with DXIL not compiled yet; the same exact test fails on unchanged parent e48e74ca (0/1/0). d32s8_targets_take_their_own_size_of_video_memory also failed in the concurrent suite, then passed in an isolated head rerun (1/0/0). A further four-thread library rerun aborted when the coherent window could not be restored after a CUSTOM segment, so it produced no valid aggregate count. I cannot attribute the VRAM test's suite failure or the abort to this barrier change from these runs. No paired retail smoke was run.

AI use: Codex (GPT-6.2 Sol) inspected the patch, ran the tests and checked this report.

<!-- greyfinch-sync:ivall/xcl:comment:7233593290 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3090#issuecomment-7233593290). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T04:00:28Z. --- Independent RTX 3080 Ti check of [#3090 head `b3e67617`](https://github.com/xcl-dev/xcl/commit/b3e676171db6f82bd1741406630570aac50bcb5b), based on [`nvidia-dev` `e48e74ca`](https://github.com/xcl-dev/xcl/commit/e48e74cad7af992f7b472b59f06ad23ae3695166). Windows 11 build 26300, driver 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC, DXC 1.8.2502.11. `cargo test --offline --locked -j 4 -p xcl --lib resource_barrier_console -- --test-threads=1 --nocapture` passed **4/0/0**, including the native 16-pixel texture readback. I also reran `gpu_resource_barrier_console_hint_preserves_texture_copy` with `XCL_D3D12_DEBUG=1`: **1/0/0**, no reported skip or D3D12 error in that process's output. The test does not assert an `ID3D12InfoQueue` message count, so this is a readback result, not a complete validation-layer claim. The full `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4` finished **1,904 passed, 2 failed, 48 ignored** across 40 targets, with 26 explicit `SKIPPED` notices. `console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk` failed with `DXIL not compiled yet`; the same exact test fails on unchanged parent `e48e74ca` (0/1/0). `d32s8_targets_take_their_own_size_of_video_memory` also failed in the concurrent suite, then passed in an isolated head rerun (1/0/0). A further four-thread library rerun aborted when the coherent window could not be restored after a CUSTOM segment, so it produced no valid aggregate count. I cannot attribute the VRAM test's suite failure or the abort to this barrier change from these runs. No paired retail smoke was run. AI use: Codex (GPT-6.2 Sol) inspected the patch, ran the tests and checked this report.
DarkPanda69 commented 2026-11-28 04:03:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-28T04:03:47Z.


AMD run (listed as untested), with an RTX 3060 in the same PC: the four new tests pass on both, and nothing else in list_x changes.

Tested: at the PR head b3e6761 against its merge-base with nvidia-dev, e48e74c (the diff doesn't apply as a patch on today's nvidia-dev 01b94f5). Debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, card picked with XCL_ADAPTER; RX 9070 XT (RDNA4) driver 32.0.32029.2010, RTX 3060 driver 32.0.16.1088.

  • cargo test -p xcl --lib -- hle::d3d12x::list_x::tests:: --test-threads=1 --nocapture: merge-base 50 passed, 0 failed; PR 54 passed, 0 failed, 0 ignored, no SKIPPED, on both cards.
  • The only changes are the four new tests, all ok. gpu_resource_barrier_console_hint_preserves_texture_copy printed barrier texture-copy adapter: AMD Radeon RX 9070 XT / … NVIDIA GeForce RTX 3060.

Not tested: the whole suite, a title, Intel.

AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7233646381 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3090#issuecomment-7233646381). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-28T04:03:47Z. --- AMD run (listed as untested), with an RTX 3060 in the same PC: the four new tests pass on both, and nothing else in `list_x` changes. **Tested:** at the PR head `b3e6761` against its merge-base with `nvidia-dev`, `e48e74c` (the diff doesn't apply as a patch on today's `nvidia-dev` `01b94f5`). Debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, card picked with `XCL_ADAPTER`; RX 9070 XT (RDNA4) driver 32.0.32029.2010, RTX 3060 driver 32.0.16.1088. - `cargo test -p xcl --lib -- hle::d3d12x::list_x::tests:: --test-threads=1 --nocapture`: merge-base 50 passed, 0 failed; PR 54 passed, 0 failed, 0 ignored, no SKIPPED, on both cards. - The only changes are the four new tests, all ok. `gpu_resource_barrier_console_hint_preserves_texture_copy` printed `barrier texture-copy adapter: AMD Radeon RX 9070 XT` / `… NVIDIA GeForce RTX 3060`. **Not tested:** the whole suite, a title, Intel. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3090
No description provided.