shader: make compile_dxil consume startup requests and publish runtime cache entries #2933

Closed
opened 2026-11-26 21:59:45 +00:00 by sydney-0o · 4 comments
sydney-0o commented 2026-11-26 21:59:45 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-26T21:59:45Z.


Target branch: cpp-migration

Problem

The startup runtime and its cache tools use revision 28 keys for graphics and compute requests. The C++ reader in compile_dxil --requests still validates revision 14 keys. Graphics requests with existing ASCII .psin metadata also differ from the native reader's 12-byte binary pixel-entry record. Updating the revision string alone does not align the input and hash formats.

The batch CLI writes req_<key>.cso for compute and req_<key>.vs.cso / req_<key>.ps.cso for a graphics pair. The runtime looks for <key>.cs.cso or <key>.vs.cso / <key>.ps.cso and a matching <key>.txt manifest.

This was found by source inspection at 7f951fd3. Runtime key writer and graphics cache loader · C++ request reader · Batch CLI

Done when

  • A source-built VS/PS request with .psin metadata and a source-built .c67 compute request use the current startup request format and keys. Both compile through compile_dxil --requests with the relevant native profile.
  • The CLI publishes the stage files and manifest under the names and format the existing runtime cache loader expects. Publish the manifest after the stage files are ready. The runtime accepts the entries without manual renaming or conversion.
  • A mismatched key or stale pixel-input description produces a clear diagnostic and no new runtime-loadable cache entry.

A simple VS/PS pair is sufficient for the graphics check. Cross-quad WQM and EXECZ behavior is tracked in #2907.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6635775724 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2933). Originally posted by [sydney-0o](https://github.com/sydney-0o) on 2026-11-26T21:59:45Z. --- Target branch: `cpp-migration` ## Problem The startup runtime and its cache tools use revision 28 keys for graphics and compute requests. The C++ reader in `compile_dxil --requests` still validates revision 14 keys. Graphics requests with existing ASCII `.psin` metadata also differ from the native reader's 12-byte binary pixel-entry record. Updating the revision string alone does not align the input and hash formats. The batch CLI writes `req_<key>.cso` for compute and `req_<key>.vs.cso` / `req_<key>.ps.cso` for a graphics pair. The runtime looks for `<key>.cs.cso` or `<key>.vs.cso` / `<key>.ps.cso` and a matching `<key>.txt` manifest. This was found by source inspection at `7f951fd3`. [Runtime key writer and graphics cache loader](https://github.com/R0Y00/Xbox2Windows/blob/7f951fd3/src/startup_stubs/d3d12_draw.inl#L345) · [C++ request reader](https://github.com/R0Y00/Xbox2Windows/blob/7f951fd3/src/shader_compute_request.cpp#L32) · [Batch CLI](https://github.com/R0Y00/Xbox2Windows/blob/7f951fd3/tools/startup/compile_dxil.cpp#L179) ## Done when - A source-built VS/PS request with `.psin` metadata and a source-built `.c67` compute request use the current startup request format and keys. Both compile through `compile_dxil --requests` with the relevant native profile. - The CLI publishes the stage files and manifest under the names and format the existing runtime cache loader expects. Publish the manifest after the stage files are ready. The runtime accepts the entries without manual renaming or conversion. - A mismatched key or stale pixel-input description produces a clear diagnostic and no new runtime-loadable cache entry. A simple VS/PS pair is sufficient for the graphics check. Cross-quad WQM and EXECZ behavior is tracked in #2907.
consolelogkyo commented 2026-11-26 22:17:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by consolelogkyo on 2026-11-26T22:17:41Z.


