Skip to content

compute: publish d16_sample_srv runtime manifests for direct compute - #3427

Merged
JohnConnorNPC merged 10 commits into
R0Y00:mainfrom
Ammmae0x:compute/d16-sample-srv-manifest
Nov 29, 2026
Merged

JohnConnorNPC merged 10 commits into
R0Y00:mainfrom
Ammmae0x:compute/d16-sample-srv-manifest

Conversation

@Ammmae0x

@Ammmae0x Ammmae0x commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Refs #3224, #2935

From the #3224 census (no runtime manifest: SRV kind d16_sample_srv 2d, 64,499 dispatches): the direct compute translator already lowers D16 sample operations to ComputeViewKind::d16_sample_srv (packing extracted f32 channels into f16 halves via packed_half_rne), and the dispatch runtime already binds srv <i> tex1d|tex2d|tex2da|tex3d table <param> <byte> lines, but format_compute_runtime_manifest() only handled texture_srv, so D16 programs failed with unsupported startup runtime manifest bindings: SRV kind d16_sample_srv 2d.

Scope since #3449: default launcher runs set X2W_NATIVE_SHADERS_ONLY=1 (skipping <key>.txt manifests), and in-process translate_compute_natively (src/startup_stubs/d3d12_compute_dispatch.inl) does not yet accept d16_sample_srv (tracked for follow-up), so the #3224 64,499 dispatches apply to the published -Translate route.

Change

  • src/direct_compute_cache.cpp: format_compute_runtime_manifest() now publishes d16_sample_srv exactly like texture_srv (array_count == 1, image_dimension in {0, 1, 2, 5} -> srv <i> <tex1d|tex2d|tex3d|tex2da> table <param> <byte>). Cube dimensions, arrays (array_count > 1) and comparison samplers still refuse with view_shape("SRV", b) / "comparison sampler". No runtime binding change; src/startup_stubs/d3d12_compute_dispatch.inl and src/native_compute_pipeline.cpp are untouched.
  • tests/native_compute_manifest_reasons.cpp: D16 positives for 1D, 2D, 3D and 2D-array, plus refusals for cube, 2D array and comparison sampler.
  • tests/startup_compute_d16_sample_srv_check.py + tests/cmake/startup_compute_d16_sample_srv.cmake: new source-built test. Case A with one D16 operation spliced before the store (level-zero image_sample_lz of texel 1.5 in 1D, 2.5 in 2D, 14.5 in 2D-array and 10.0 in 3D, each at its texel centre), verified against an independent struct binary16 reference. The Python translator refuses compute D16 loads, so controls and dispatches publish through compile_dxil --requests (native), with no .cs.hlsl fallback; the dispatches reuse the existing dispatch-texdim-* / dispatch-sampled-depth consumer modes. main() gates on render(renderer, adapter, '--shader-wave32') first, so 4-lane WARP exits 77. Refusals: wrong-dimension / undescribed / out-of-fit views, manifest lines rewritten to another dimension, a cube D16 sample, a 2D D16 load and an a16 D16 sample.
  • docs/experiments/compute-d16-sample-srv.md: contract note.

Linux verification (this host; no Windows GPU run claimed)

  • Offline harness (program construction + decoder pinning of the D16 bit, struct binary16 reference, manifest branch/mapping parsed from the source, C++ reasons cases, cmake registration): PASS.
  • tests/form_coverage_check.py: passed. tests/docs_links_check.py: passed (161 Markdown files, 686 links). tests/bidi_controls_check.py: passed (2582 files).
  • 5/5 empirical spot-mutations on throwaway copies each failed as expected (d16 acceptance removed, dim->tex mapping broken, 2D-array texel changed, D16 bit cleared, D16 published line changed), then the copies were discarded and the clean tree re-verified PASS.

Round 3: read texels with image_sample_lz in every dimension (commit 72c70d4)

Windows verification on 315a6bab gave: native_compute_manifest_reasons passed, _warp skipped (exit 77 via --shader-wave32 on 4-lane WARP), 1d passed on hardware (320 words matched the packed half of texel 1.5), and 2d failed at compile_dxil with native compute +0x80: unsupported image dimension or D16. Root cause: the native decoder admits D16 only on sample opcodes (sample_d16 is true for ops 32/34/36/37/39 on non-cube dimensions), so the image_load programs for 2d/2da/3d were refused at decode.

  • tests/startup_compute_d16_sample_srv_check.py: 2d/2da/3d now read their texel with image_sample_lz under the all-zero sampler, like 1d, at normalized texel centres (2D (0.75, 0.5), 2D-array (0.375, 0.625, 2.0) with the slice as an unnormalized float index, 3D (0.875, 0.375, 0.625)). Refusal controls are now a cube D16 sample and a 2D D16 load (both refused by the decoder with unsupported image dimension or D16, pinning the dim != 3 and sample-only gates) and an a16 D16 sample (refused by the translator with packed image addressing).
  • docs/experiments/compute-d16-sample-srv.md: fixture and refusal wording updated.

Linux verification (this host; no Windows GPU run claimed)

  • Offline harness (program construction + decoder pinning of image_sample_lz and the D16 bit, normalized-centre checks, manifest branch/mapping parsed from the source, C++ reasons cases, consumer opt-in, cmake registration): PASS.
  • tests/form_coverage_check.py: passed. tests/docs_links_check.py: passed (162 Markdown files, 688 links). tests/bidi_controls_check.py: passed (2584 files).
  • 5/5 empirical spot-mutations on throwaway copies each failed as expected (programs reverted to image_load, 2D texture width changed, cube refusal reverted to a load, a16 bit cleared, 2D-array slice normalized), then the copies were discarded and the clean tree re-verified PASS.

Round 4: merge upstream/main + review feedback (commit a25d121)

