D3D12.X: preserve pipeline flags from translated compute streams #2597

Open
opened 2026-11-26 01:31:18 +00:00 by KOLESNiii · 3 comments
KOLESNiii commented 2026-11-26 01:31:18 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-26T01:31:18Z.


Part of #2508 (Pipeline Rebuild). Verified on main at b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.

The console-CS branch of stream_pipeline starts with a zeroed compute descriptor and copies the root signature, CS bytecode and node mask. It ignores the FLAGS subobject (type 20). The resulting descriptor goes into dev_create_compute_pso. Legacy compute creation preserves Flags, and the native cache uses flags in both RAM and disk identity. The same requested flags therefore take different paths depending on the entry point. Compute stream conversion · Entry point · Driver descriptor and cache

Preserve supported compute flags or explicitly report any normalization needed for console-only values. A synthetic stream with an explicit nonzero FLAGS subobject can assert the descriptor passed to native creation and compare its key with the equivalent legacy input. This also gives #2453 a reliable runtime value for its offline parity checks. Related to #1661 and #2600. Title usage and timing remain unmeasured.

AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.

<!-- greyfinch-sync:ivall/xcl:issue:6617452562 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2607). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-26T01:31:18Z. --- Part of #2508 (Pipeline Rebuild). Verified on `main` at `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`. The console-CS branch of `stream_pipeline` starts with a zeroed compute descriptor and copies the root signature, CS bytecode and node mask. It ignores the FLAGS subobject (type 20). The resulting descriptor goes into `dev_create_compute_pso`. Legacy compute creation preserves `Flags`, and the native cache uses flags in both RAM and disk identity. The same requested flags therefore take different paths depending on the entry point. [Compute stream conversion](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/hle/d3d12x/real.rs#L6642-L6664) · [Entry point](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/hle/d3d12x/real.rs#L6814-L6817) · [Driver descriptor and cache](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/hle/d3d12x/real.rs#L4418-L4432) Preserve supported compute flags or explicitly report any normalization needed for console-only values. A synthetic stream with an explicit nonzero FLAGS subobject can assert the descriptor passed to native creation and compare its key with the equivalent legacy input. This also gives #2453 a reliable runtime value for its offline parity checks. Related to #1661 and #2600. Title usage and timing remain unmeasured. AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.
oni-swr commented 2026-11-26 02:08:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T01:52:58Z.


Claiming #2607: preserve supported flags on translated compute PSO streams and verify descriptor/cache-key parity with synthetic CPU tests.
AI use: Claude Code (Claude Opus 5.5), coordinated by Codex (gpt-6.2-sol).

<!-- greyfinch-sync:ivall/xcl:comment:7180238368 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2607#issuecomment-7180238368). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T01:52:58Z. --- Claiming #2607: preserve supported flags on translated compute PSO streams and verify descriptor/cache-key parity with synthetic CPU tests. AI use: Claude Code (Claude Opus 5.5), coordinated by Codex (gpt-6.2-sol).
oni-swr commented 2026-11-26 07:03:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T06:39:24Z.


Claiming independent Windows RX 7800 XT verification of PR #2693 at ab87bf62, with a synthetic stream-flags check and an exact-parent control.
AI use: Claude Code (Claude Sonnet 5.5, planned test run), coordinated by Codex (gpt-6.2-sol).

<!-- greyfinch-sync:ivall/xcl:comment:7184646712 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2607#issuecomment-7184646712). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T06:39:24Z. --- Claiming independent Windows RX 7800 XT verification of PR #2693 at ab87bf62, with a synthetic stream-flags check and an exact-parent control. AI use: Claude Code (Claude Sonnet 5.5, planned test run), coordinated by Codex (gpt-6.2-sol).
oni-swr commented 2026-11-26 07:03:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T07:00:12Z.


Independent RX 7800 XT verification of #2693 at ab87bf62 (parent b49be183) is posted: https://github.com/xcl-dev/xcl/pull/2693#issuecomment-7184993901
Synthetic only: suite 1435 passed / 1 failed (seed 722, same as the parent) / 47 ignored, 7 SKIPPED; the stream-flags test fails on the parent without the fix and passes on the head.
AI use: Claude Code (Claude Sonnet 5.5), coordinated by Codex (gpt-6.2-sol).

<!-- greyfinch-sync:ivall/xcl:comment:7184995099 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2607#issuecomment-7184995099). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T07:00:12Z. --- Independent RX 7800 XT verification of #2693 at `ab87bf62` (parent `b49be183`) is posted: https://github.com/xcl-dev/xcl/pull/2693#issuecomment-7184993901 Synthetic only: suite 1435 passed / 1 failed (seed 722, same as the parent) / 47 ignored, 7 SKIPPED; the stream-flags test fails on the parent without the fix and passes on the head. AI use: Claude Code (Claude Sonnet 5.5), coordinated by Codex (gpt-6.2-sol).
Sign in to join this conversation.
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#2597
No description provided.