Claiming #2933 on cpp-migration.

  • Environment: Windows 11 (10.0.26100), MSVC 19.44, Windows SDK 10.0.26100.0 DXC, AMD Radeon RX 9070 XT (1002:7550, driver 32.0.32029.2010) + Microsoft WARP (1414:008c), D3D12 debug layer enabled.
  • Plan:
    1. Align src/shader_compute_request.cpp / direct_compute_cache.cpp with the startup runtime's revision-28 graphics (x2w-startup-shader-28 + optional ASCII psin1 <key> ena=0x... addr=0x... in req_<key>.psin) and compute (x2w-startup-shader-28cs over .c67, .data, .root, .desc, .sa, .sb) request formats and keys, rejecting key mismatches or stale/malformed .psin files without publishing a loadable entry.
    2. Update compile_dxil --requests (tools/startup/compile_dxil.cpp) to publish <key>.cs.cso or <key>.vs.cso / <key>.ps.cso and atomically publish the matching <key>.txt x2w-manifest last in the format expected by the startup runtime cache loaders (d3d12_draw.inl / d3d12_compute_dispatch.inl).
    3. Add an end-to-end fixture verifying both graphics (with .psin) and compute (.c67) batch publication, runtime cache acceptance without renaming, and mismatched-key / stale-.psin refusal controls.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7204543205 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2933#issuecomment-7204543205). Originally posted by [consolelogkyo](https://github.com/consolelogkyo) on 2026-11-26T22:17:41Z. --- Claiming #2933 on `cpp-migration`. - **Environment:** Windows 11 (`10.0.26100`), MSVC 19.44, Windows SDK `10.0.26100.0` DXC, AMD Radeon RX 9070 XT (`1002:7550`, driver `32.0.32029.2010`) + Microsoft WARP (`1414:008c`), D3D12 debug layer enabled. - **Plan:** 1. Align `src/shader_compute_request.cpp` / `direct_compute_cache.cpp` with the startup runtime's revision-28 graphics (`x2w-startup-shader-28` + optional ASCII `psin1 <key> ena=0x... addr=0x...` in `req_<key>.psin`) and compute (`x2w-startup-shader-28cs` over `.c67`, `.data`, `.root`, `.desc`, `.sa`, `.sb`) request formats and keys, rejecting key mismatches or stale/malformed `.psin` files without publishing a loadable entry. 2. Update `compile_dxil --requests` (`tools/startup/compile_dxil.cpp`) to publish `<key>.cs.cso` or `<key>.vs.cso` / `<key>.ps.cso` and atomically publish the matching `<key>.txt` `x2w-manifest` last in the format expected by the startup runtime cache loaders (`d3d12_draw.inl` / `d3d12_compute_dispatch.inl`). 3. Add an end-to-end fixture verifying both graphics (with `.psin`) and compute (`.c67`) batch publication, runtime cache acceptance without renaming, and mismatched-key / stale-`.psin` refusal controls. AI-assisted.
Not-Saii commented 2026-11-26 22:34:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-26T22:34:16Z.


@consolelogkyo I had started reading for this before your claim landed, so here is what I found, in case it saves you the same reading. It is all from the source of cpp-migration at e97c5c7c. Nothing was built or run, so please check each point against a build.

The points that would change the plan:

  • Compute is the revision string alone. Graphics is not: the native pixel-entry record needs an interpolant count that a psin1 line does not carry (section 1).
  • The stand-in never computes a key that includes the masks, so no runtime run can load the .psin pair by its key (section 3). @sydney-0o, what should "the runtime accepts the entries" mean for that pair? One reading: the stand-in accepts a pair without a description, and the .psin pair's files are checked against the loader's line forms.
  • The compute loader creates the PSO and native compute declares wave size 32, so that acceptance check needs a physical adapter (section 3).
  • Several native binding kinds have no manifest line. Those requests need a named refusal instead of an entry (section 2).

1. Request keys

Runtime (src/startup_stubs/d3d12_draw.inl) and tools/startup/gfx2hlsl.py C++ reader (src/shader_compute_request.cpp)
Compute x2w-startup-shader-28cs, then code, data, root, desc, sa, sb, each after its length as a u64 (:495-498, compute_key) The same parts, order and framing (:77-84). Only the string differs (-14cs).
Graphics x2w-startup-shader-28, then .a, .b, .root, then .ia if there is one (:374-378). With a description, pipeline_key then hashes b'psin1' and the two masks as little-endian u32 (gfx2hlsl.py:10950-10959). -14, then a, b, root, ia and the raw bytes of .psin (:52-56).