@tedin7 reported on Windows Server 2025 WARP (dev and release): native_compute_manifest_reasons and
startup_compute_d16_sample_srv_controls passed, _warp and _hardware failed with
1d texel 1.5: word 0 expected ea74dd76, read c5c5c5c5. @Leyukaka then requested changes: the failure
message does not say whether the dispatch was refused or ran without writing, and the dim != 3 /
sample-only gates leave dmask:0x3 multi-channel packing unpinned. This round does not claim to fix
the WARP failure itself: it makes the next Windows run name its cause, and closes the coverage gap.

  • Merge upstream/main e3f9a64f into compute/d16-sample-srv-manifest (commit 326946e6).
    Conflicts resolved: src/direct_compute_cache.cpp keeps main's
    if (b.requires_identity_dst_sel) srv_lines << " identity_dst_sel"; in the buffer_srv /
    raw_vector_srv / byte_window_srv branch and (b.kind == ComputeViewKind::texture_srv || b.kind == ComputeViewKind::d16_sample_srv) on the texture-SRV branch;
    tests/native_compute_manifest_reasons.cpp keeps main's packed_d16_x_uav cases and
    binding-based published[] layout, plus all d16_sample_srv positives (4) and refusals; the
    final count is cases (22) + published (12) + 2 = 36. tests/startup_stream_consumer.cpp
    merged cleanly; the only delta vs main there is the X2W_TEST_RECORDS32=1 opt-in.
  • tests/startup_compute_d16_sample_srv_check.py: the Dispatch(3, 2, 2) translated assertion now
    runs before check_words in both post-publication dispatches (via assert_translated), and its
    failure message prints any refused: and x2w-d3d12-debug stderr lines, so a dispatch that did
    not write names its cause instead of hiding behind the word comparison.
  • Consumer inspection (tests/startup_stream_consumer.cpp, dispatch_slot67): no heap-slot or view
    bug found for dispatch-texdim-1d + X2W_TEST_RECORDS32=1. The table holds the input SRV at byte 0,
    the output UAV copied to byte 32 with byte 16 zeroed, and the texture SRV created at byte 64; the
    three ranges do not overlap, and the byte-32 record follows the same copied-record pattern as
    dispatch-records32. Word 0 still holding the sentinel c5c5c5c5 is consistent with the dispatch
    being refused or untranslated after publication, which the reordered assertion now surfaces.
  • New 2D dmask:0x3 case (image_sample_lz v12, v[8:9], s[24:31], s[20:23] dmask:0x3 dim:SQ_RSRC_IMG_2D d16) from the 2x1 RGBA8_UNORM texture (dispatch-sampled-2x1): the right texel
    at (0.75, 0.5) holds R = 1.0, G = 64/255, so the packed word is 0x34043c00 (RNE(1.0) = 0x3c00
    low, RNE(64/255) = 0x3404 high), pinning the two-channel pack and the << 16 second-half shift
    in src/gfx1013_direct_compute.inl. Pinned in both check_compiler (publishes the srv line) and
    the GPU dispatch in check. Correction to the review premise, verified with
    struct.pack('<e', ...) and a simulation of packed_half_rne: truncating 64/255 to binary16 also
    gives 0x3404, so this case pins the packing, not RNE against truncation for G.
  • Wording: sample/load -> sample in the test docstring, the docs note and this body, since
    image_load ... d16 is refused as unsupported image dimension or D16.
  • Known gap, out of scope here: PR CI (ctest --preset pr) builds neither compile_dxil nor
    startup_stream_consumer and its filter matches no startup_compute_d16_sample_srv_* test, so
    green CI does not cover this fixture.

Linux verification (this host; no Windows GPU run claimed)

  • Offline harness (merge pins for both conflicts, manifest-reasons counts, program construction +
    decoder pinning of the D16 bit and the dmask:0x3 encoding, struct binary16 reference,
    assertion order, consumer layout, docs scope): PASS.
  • tests/form_coverage_check.py: passed. tests/docs_links_check.py: passed (174 Markdown files,
    713 links). tests/bidi_controls_check.py: passed (2662 files).
  • 5/5 empirical spot-mutations on throwaway copies each failed as expected (truncating
    packed_half_rne, dropping the << 16 second-half shift, removing d16_sample_srv acceptance,
    reverting the dmask:0x3 encoding to dmask:0x1, moving the translated assertion back after
    check_words), then the copies were discarded and the clean tree re-verified PASS.

Round 5: merge upstream/main (commit d671309)

a25d1217 passed dev ctest on Windows: native_compute_manifest_reasons,
startup_compute_d16_sample_srv_controls and startup_compute_d16_sample_srv_hardware
(including the new dmask:0x3 case) all PASSED; _warp skipped with exit 77.

  • Merge upstream/main 8a30428a into compute/d16-sample-srv-manifest (commit d6713099).
    8a30428a includes the named #3351 / #3454 (c3385469) plus three later merges (#3455,
    #3457, #3458); the merge brings in the cube-sample and indexed-atomic-UAV manifest work.
    Conflicts resolved: tests/startup_stream_consumer.cpp keeps main's
    mode.rfind("dispatch-cube", 0) == 0 alongside the X2W_TEST_RECORDS32=1 output-at-byte-32
    clause on the dispatch_slot67 condition; tests/native_compute_manifest_reasons.cpp keeps
    all of main's cube_* / indexed_atomic_uav cases and published[] rows (including the
    texcubearr row and the indexed atomic publish check) alongside the d16_sample_srv cases,
    with published[] in main's (binding, kind, dim, line) order: 27 cases + 13 published + 3
    = 43 checks. The d16 test and docs note are unchanged in this merge.
  • dmask:0x3 kept as 0x34043c00, untouched. A 2-channel fractional value where RNE differs
    from truncation is not available from the existing fixtures: every channel byte in the shared
    2x1 RGBA8 texture (dispatch-sampled-2x1: 0, 255, 64, 128, 32) rounds identically under RNE
    and truncation, and that texture is shared with startup_compute_dispatch_texture_check.py,
    so a separating value would need a new fixture rather than a one-line change.
  • One merge hazard caught and fixed on Linux: the automatic merge left a duplicate K kind;
    field in the published[] struct and dropped its closing };; both were found by compiling
    the merged test file and repaired in the merge commit.

Linux verification (this host; no Windows GPU run claimed)

  • tests/native_compute_manifest_reasons.cpp (the real test file) compiled and ran on Linux
    against the real format_compute_runtime_manifest + view_kind_name / view_shape source,
    extracted verbatim from src/direct_compute_cache.cpp into a throwaway /tmp file with the
    real platform-independent headers: 0 of 43 manifest reasons wrong, exit 0. The full Windows
    target still needs <d3d12.h> and cannot build here, and no D3D12 stubs were created.
    Negative controls on throwaway copies: dropping d16_sample_srv acceptance fails 5 of 43,
    dropping the cube_sample_srv publish branch fails 1 of 43.
  • Offline merge harness: PASS (no conflict markers, both dispatch_slot67 clauses present,
    all d16 / cube / indexed_atomic_uav cases present, 13 published rows in main's order,
    count +3, dmask:0x3 untouched, git diff --check clean).
  • tests/form_coverage_check.py: passed. tests/docs_links_check.py: passed (175 Markdown files,
    713 links). tests/bidi_controls_check.py: passed (2667 files).
  • git merge-tree --write-tree upstream/main HEAD exits 0.