So compute needs the revision string and nothing else. Graphics has more:

  • part(marker, ".psin", 12) (:51) caps the file at 12 bytes. A psin1 line is 39 bytes or more, so today it fails with missing or oversized .psin before anything is hashed.
  • The key has to hash psin1 plus <II (ena, addr), not the bytes of the file. read_ps_inputs (gfx2hlsl.py:11355-11374) shows what to accept: the regex, the key in the line equal to the request's key, and both masks present. _init_pixel_context (:10197) also refuses ena & ~addr.
  • The native record is "PSI1", the address mask and an interpolant count (src/gfx1013_compute_native.cpp:1779-1786, src/direct_compute_cache.cpp:543-558). addr is the mask word. ena has no place in the native stage model, and the count has no source in a psin1 line. :1784-1785 zeroes the whole record unless it is 0x8080 with count 0 or passes raw_center_inputs (:1674-1680). Two things follow:
    • A count of 1 or more is what lets a raw stage branch, write EXEC or interpolate (:1705-1708), and it bounds the v_interp attribute (:1712). Deriving it from the pixel stage, as the highest v_interp attribute plus one, gives 0 for a stage that interpolates nothing, and the mask is then dropped. Three existing fixtures pass count 1 for such a stage: terminal-discard (tests/native_direct_container_check.py:946) and the two center-position-zw cases (:960-963). The other way is to treat a key-verified description as the proof that the entry layout is known, and to bound attributes by the table size of 7 (:1689). The pair linker already refuses a pixel input with no vertex output (:1812-1819).
    • An address mask the native path does not model is dropped without a diagnostic, and the stage is translated as if it had no description. 0x8003 from tests/startup_packed_position_provenance_check.py is one such mask. For the third "Done when" item that should be a named refusal.
  • A DXBC pair refuses any pixel entry (:1780, the !raw test). For container requests the description can only be compared with the container's own pixel_input_address. It cannot be passed down.

Every revision-14 key in the tests comes from two helpers: write_request (tests/native_compute_clear_check.py:16) and publish (tests/native_direct_container_check.py:167). The other native tests import them. Three call sites pass a binary pixel_entry= (:906, :946, :978).

To keep this from drifting again, the fixture could take its keys from gfx2hlsl.pipeline_key and compute_key (imported the way tests/startup_stream_check.py does), and a pure-Python check could compare the reader's two literals with the runtime's. tests/startup_gfx2hlsl_fract_check.py:166-174 already pins gfx2hlsl.py to the runtime like that.

2. Output names and the manifest

tools/startup/compile_dxil.cpp:192 builds req_<key>.cso, and :253-256 derive req_<key>.vs.cso and req_<key>.ps.cso from it. The loaders read <key>.txt, then <key>.cs.cso (src/startup_stubs/d3d12_compute_dispatch.inl:75, :158) or <key>.vs.cso and <key>.ps.cso (d3d12_draw.inl:266, :353-354).

What each loader needs:

  • Compute (d3d12_compute_dispatch.inl:87-150): first line x2w-manifest 2, second line stage cs, ud N equal to the number of udsrc lines, and only the line forms listed there. Any other line makes the translation unavailable. smpc and smpheap are refused by name.
  • Graphics (d3d12_draw.inl:281-347): at least one udsrc line, because :347 rejects an empty list. A pair with no root constants still needs one. Other unknown lines are ignored.
  • Both create the root with create_translated_root (src/startup_stubs/translated_sampler_bindings.h:117): constants at b0, one table with t0.. followed by u0.., static samplers from s0. tests/native_recording_check.cpp:150 already creates a native graphics root with it, so the native register allocation should fit.

How the native result maps onto lines, as far as I traced it:

Native Manifest line
Compute b0 word n: the constants blocks in order (src/gfx1013_direct_compute.inl:226-248). For a .c67 request a block is a whole root parameter. udsrc n rootconst <root_parameter> <word>
Graphics b0 word n: GraphicsConstantLayout, in parameter order (src/gfx1013_compute_native.h:77-93) The same, with n = offset(parameter) + word
buffer_srv at t_i srv i buf table <root_parameter> <byte_offset>
raw_buffer_uav at u_i, compute only uav i table <root_parameter> <byte_offset>
texture_srv with image_dimension 1 (I only checked the kind) srv i tex2d table <root_parameter> <byte_offset>
samplers[i] smp, or smpl for explicit_lod, or smpc for comparison, with the four words

The runtime binds table buffers as raw R32_TYPELESS views (d3d12_draw.inl:1281-1291, d3d12_compute_dispatch.inl:424, :433-439). That matches the raw native kinds only. I would refuse to publish, and name the binding, wherever no line is exact:

  • the typed and half view kinds;
  • indexed_atomic_uav, which needs two more root constants at b(register+1) (src/native_compute_pipeline.cpp:79-84);
  • array_count > 1;
  • a graphics root-constant word of 8 or more: the draw path reads pass.constants[a][b] only for b < 8 and passes 0 otherwise (d3d12_draw.inl:2663);
  • more than 32 entry values, 32 inputs or 8 outputs.

I did not trace raw_vector_srv, byte_window_srv, heap_stride_srv or root_buffer_srv far enough to say whether a buf line is exact for them.

For the publication order, gfx2hlsl.translate_to (gfx2hlsl.py:11186-11218) is the model: compile both stages under a staging name, withdraw the old manifest, move the stage files, then write the manifest through a temporary file. Today the graphics job writes .vs.cso under its final name before the pixel stage compiles (compile_dxil.cpp:253-256), so a pixel failure leaves half a pair, and an older manifest could pair it with an old pixel stage. On a key or description refusal, translate_request also removes a manifest published earlier (:11491-11495).

3. Three things that shape the end-to-end fixture

  • The runtime never writes or hashes .psin. cached_translation hashes a, b, root and the layout (d3d12_draw.inl:369-391). Nothing under src/ or tools/ produces a first description: shader_cache_rekey.py only rewrites an existing one under its new key, and the tests write theirs by hand. A key that includes the masks is therefore one the stand-in never looks up, and startup_stream_consumer can show acceptance only for a pair without a description.
  • startup_stream_check.container() writes XBCH with a zero version word. read_guest_shader_container needs version 3 and the FSSM slot table (src/guest_shader_container.cpp:104-122), so a consumer round trip needs the containers that native_direct_container_check.py builds (vertex(), patched_pixel()).
  • The compute loader also creates the PSO (d3d12_compute_dispatch.inl:163-167), and a direct compute module declares wave size 32 (src/dxil_module.h:202-207). #2935 reports 4-lane waves on WARP, so I expect pipeline creation failed there. The compute acceptance check then needs a _hardware variant with a capability skip. The graphics loader stops at the root signature, so that half can run on WARP.

4. Loaded is not the same as drawn

The draw path was written for the gfx2hlsl.py vertex model:

  • pipeline_for sets no input layout (d3d12_draw.inl:941-986), so a pair with vertex_fetch cannot create its PSO.
  • Draws start at vertex 0 and pass the base through a basevertex entry value (:2661, :2739, :2745).
  • A rectangle list is drawn as six vertices with a rect entry value (:2660).
  • An indirect draw reflects both blobs and requires shader model 5 (:1741-1743), so it is refused for a 6.6 pair.