Round 6: merge upstream/main #3397 + WARP diagnostics (commit 2a8131a)

  • Merge upstream/main 5de0b114 (PR runtime: bind published typed buffer outputs with 32-bit components #3397, typed-buffer UAV) into compute/d16-sample-srv-manifest
    (commit 5eb5cf4d). All 3 one-hunk conflicts resolved keeping both sides:
    src/direct_compute_cache.cpp keeps main's typed_buffer_srv branch
    (srv ... typed table ... bytes) above this PR's
    (texture_srv || d16_sample_srv) branch; tests/native_compute_manifest_reasons.cpp keeps
    main's two typed_buffer_srv refusal cases (required_bytes 20 and 6) alongside the
    d16_sample_srv cube / 2D-array refusals and the comparison-sampler case, and main's
    typed_buffer_uav case (now with required_bytes = 20); the count is now
    29 cases + 13 published + 3 = 45 checks. tests/startup_stream_consumer.cpp keeps main's
    input_offset, dispatch-srv-token-typed and dispatch-records32-input-null terms in the
    output-at-byte-32 condition AND this PR's || (records32 && strcmp(records32, "1") == 0).
    git merge-tree --write-tree upstream/main HEAD exits 0, git diff --check clean.
  • Server 2025 WARP investigation (@tedin7's 1d texel 1.5: word 0 expected ea74dd76, read c5c5c5c5
    on 72c70d48, @Leyukaka's items 1 and 3 still open): every code path the 1d dispatch touches was
    re-read — the test's program / publish / check, the consumer's dispatch-texdim-1d +
    X2W_TEST_RECORDS32=1 + heap (4 descriptors; title_stride == desktop_stride, so on a 64-byte
    WARP increment title byte 64 maps to desktop slot 1, and the 32-byte texture token at byte 64 and
    the 16-byte output record at byte 32 are literal byte reads from title memory, not
    handle-aligned views), the published-route binding in
    src/startup_stubs/d3d12_compute_dispatch.inl (the tex1d slot parses, and the token / slot-18 /
    description / address_view_fits checks all pass for this 1D R32_FLOAT view in code), and the
    d16 image_sample_lz sampleLevel.f32 emission (1 coordinate plus undefs, D16 pack; already
    proven by the Win11 hardware pass on a25d1217). dispatch-cube uses the same output-at-32 /
    SRV-at-64 layout with no material difference. No deterministic WARP or 1D bug was found in code,
    and no runtime result is claimed from any adapter this Linux host did not run: the 72c70d48
    run never captured the refusal reason (check_words hid it), so the failure is still unexplained
    and items 1 and 3 stay open until 2a8131ac is re-run on a Wave32 WARP host (Server 2025 WARP),
    where the assertion below now prints the cause.
  • Diagnostics (commit 2a8131ac, test only): assert_translated now also prints the
    x2w-draw compute lines and the x2w-render compute census lines (first refusal and its
    descriptor words) alongside the refused: and x2w-d3d12-debug lines, and check_words takes
    the dispatch result and prints the draw lines on a word mismatch after a translated dispatch.

Linux verification (this host; no Windows GPU run claimed)

  • tests/native_compute_manifest_reasons.cpp (the real test file) compiled and ran on Linux
    against the real format_compute_runtime_manifest + view_kind_name / view_shape source,
    extracted verbatim from src/direct_compute_cache.cpp into a throwaway /tmp file with the
    real platform-independent headers: 0 of 45 manifest reasons wrong, exit 0. Direct formatter
    probes also publish the typed lines (srv 0 typed table 1 64 bytes 8,
    uav 0 typed table 1 32 bytes 8). The full Windows target still needs <d3d12.h> and cannot
    build here, and no D3D12 stubs were created.
  • Offline harness: PASS (program() builds and decodes for all four kinds plus 2d dmask:0x3,
    sample centres incl. the unnormalized 2D-array slice 2.0, DMASK3_PACKED == 0x34043c00,
    consumer condition terms, assert_translated / check_words messages naming the
    refused/debug/draw/census lines on a fake refused result). 5/5 empirical spot-mutations on
    throwaway copies each failed as expected (drop d16_sample_srv acceptance, drop the
    typed_buffer_srv branch, drop the RECORDS32 term, drop the draw/census lines from
    assert_translated, normalize the 2D-array slice), then the copies were discarded and the
    clean tree re-verified PASS.
  • tests/form_coverage_check.py: passed. tests/docs_links_check.py: passed (176 Markdown files,
    713 links). tests/bidi_controls_check.py: passed (2667 files).
  • git merge-tree --write-tree upstream/main HEAD exits 0.

Windows Verification

  • Commit: 2a8131acc35ff7496f0e5839f773f6694e613761
  • Preset dev: ctest --preset dev --no-tests=error -R '^(native_compute_manifest_reasons|startup_compute_d16_sample_srv_(controls|warp|hardware))$' --output-on-failure -> 3 passed, 0 failed, 1 skipped (21.23s; manifest_reasons 3.82s, controls 1.06s, warp skipped exit 77 on 4-lane WARP, hardware 11.86s)
  • Preset release: ctest --preset release --no-tests=error -R '^(native_compute_manifest_reasons|startup_compute_d16_sample_srv_(controls|warp|hardware))$' --output-on-failure -> 3 passed, 0 failed, 1 skipped (13.45s; manifest_reasons 0.22s, controls 0.83s, warp skipped exit 77, hardware 11.53s)
  • Regression (dev): startup_compute_dispatch_texture_dims_(warp|hardware) & startup_compute_indexed_atomic_uav_hardware -> 3 passed, 0 failed (2.74s, 8.33s, 4.42s)
  • Hardware adapter: NVIDIA GeForce RTX 4050 Laptop GPU (10de:28e1), driver 32.0.15.9186 (debug layer unavailable)
  • Repo checks: form_coverage_check.py, docs_links_check.py (176 Markdown files, 713 links), and bidi_controls_check.py (2667 files) passed.
1/4 Test #2574: native_compute_manifest_reasons ...........   Passed    3.82 sec
2/4 Test #2890: startup_compute_d16_sample_srv_controls ...   Passed    1.06 sec
3/4 Test #2891: startup_compute_d16_sample_srv_warp .......***Skipped   0.57 sec
4/4 Test #2892: startup_compute_d16_sample_srv_hardware ...   Passed   11.86 sec

AI-assisted.

Full-wave fix (dfc140ed, addresses @Leyukaka's change request item 3 and @JohnConnorNPC's MUST #1)

Root cause (confirmed by @Leyukaka's WARP 1.0.22 run): case A's (2, 3, 4) group is 24 threads, a partial
wave under WaveSize(32) that fails WaveActiveBallot(true) (#3160), so no store reaches the UAV. This
PR's layout was not the cause (main fails the same way without it). Option 1, as both reviewers
preferred: dispatch a full 32-thread wave and pass.

  • tests/startup_stream_consumer.cpp: dispatch_slot67 reads X2W_TEST_FULL_WAVE=1 and dispatches
    3x3x1 groups instead of 3x2x2; every other caller keeps 3x2x2.
  • tests/startup_compute_d16_sample_srv_check.py: GROUP = (8, 4, 1), GROUPS = (3, 3, 1), index
    (tgid_x + 3 * tgid_y) * 32 + (v0 + 8 * v1) (same 288 words, same 32 trailing sentinels),
    env['X2W_TEST_FULL_WAVE'] = '1', log assertions Dispatch(3, 3, 1); new no-arg controls()
    pins the full-wave encoding, [numthreads(8, 4, 1)], DMASK3_PACKED == 0x34043c00 and the texel
    model, wired in tests/checks/python-linux/d16-sample-srv-manifest.txt for Linux CI.
  • docs/experiments/compute-d16-sample-srv.md: documents the 8x4x1 / 3x3x1 fixture.
  • Merged origin/main d3e306a7 cleanly (merge c13fc8d8, git merge-tree --write-tree exits 0).

Linux verification (this host cannot run Windows CTest or compile_dxil):

  • tests/startup_compute_d16_sample_srv_check.py (no-arg controls): passed.
  • tools/run_checks_parallel.py --from-dir tests/checks/python-linux: all 59 checks passed (58 + the new d16 check).
  • tests/form_coverage_check.py, tests/docs_links_check.py (177 files, 716 links),
    tests/bidi_controls_check.py (2678 files): passed. git diff --check: clean.
  • 13/13 spot-mutations killed on /tmp copies (group/groups/index/dmask/texel/log-assertion/env-flag/
    no-arg-entry/consumer-branch), then the copies were discarded.

The 2a8131ac run passed with _warp skipping 77 on 4-lane WARP; this head needs a wave32 WARP host
(Server 2025 / WARP 1.0.22) to exercise the fix.

AI-assisted.

Windows Verification (dfc140e)

Commit: dfc140ed80d731f540f2ee0680fe62d9192c0ffe
Adapter: NVIDIA GeForce RTX 4050 Laptop GPU (driver 32.0.15.9186)
dev: cmake --build --preset dev --target compile_dxil native_compute_manifest_reasons startup_stream_consumer offscreen_check
dev: ctest --preset dev --no-tests=error -R '^(native_compute_manifest_reasons(_requests)?|startup_compute_d16_sample_srv_(controls|warp|hardware))$' --output-on-failure -> 4 passed, 1 skipped (23.61s)
release: cmake --build --preset release --target compile_dxil native_compute_manifest_reasons startup_stream_consumer offscreen_check
release: ctest --preset release --no-tests=error -R '^(native_compute_manifest_reasons(_requests)?|startup_compute_d16_sample_srv_(controls|warp|hardware))$' -E 'cpu_native_archive_' --output-on-failure -> 4 passed, 1 skipped (16.38s)
Skips (exit 77): Win11 inbox WARP has no 32-lane waves (startup_compute_d16_sample_srv_warp)
Checks: startup_compute_d16_sample_srv_check.py, form_coverage_check.py, docs_links_check.py (177 files, 716 links), bidi_controls_check.py (2678 files) -> passed

AI-assisted.

@Ammmae0x
Ammmae0x marked this pull request as ready for review November 29, 2026 01:50

@Leyukaka Leyukaka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 72c70d48 by reading the diff against main 212d4b5f. No local build or run.

The formatter change (src/direct_compute_cache.cpp:960-961) gives d16_sample_srv the same shape gate (array_count == 1, dimension 0/1/2/5) and the same srv <i> tex1d|tex2d|tex3d|tex2da line as texture_srv. That matches the producer: the decoder admits D16 only on sample ops 32/34/36/37/39 outside cube (src/gfx1013_compute_native.cpp:190-194), so D16 loads, gathers and comparison samples are refused before the formatter, and the translator packs each sampled f32 channel with packed_half_rne (src/gfx1013_direct_compute.inl:1279-1290). src/native_compute_pipeline.cpp:36-48 treats every non-heap SRV kind alike, consistent with no runtime change.

Tests: the comparison sampler case in native_compute_manifest_reasons discriminates. On main that program is refused earlier as SRV kind d16_sample_srv 2d, so the case fails there. By reading, dropping the new d16_sample_srv clause also fails the four D16 published rows and the publish step of the dispatch test. The D16 cube and array cases pass on main too; they pin the shape gate.

Not covered:

  • CI does not run these tests. PR CI builds and tests with the pr presets: the build preset has none of compile_dxil, startup_stream_consumer, native_compute_manifest_reasons, and the test filter matches none of native_compute_manifest_reasons or startup_compute_d16_sample_srv_*. The evidence is the log in the description, where _warp is skipped (exit 77) and the dispatch is checked by _hardware only; CI on main excludes _hardware$.
  • Two mutations of existing code in src/gfx1013_direct_compute.inl (unchanged here) would pass the new fixture. :1284 "16" -> "0": every fixture uses dmask:0x1, so no pair of halves is formed. :1280 packed_half_rne -> truncation: every texel (1.5, 2.5, 14.5, 10.0) is exact in binary16. Suggestion, here or in a follow-up: one dmask:0x3 sample of a value that needs rounding pins both.
  • Wording: the doc (:3) and the test docstring (:1, :8) say "sample and load" / "sampled or loaded", while D16 loads are refused, as the doc says at :37-39.

Overlap: #3398 edits the same published[] table in tests/native_compute_manifest_reasons.cpp (a binding column and UAV rows there, a kind column here); whichever lands second combines the two.

Approve 72c70d48.

@tedin7 tedin7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 72c70d48b8d03f6766ee28e88781115726815b43:

Running the PR's tests on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) failed in both Debug and Release:

  • ctest --preset dev -R '^(startup_compute_d16_sample_srv_|native_compute_manifest_reasons$)' --parallel 3 --no-tests=error --output-on-failure: 2/4 passed, 2 failed (native_compute_manifest_reasons and startup_compute_d16_sample_srv_controls passed; startup_compute_d16_sample_srv_warp and startup_compute_d16_sample_srv_hardware both failed with AssertionError: 1d texel 1.5: word 0 expected ea74dd76, read c5c5c5c5).
  • ctest --preset release -R '^(startup_compute_d16_sample_srv_|native_compute_manifest_reasons$)' --parallel 3 --no-tests=error --output-on-failure: 2/4 passed, 2 failed (same failure: 1d texel 1.5: word 0 expected ea74dd76, read c5c5c5c5).

AI-assisted; commands listed were executed locally.

@Leyukaka Leyukaka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This replaces my approval of 72c70d48, until the failure in the report above is explained. By reading only, no local build or run.

  • Failing step: the second dispatch in check() (tests/startup_compute_d16_sample_srv_check.py:234-235). The first dispatch was refused with no translation and publish() passed, so the manifest has srv 1 tex1d table 1 64, srv 0 buf table 1 0 and uav 0 table 1 32, and there is no .cs.hlsl. Word 0 still holding the sentinel c5c5c5c5 means the dispatch after publication did not write it. The formatter change is not what fails.
  • check_words (:235) runs before the Dispatch(3, 2, 2) translated assertion (:236), so the message does not say whether the runtime refused the dispatch or ran it without the stores reaching the output.
  • In the description _warp exits 77 at the --shader-wave32 gate, so the dispatch was shown on one hardware adapter. In the report _warp gets past that gate (check() runs only after it) and fails like _hardware.
  • Green CI does not cover this. PR CI runs cmake --build --preset pr and ctest --preset pr (.github/workflows/windows.yml). In CMakePresets.json on main 2397aad3, the pr build preset targets list has neither compile_dxil nor startup_stream_consumer, and the pr test filter matches no startup_compute_d16_sample_srv_*.

Hypothesis, not a finding: X2W_TEST_RECORDS32=1 (new here) puts the output descriptor at table byte 32 while dispatch-texdim-1d creates the texture view at byte 64. tests/startup_stream_consumer.cpp:447 and :914 say byte 32 is not a descriptor handle where the heap increment is above 32 (WARP). Those comments are about views created at a handle; here byte 32 holds a copied record, as in dispatch-records32, so this only points at the layout as the adapter-dependent part.

Requested:

  1. The stderr of the failing 1d dispatch: the refused: line or its absence, and any x2w-d3d12-debug lines.
  2. The translated assertion before check_words, so the failure names its cause.
  3. A fix, or the reason the result depends on the adapter.

@JohnConnorNPC

Copy link
Copy Markdown
Collaborator

Review of head 72c70d48 against main af1cab5c (the merge-base is 212d4b5f). Read only, nothing built or run.

MUST

  1. This conflicts with main. git merge-tree --write-tree --name-only origin/main 72c70d48 exits 1 with CONFLICT (content): Merge conflict in src/direct_compute_cache.cpp, in one hunk. main's srv … buf table writer now appends identity_dst_sel (if (b.requires_identity_dst_sel)) just above this PR's (b.kind == ComputeViewKind::texture_srv || b.kind == ComputeViewKind::d16_sample_srv) condition. To resolve, keep main's block and this PR's condition. Please rebase.
  2. The Windows Server WARP/hardware failure (1d texel 1.5: word 0 expected ea74dd76, read c5c5c5c5) and the change request after it are still open. There has been no reply and no new commit since, and the head is still 72c70d48.

SHOULD

  1. No effect on the default launcher path. Since runtime: default to native shaders and Opus decoding #3449, run.sh and run.ps1 set X2W_NATIVE_SHADERS_ONLY=1, and load_compute_translation returns at if (native_shaders_only()) { before it reads <key>.txt. So in a default run nothing reads the new srv <i> tex1d|tex2d|tex3d|tex2da lines for D16. The in-process route has no D16 case either. In translate_compute_natively, texture_input accepts only texture_srv or comparison_texture_srv at image_dimension == 1, so d16_sample_srv (enum value 17) is thrown as view kind 17 is not bound for a natively translated program. The 64,499 dispatches in the body are a published-route count, and default runs will keep refusing those shaders. Please state this in the body and the doc. A native-route binding, here or in a follow-up issue, is what would recover them by default.

AI-assisted.

Merge origin/main e3f9a64 (upstream in this clone is remote origin,
R0Y00/Xbox2Windows). Conflicts resolved: keep main's
requires_identity_dst_sel in the buffer-SRV branch and d16_sample_srv
alongside texture_srv on the texture-SRV branch in
format_compute_runtime_manifest, and main's binding-based published[]
layout in native_compute_manifest_reasons with the d16_sample_srv
positives added.
- tests/startup_compute_d16_sample_srv_check.py: assert
  'Dispatch(3, 2, 2) translated' before check_words in both
  post-publication dispatches, with any 'refused:' and
  'x2w-d3d12-debug' stderr lines in the failure message, so a
  dispatch that did not write names its cause instead of hiding
  behind the word comparison.
- Add a 2D dmask:0x3 sample from the 2x1 RGBA8_UNORM texture
  (dispatch-sampled-2x1): right texel R 1.0 / G 64/255 packs to
  0x34043c00, pinning the two-channel pack and the << 16
  second-half shift; published in check_compiler and dispatched
  in check. Fix 'sample/load' wording to 'sample'.
- docs/experiments/compute-d16-sample-srv.md: same wording fix,
  dmask:0x3 fixture, and scope since R0Y00#3449 (default launcher runs
  set X2W_NATIVE_SHADERS_ONLY=1; in-process
  translate_compute_natively does not yet accept d16_sample_srv,
  so the 64,499 dispatches apply to the published -Translate
  route).
Merge origin/main 8a30428 (upstream in this clone is remote origin,
R0Y00/Xbox2Windows), which includes R0Y00#3351 and R0Y00#3454. Conflicts resolved:
tests/startup_stream_consumer.cpp keeps main's
mode.rfind("dispatch-cube", 0) == 0 alongside the
X2W_TEST_RECORDS32=1 output-at-byte-32 clause on the dispatch_slot67
condition; tests/native_compute_manifest_reasons.cpp keeps all of main's
cube_* / indexed_atomic_uav cases and published[] rows (including the
texcubearr row and the indexed atomic publish check) alongside the
d16_sample_srv cases, with published[] in main's (binding, kind, dim,
line) order: 27 cases + 13 published + 3 = 43 checks. The d16 test and
docs note are unchanged in this merge.
@Ammmae0x

Copy link
Copy Markdown
Contributor Author

Addressed review items and merge conflicts in d6713099 (clean merge over upstream/main 8a30428a):

  • Merge conflicts (@JohnConnorNPC MUST Run the native wave64 BVH fixture on a supported Windows GPU #1): Resolved src/direct_compute_cache.cpp (identity_dst_sel kept alongside d16_sample_srv), tests/native_compute_manifest_reasons.cpp (kept main's packed_d16_x_uav/cube_*/indexed_atomic_uav cases and texcubearr/atomic publish checks alongside d16_sample_srv, 0 of 43 failures), and tests/startup_stream_consumer.cpp (dispatch-cube kept alongside X2W_TEST_RECORDS32=1).
  • Diagnostic ordering & consumer layout (@Leyukaka CHANGES_REQUESTED Run the native wave64 BVH fixture on a supported Windows GPU #1–2 / @tedin7 report): Moved assert_translated (Dispatch(3, 2, 2) translated) before check_words() in tests/startup_compute_d16_sample_srv_check.py so any refused dispatch logs refused: and x2w-d3d12-debug lines directly instead of masking behind read c5c5c5c5. Re-verified dispatch_slot67 + X2W_TEST_RECORDS32=1 writes byte 32 without colliding with byte 64. (On this Windows 11 host, 4-lane inbox WARP 10.0.26100.7309 skips via --shader-wave32 with exit 77; RTX 4050 passes in both dev and release.)
  • 2-channel dmask:0x3 packing & wording (@Leyukaka coverage gap): Added a 2D dmask:0x3 case (dispatch-sampled-2x1, 0x34043c00) pinning two-channel packing and the << 16 half shift in both _controls and _hardware, and fixed docstring/doc wording (sample and load -> sample).
  • Default launcher scope (@JohnConnorNPC SHOULD Publish English contributor guides and scope the GTA VI XSX case study #3): Added scope note in the PR body and docs/experiments/compute-d16-sample-srv.md explaining X2W_NATIVE_SHADERS_ONLY=1 since #3449 and noting translate_compute_natively remains a separate follow-up.

Windows verification (d6713099): dev (20.21s) and release (13.53s) both 3/4 passed (native_compute_manifest_reasons, startup_compute_d16_sample_srv_controls, startup_compute_d16_sample_srv_hardware), 1 skipped (startup_compute_d16_sample_srv_warp exit 77 via --shader-wave32); form_coverage_check.py, docs_links_check.py (175 files / 713 links), and bidi_controls_check.py (2663 files) passed.

AI-assisted.

@JohnConnorNPC

Copy link
Copy Markdown
Collaborator

Re-review of head d6713099 (the delta since 72c70d48) against main 5de0b114. Read only, nothing built or run.

MUST

  1. This conflicts with main again now that runtime: bind published typed buffer inputs with 32-bit components #3386 and runtime: bind published typed buffer outputs with 32-bit components #3397 have landed. git merge-tree --write-tree --name-only origin/main d6713099 exits 1 with conflicts in src/direct_compute_cache.cpp, tests/native_compute_manifest_reasons.cpp and tests/startup_stream_consumer.cpp, one hunk each. All three resolve by keeping both sides:
    • main's new typed_buffer_srv branch (srv … typed table … bytes) goes above this PR's (texture_srv || d16_sample_srv) condition.
    • main's two SRV kind typed_buffer_srv cases sit next to the D16 cases.
    • In the consumer, keep main's input_offset, dispatch-srv-token-typed and dispatch-records32-input-null terms and add this PR's X2W_TEST_RECORDS32 check.
  2. The Windows Server 2025 WARP failure (1d texel 1.5: word 0 expected ea74dd76, read c5c5c5c5) is still unexplained, and the change request after it is still open. Moving assert_translated ahead of check_words covers its item 2. Items 1 and 3 are still open: the failing run's stderr, and a fix or the reason the result depends on the adapter. The new verification ran on a host where _warp exits 77 at the --shader-wave32 gate, so it never reached the dispatch that failed on the other host. Running d6713099 on that host would settle it, since the assertion now prints the refused: and x2w-d3d12-debug lines.

Resolved since 72c70d48

  • SHOULD 3: the body and docs/experiments/compute-d16-sample-srv.md now say that the 64,499 dispatches are on the published route, because X2W_NATIVE_SHADERS_ONLY=1 has been set since runtime: default to native shaders and Opus decoding #3449. They also say that translate_compute_natively is a follow-up.
  • The new dmask:0x3 case matches the consumer's texture. In dispatch-sampled-2x1 the right texel is {255, 64, 128, 32}, so R 1.0 and G 64/255 pack to 0x34043c00. The note that truncation gives the same G half is correct: 64/255 is about 4.02 binary16 steps above 0.25, which gives 0x3404 either way.

AI-assisted.

@Leyukaka

Copy link
Copy Markdown
Collaborator

Ran d6713099 and main 5de0b114 on WARP 1.0.22. The _warp failure reproduces, and main fails the same way without this PR.

Setup: Windows 11 build 26300, dev preset with -DX2W_WITH_OPUS=OFF, full build. WARP 1.0.22 comes from the Microsoft.Direct3D.WARP NuGet package, placed next to the test executables. Hardware adapter: NVIDIA GeForce RTX 5080, driver 32.0.16.2101.

d6713099, ctest --preset dev --no-tests=error -R '^startup_compute_d16_sample_srv_':

startup_compute_d16_sample_srv_controls   Passed
startup_compute_d16_sample_srv_warp       ***Failed
startup_compute_d16_sample_srv_hardware   Passed
AssertionError: 1d texel 1.5: word 0 expected ea74dd76, read c5c5c5c5

The traceback ends in check_words (tests/startup_compute_d16_sample_srv_check.py:276), after assert_translated at :275. So the dispatch was translated, not refused, and no store reached the output. The debug layer was unavailable in this environment, so there are no x2w-d3d12-debug lines.

main 5de0b114, ctest --preset dev --no-tests=error -R '^startup_compute_dispatch_native_':

startup_compute_dispatch_native_warp       ***Failed
startup_compute_dispatch_native_hardware   Passed
AssertionError: word=0 got=c5c5c5c5 expected=00000400 (288 words differ)

This is scalar_window_case (tests/startup_compute_dispatch_native_check.py:120). Its stderr has Dispatch(3, 2, 2) translated and first refusal: none. It uses no sampler, no D16 view and no X2W_TEST_RECORDS32, so the byte-32 layout hypothesis from my change request does not hold, and the WARP failure is not caused by this PR.

Likely cause: a partial wave under WaveSize(32) on WARP 1.0.22 (#3160). Both tests dispatch case A, group (2, 3, 4), which is 24 threads (tests/startup_gfx2hlsl_compute_check.py:713). On 5de0b114 the lowering sets EXEC from waveActiveBallot(true) (src/gfx1013_direct_compute.inl:287) and takes every buffer and image store only when EXEC & (1 << waveGetLaneIndex()) is non-zero (:176-179, :863-866, :1356-1359). A ballot that lacks the lane's bit skips every store, which matches both logs. On the same WARP, native_ds_bpermute_warp from #3320 dispatches 32 threads per group and passes. The repo already notes this at tests/native_int32_minmax3_check.py:10: "Full physical waves avoid the WARP 1.0.22 partial-wave ballot issue (#3160)".

Not measured: the ballot and lane index values WARP returns. The cause is inferred from the code and the pass/fail pattern.

Option the repo already uses: dispatch a full 32-thread group in the test, as native_int32_minmax3_check.py does. Otherwise make _warp skip this dispatch with exit 77 and a message that names #3160.

Change request: items 1 and 2 are answered by the above and by the reordered assertion. Item 3 is closed once _warp either dispatches a full wave and passes, or skips cleanly, on WARP 1.0.22. I will re-run that head and lift the change request if _warp no longer fails and nothing else regresses. The conflict with main reported above still needs a rebase.

…v-manifest

# Conflicts:
#	src/direct_compute_cache.cpp
#	tests/native_compute_manifest_reasons.cpp
#	tests/startup_stream_consumer.cpp
…ures

The Server 2025 WARP 1d failure (word 0 kept the sentinel) was reported
against 72c70d4, where check_words ran before any translated assertion,
so the run never said whether the runtime refused the dispatch or ran it
without the stores reaching the output. d671309 moved
assert_translated ahead of check_words; this prints every line that can
name the cause on failure (the refused: line, the x2w-d3d12-debug lines,
the x2w-draw compute pipeline lines and the compute census with its first
refusal and descriptor words), and the same draw lines on a word
mismatch after a translated dispatch.
@Ammmae0x

Copy link
Copy Markdown
Contributor Author

Addressed @JohnConnorNPC's review on d6713099 (IC_kwDOV10-fc8AAAABsJTa_Q) across 5eb5cf4d..2a8131ac:

  • Merge conflicts (MUST #1): Merged upstream/main (5de0b114, including #3386 & #3397) cleanly in 5eb5cf4d, preserving both main's typed_buffer_srv/typed_buffer_uav manifest branches/cases and input_offset/dispatch-srv-token-typed/dispatch-records32-input-null alongside d16_sample_srv and X2W_TEST_RECORDS32. git merge-tree --write-tree over 5de0b114 exits 0.
  • Server 2025 WARP diagnostics (MUST #2): 2a8131ac extends assert_translated and check_words in tests/startup_compute_d16_sample_srv_check.py to print refused:, x2w-d3d12-debug, x2w-draw compute, and x2w-render compute census lines on failure so any run on a Wave32 WARP host reports the exact refusal or binding state directly. Local Windows 11 WARP (10.0.26100.7309, 4..4) still exits 77 at --shader-wave32 and cannot reproduce the Server 2025 WARP failure locally.
  • Windows verification (2a8131ac): Passed dev (3 passed, 1 skipped, 21.23s), release (3 passed, 1 skipped, 13.45s), regressions (3/3, 15.60s), and repo Python checks (176 docs / 2667 files) on NVIDIA GeForce RTX 4050 Laptop GPU (10de:28e1), driver 32.0.15.9186.

AI-assisted.

@JohnConnorNPC

Copy link
Copy Markdown
Collaborator

Re-review at 2a8131ac, covering the delta since d6713099: the merge 5eb5cf4d and the diagnostics commit 2a8131ac. Read only, nothing built or run.

Resolved

  • MUST 1 (conflict). git merge-tree --write-tree origin/main 2a8131ac exits 0 on main cf0c30af. The 5eb5cf4d resolution keeps both sides. main's typed_buffer_srv/_uav branches and cases stay, and in dispatch_slot67 the consumer still has main's input_offset, dispatch-srv-token-typed and dispatch-records32-input-null terms, with X2W_TEST_RECORDS32=1 added as one more term. Comparing git diff 5de0b114...d6713099 with git diff 5de0b114 5eb5cf4d, the only difference is that line's new wrapping.
  • The extra failure lines in 2a8131ac use prefixes the runtime prints. git grep -c -F over src/tools finds x2w-draw compute (15), x2w-render compute census (5) and x2w-d3d12-debug (1).

MUST (still open)

  1. _warp still fails on WARP 1.0.22, and nothing at this head handles it. The 15:10Z WARP run gives the cause. The run is translated (assert_translated passes), and main 5de0b114 fails startup_compute_dispatch_native_warp the same way. Both dispatch case A with a 24-thread group, so this is the partial-wave ballot issue under WaveSize(32) (native compute: run wave32 direct modules on WARP (proposal, stage 1 claimed) #3160), not this PR's layout. 2a8131ac only adds diagnostics, and it was checked on a WARP that exits 77 at --shader-wave32, so it doesn't reach the failing dispatch. To close it and the open change request (item 3), do one of these on WARP 1.0.22:

Still not blocking: CI is green on 2a8131ac, but the pr preset runs none of the startup_compute_d16_sample_srv_* tests.

Not merged: MUST 1 is open and the change request is standing.

AI-assisted review.

Case A's (2, 3, 4) group is 24 threads, a partial wave under WaveSize(32)
that fails WaveActiveBallot(true) on WARP 1.0.22 (R0Y00#3160), so no store
reaches the UAV. The fixture now uses GROUP (8, 4, 1) with 3x3x1 groups and
the index (tgid_x + 3 * tgid_y) * 32 + (v0 + 8 * v1), covering the same
288 words, and dispatch_slot67 dispatches 3x3x1 groups when
X2W_TEST_FULL_WAVE=1, leaving every other caller at 3x2x2. A no-arg
controls() entrypoint pins the full-wave encoding, the dmask:0x3 pack and
the texel model, and runs in Linux CI via d16-sample-srv-manifest.txt.
@Ammmae0x

Copy link
Copy Markdown
Contributor Author

Addressed @Leyukaka's CHANGES_REQUESTED (IC_kwDOV10-fc8AAAABsJp-vQ) and @JohnConnorNPC's MUST #1 (IC_kwDOV10-fc8AAAABsJ9ikw) in dfc140ed (cleanly merged with upstream/main d3e306a7):

  • Switched tests/startup_compute_d16_sample_srv_check.py from the 24-thread partial wave (2, 3, 4) to a full 32-thread wave GROUP = (8, 4, 1) with GROUPS = (3, 3, 1) (288 active words, 32 trailing sentinels) and X2W_TEST_FULL_WAVE=1 in tests/startup_stream_consumer.cpp, avoiding the WARP 1.0.22 partial-wave ballot issue (#3160) under [WaveSize(32)].
  • Added pure-Python no-arg controls() wired into Linux CI (tests/checks/python-linux/d16-sample-srv-manifest.txt) and updated docs/experiments/compute-d16-sample-srv.md.
  • Windows verification (dfc140ed, NVIDIA GeForce RTX 4050 Laptop GPU, driver 32.0.15.9186): dev 4 passed / 1 skipped (23.61s), release 4 passed / 1 skipped (16.38s; Win11 WARP skips 77 without 32-lane waves), and startup_compute_d16_sample_srv_check.py, form_coverage_check.py, docs_links_check.py, bidi_controls_check.py all pass. Needs re-run on a Wave32 WARP 1.0.22 host to confirm _warp there.

AI-assisted.

@JohnConnorNPC

Copy link
Copy Markdown
Collaborator

Re-review of head dfc140ed (the delta c13fc8d8..dfc140ed, since 2a8131ac) against main 5b86df1d. I only read the code; I built and ran nothing.

No new MUST. The open MUST from the last round, the WARP 1.0.22 _warp failure, is fixed in code the way the change request suggested: the fixture now dispatches a full 32-thread wave. Nobody has seen _warp pass on a WARP 1.0.22 host yet, though. The author's WARP exits 77 at --shader-wave32, and PR CI doesn't run these tests (the Windows job runs the 82-test pr preset, and startup_compute_d16_sample_srv appears 0 times in its log). Item 3 of the change request is still waiting on the re-run that its author offered. Nothing else is needed from my side.

Checked in the delta

  • The (8, 4, 1) group is one full wave under WaveSize(32). I decoded the replacement bytes by hand. 030043d5 01110104 is v_mad_u32_u24 v3, v1, 8, v0 (VOP3 0x143, src1 is inline 8). 14a01493 is s_mul_i32 s20, s20, 32 (SOP2 op 38, ssrc1 0xa0 = 32).
  • The word index (tgid_x + 3 * tgid_y) * 32 + (v0 + 8 * v1) covers words 0..287 once each over 3x3x1 groups. Case A's stored value depends only on v3 (input[v3] * 33 ^ (s4 + v3 * s5)), so C.expected('A') and the 32 trailing sentinels still hold.
  • with_full_wave_index asserts that the old sequence occurs exactly once. program() moves the decoded window by the length difference, and that window is still asserted step by step.
  • X2W_TEST_FULL_WAVE changes only the consumer's default invoke(list, 14, ...) branch, and only this check sets it (git grep X2W_TEST_FULL_WAVE). The Dispatch(3, 3, 1) translated and Dispatch(3, 3, 1) refused: no translation assertions read the runtime's Dispatch(%u, %u, %u) log line. If the consumer ignored the variable, the check would fail rather than pass at 3x2x2.
  • The new no-arg controls() runs in the Linux Python job. Its log has tests/startup_compute_d16_sample_srv_check.py (ok, 1.7s) and all 267 checks passed.
  • git merge-tree --write-tree --name-only origin/main dfc140ed exits 0 on 5b86df1d. Since the merge base d3e306a7, both sides touch only src/direct_compute_cache.cpp. main changed the decode bound and view_kind_name. This PR changes the manifest's texture_srv || d16_sample_srv condition, which is separate from both.
  • Scope: default runs are unaffected. Since runtime: default to native shaders and Opus decoding #3449, run.sh and run.ps1 export X2W_NATIVE_SHADERS_ONLY=1, and load_compute_translation returns before it reads any manifest. Only runs on the published -Translate route read these lines.

AI-assisted.

@Leyukaka Leyukaka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve dfc140ed. This replaces my change request on 72c70d48, which asked for the stderr of the failing 1d dispatch, the translated assertion before check_words, and a fix or the reason the result depends on the adapter.

  • Assertion order: assert_translated (tests/startup_compute_d16_sample_srv_check.py:311-320) runs before check_words after publication and prints the refused:, x2w-d3d12-debug, x2w-draw compute and census lines.
  • Fix: the fixture now dispatches a full 32-thread wave, GROUP = (8, 4, 1) and GROUPS = (3, 3, 1) (check.py:128-134), still 288 written words. X2W_TEST_FULL_WAVE=1 changes only the default dispatch branch (tests/startup_stream_consumer.cpp:908-909), and the script asserts on Dispatch(3, 3, 1), so an ignored variable fails.
  • Run at dfc140ed in an isolated environment (network off, PR tree read-only, dev preset, -DX2W_WITH_OPUS=OFF): ctest --preset dev --no-tests=error -R '^startup_compute_d16_sample_srv_' exits 0. _controls passed, _hardware passed (5 cases, 320 words each, debug layer unavailable), _warp skipped (77).
  • _warp printed adapter=Microsoft Basic Render Driver vendor=1414 device=008c, driver=10.0.26100.9818, native_lane_range=4..4, then skip: shader wave32 fixture requires SM 6.6, WaveOps, and a 32-lane wave. The WARP path is therefore still unobserved here: this run does not show the full-wave dispatch passing on the WARP that failed in the earlier report.
  • The _hardware output prints no adapter or driver line, so that adapter is not identified by the log.

@JohnConnorNPC
JohnConnorNPC merged commit ff9dcef into R0Y00:main Nov 29, 2026
5 checks passed
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.

4 participants