A native vertex stage reads SV_VertexID directly, and its rectangle expansion is a separate .gs.cso that the loader never reads. A published native pair can therefore load and still draw wrong for a non-zero start vertex or a rectangle list. That reads to me like the "Graphics through the runtime" item of #2935 and not this issue. It may still be worth refusing vertex_fetch pairs here and saying so in the PR.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7204796357 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2933#issuecomment-7204796357). Originally posted by [Not-Saii](https://github.com/Not-Saii) on 2026-11-26T22:34:16Z. --- @consolelogkyo I had started reading for this before your claim landed, so here is what I found, in case it saves you the same reading. It is all from the source of `cpp-migration` at `e97c5c7c`. Nothing was built or run, so please check each point against a build. The points that would change the plan: - Compute is the revision string alone. Graphics is not: the native pixel-entry record needs an interpolant count that a `psin1` line does not carry (section 1). - The stand-in never computes a key that includes the masks, so no runtime run can load the `.psin` pair by its key (section 3). @sydney-0o, what should "the runtime accepts the entries" mean for that pair? One reading: the stand-in accepts a pair without a description, and the `.psin` pair's files are checked against the loader's line forms. - The compute loader creates the PSO and native compute declares wave size 32, so that acceptance check needs a physical adapter (section 3). - Several native binding kinds have no manifest line. Those requests need a named refusal instead of an entry (section 2). ### 1. Request keys | | Runtime (`src/startup_stubs/d3d12_draw.inl`) and `tools/startup/gfx2hlsl.py` | C++ reader (`src/shader_compute_request.cpp`) | |---|---|---| | Compute | `x2w-startup-shader-28cs`, then code, data, root, desc, sa, sb, each after its length as a u64 (`:495-498`, `compute_key`) | The same parts, order and framing (`:77-84`). Only the string differs (`-14cs`). | | Graphics | `x2w-startup-shader-28`, then `.a`, `.b`, `.root`, then `.ia` if there is one (`:374-378`). With a description, `pipeline_key` then hashes `b'psin1'` and the two masks as little-endian u32 (`gfx2hlsl.py:10950-10959`). | `-14`, then a, b, root, ia and the raw bytes of `.psin` (`:52-56`). | So compute needs the revision string and nothing else. Graphics has more: - `part(marker, ".psin", 12)` (`:51`) caps the file at 12 bytes. A `psin1` line is 39 bytes or more, so today it fails with `missing or oversized .psin` before anything is hashed. - The key has to hash `psin1` plus `<II` (ena, addr), not the bytes of the file. `read_ps_inputs` (`gfx2hlsl.py:11355-11374`) shows what to accept: the regex, the key in the line equal to the request's key, and both masks present. `_init_pixel_context` (`:10197`) also refuses `ena & ~addr`. - The native record is `"PSI1"`, the address mask and an interpolant count (`src/gfx1013_compute_native.cpp:1779-1786`, `src/direct_compute_cache.cpp:543-558`). `addr` is the mask word. `ena` has no place in the native stage model, and the count has no source in a `psin1` line. `:1784-1785` zeroes the whole record unless it is `0x8080` with count 0 or passes `raw_center_inputs` (`:1674-1680`). Two things follow: - A count of 1 or more is what lets a raw stage branch, write EXEC or interpolate (`:1705-1708`), and it bounds the `v_interp` attribute (`:1712`). Deriving it from the pixel stage, as the highest `v_interp` attribute plus one, gives 0 for a stage that interpolates nothing, and the mask is then dropped. Three existing fixtures pass count 1 for such a stage: `terminal-discard` (`tests/native_direct_container_check.py:946`) and the two `center-position-zw` cases (`:960-963`). The other way is to treat a key-verified description as the proof that the entry layout is known, and to bound attributes by the table size of 7 (`:1689`). The pair linker already refuses a pixel input with no vertex output (`:1812-1819`). - An address mask the native path does not model is dropped without a diagnostic, and the stage is translated as if it had no description. `0x8003` from `tests/startup_packed_position_provenance_check.py` is one such mask. For the third "Done when" item that should be a named refusal. - A DXBC pair refuses any pixel entry (`:1780`, the `!raw` test). For container requests the description can only be compared with the container's own `pixel_input_address`. It cannot be passed down. Every revision-14 key in the tests comes from two helpers: `write_request` (`tests/native_compute_clear_check.py:16`) and `publish` (`tests/native_direct_container_check.py:167`). The other native tests import them. Three call sites pass a binary `pixel_entry=` (`:906`, `:946`, `:978`). To keep this from drifting again, the fixture could take its keys from `gfx2hlsl.pipeline_key` and `compute_key` (imported the way `tests/startup_stream_check.py` does), and a pure-Python check could compare the reader's two literals with the runtime's. `tests/startup_gfx2hlsl_fract_check.py:166-174` already pins `gfx2hlsl.py` to the runtime like that. ### 2. Output names and the manifest `tools/startup/compile_dxil.cpp:192` builds `req_<key>.cso`, and `:253-256` derive `req_<key>.vs.cso` and `req_<key>.ps.cso` from it. The loaders read `<key>.txt`, then `<key>.cs.cso` (`src/startup_stubs/d3d12_compute_dispatch.inl:75`, `:158`) or `<key>.vs.cso` and `<key>.ps.cso` (`d3d12_draw.inl:266`, `:353-354`). What each loader needs: - Compute (`d3d12_compute_dispatch.inl:87-150`): first line `x2w-manifest 2`, second line `stage cs`, `ud N` equal to the number of `udsrc` lines, and only the line forms listed there. Any other line makes the translation unavailable. `smpc` and `smpheap` are refused by name. - Graphics (`d3d12_draw.inl:281-347`): at least one `udsrc` line, because `:347` rejects an empty list. A pair with no root constants still needs one. Other unknown lines are ignored. - Both create the root with `create_translated_root` (`src/startup_stubs/translated_sampler_bindings.h:117`): constants at b0, one table with t0.. followed by u0.., static samplers from s0. `tests/native_recording_check.cpp:150` already creates a native graphics root with it, so the native register allocation should fit. How the native result maps onto lines, as far as I traced it: | Native | Manifest line | |---|---| | Compute b0 word n: the `constants` blocks in order (`src/gfx1013_direct_compute.inl:226-248`). For a `.c67` request a block is a whole root parameter. | `udsrc n rootconst <root_parameter> <word>` | | Graphics b0 word n: `GraphicsConstantLayout`, in parameter order (`src/gfx1013_compute_native.h:77-93`) | The same, with n = `offset(parameter) + word` | | `buffer_srv` at t_i | `srv i buf table <root_parameter> <byte_offset>` | | `raw_buffer_uav` at u_i, compute only | `uav i table <root_parameter> <byte_offset>` | | `texture_srv` with `image_dimension` 1 (I only checked the kind) | `srv i tex2d table <root_parameter> <byte_offset>` | | `samplers[i]` | `smp`, or `smpl` for `explicit_lod`, or `smpc` for `comparison`, with the four words | The runtime binds table buffers as raw `R32_TYPELESS` views (`d3d12_draw.inl:1281-1291`, `d3d12_compute_dispatch.inl:424`, `:433-439`). That matches the raw native kinds only. I would refuse to publish, and name the binding, wherever no line is exact: - the typed and half view kinds; - `indexed_atomic_uav`, which needs two more root constants at b(register+1) (`src/native_compute_pipeline.cpp:79-84`); - `array_count > 1`; - a graphics root-constant word of 8 or more: the draw path reads `pass.constants[a][b]` only for `b < 8` and passes 0 otherwise (`d3d12_draw.inl:2663`); - more than 32 entry values, 32 inputs or 8 outputs. I did not trace `raw_vector_srv`, `byte_window_srv`, `heap_stride_srv` or `root_buffer_srv` far enough to say whether a `buf` line is exact for them. For the publication order, `gfx2hlsl.translate_to` (`gfx2hlsl.py:11186-11218`) is the model: compile both stages under a staging name, withdraw the old manifest, move the stage files, then write the manifest through a temporary file. Today the graphics job writes `.vs.cso` under its final name before the pixel stage compiles (`compile_dxil.cpp:253-256`), so a pixel failure leaves half a pair, and an older manifest could pair it with an old pixel stage. On a key or description refusal, `translate_request` also removes a manifest published earlier (`:11491-11495`). ### 3. Three things that shape the end-to-end fixture - The runtime never writes or hashes `.psin`. `cached_translation` hashes a, b, root and the layout (`d3d12_draw.inl:369-391`). Nothing under `src/` or `tools/` produces a first description: `shader_cache_rekey.py` only rewrites an existing one under its new key, and the tests write theirs by hand. A key that includes the masks is therefore one the stand-in never looks up, and `startup_stream_consumer` can show acceptance only for a pair without a description. - `startup_stream_check.container()` writes `XBCH` with a zero version word. `read_guest_shader_container` needs version 3 and the FSSM slot table (`src/guest_shader_container.cpp:104-122`), so a consumer round trip needs the containers that `native_direct_container_check.py` builds (`vertex()`, `patched_pixel()`). - The compute loader also creates the PSO (`d3d12_compute_dispatch.inl:163-167`), and a direct compute module declares wave size 32 (`src/dxil_module.h:202-207`). #2935 reports 4-lane waves on WARP, so I expect `pipeline creation failed` there. The compute acceptance check then needs a `_hardware` variant with a capability skip. The graphics loader stops at the root signature, so that half can run on WARP. ### 4. Loaded is not the same as drawn The draw path was written for the `gfx2hlsl.py` vertex model: - `pipeline_for` sets no input layout (`d3d12_draw.inl:941-986`), so a pair with `vertex_fetch` cannot create its PSO. - Draws start at vertex 0 and pass the base through a `basevertex` entry value (`:2661`, `:2739`, `:2745`). - A rectangle list is drawn as six vertices with a `rect` entry value (`:2660`). - An indirect draw reflects both blobs and requires shader model 5 (`:1741-1743`), so it is refused for a 6.6 pair. A native vertex stage reads `SV_VertexID` directly, and its rectangle expansion is a separate `.gs.cso` that the loader never reads. A published native pair can therefore load and still draw wrong for a non-zero start vertex or a rectangle list. That reads to me like the "Graphics through the runtime" item of #2935 and not this issue. It may still be worth refusing `vertex_fetch` pairs here and saying so in the PR. AI-assisted (Claude Code).
consolelogkyo commented 2026-11-26 23:12:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by consolelogkyo on 2026-11-26T23:12:55Z.


Opened https://github.com/R0Y00/Xbox2Windows/pull/2955 for #2933 (verified across all 40 ^native_ checks on WARP and AMD Radeon RX 9070 XT with X2W_D3D12_DEBUG=1). Thanks @Not-Saii for the detailed notes above — incorporated staged VS/PS bytecode publication and revision-literal pinning in the controls check as well.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7205351398 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2933#issuecomment-7205351398). Originally posted by [consolelogkyo](https://github.com/consolelogkyo) on 2026-11-26T23:12:55Z. --- Opened https://github.com/R0Y00/Xbox2Windows/pull/2955 for #2933 (verified across all 40 `^native_` checks on WARP and AMD Radeon RX 9070 XT with `X2W_D3D12_DEBUG=1`). Thanks @Not-Saii for the detailed notes above — incorporated staged VS/PS bytecode publication and revision-literal pinning in the controls check as well. AI-assisted.
MasterDomino commented 2026-11-26 23:23:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T23:23:48Z.


Closed by #2955 (@consolelogkyo), merged into cpp-migration as e3670100. compile_dxil --requests now reads revision-28 requests, including ASCII .psin descriptions, and publishes <key>.{cs,vs,ps}.cso plus a <key>.txt manifest that the runtime loaders parse. Follow-ups (silent manifest refusals, buffer-array check, a sampler word-1 difference, and drawing native pairs through the runtime) are listed in the #2955 review. AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7205505613 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2933#issuecomment-7205505613). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-26T23:23:48Z. --- Closed by #2955 (@consolelogkyo), merged into `cpp-migration` as `e3670100`. `compile_dxil --requests` now reads revision-28 requests, including ASCII `.psin` descriptions, and publishes `<key>.{cs,vs,ps}.cso` plus a `<key>.txt` manifest that the runtime loaders parse. Follow-ups (silent manifest refusals, buffer-array check, a sampler word-1 difference, and drawing native pairs through the runtime) are listed in the #2955 review. AI-assisted.
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
R0Y00/Xbox2Windows#2933
No description provided.