mesh86: publish a PS-less mesh SRV table profile #3803

Merged
lambirou merged 6 commits from upstream-pr/3803 into main 2026-12-03 15:24:16 +00:00
lambirou commented 2026-12-02 00:21:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-02T00:21:27Z.


ProblemnnSlot 86 DispatchMesh requests can arrive with no pixel stage. The translator compiled the mesh stage, but every published profile refused the request:nn- --prove-root-srv and --prove-texture1d-map require a pixel stage;n- --heap-bufferrequires at least onecreateHandleFromHeap read;n- --prove-root-constants refuses the mesh stage's SRVs.nnThe cache at _wt/agent-b-86-evidence/out/startup/shader_cache currently holds 3,876 req_*.m86 files: 987 have an empty .ps86, 2,889 have a pixel stage. Of the 987 PS-less requests, 614 reached the heap proof and now translate when the mesh stage has no direct heap read, 357 stop earlier in mesh translation, 10 index only the sampler heap, and 6 stop at the root-constants proof.nn## DesignnnAdds profile 6, a PS-less mesh SRV table marker. The publisher dumps only the mesh stage and accepts the profile only when:nn- every binding is a DXIL texture byte r/o SRV, t0..tN-1;n- every desktop SRV handle is either createHandleFromBindingfor onetNin space 0, or the single legacycreateHandle(rangeId=0) form of a version-1 root SRV;n- the plan's guest root parameter exists and is a descriptor table or root SRV (32-byte-aligned table record inside the runtime bound, offset 0 for a root SRV);n- the mesh stage contains no createHandleFromHeap read.nnThe marker stores constant andsrv lines. The runtime builds a synthetic root with the plan's constants and flat SRV table and reusesbind_native_mesh86 to resolve each record; an unusable record refuses the draw. Existing profile 1/2/3/4/5 output is unchanged, and PS-full requests still use the old paths.nnThe source-built depth case accepts exactly the two D16 quantizations of 0.5 used by conforming adapters: 0x8000and0x7fff. Clear and all other depth expectations remain exact. The WARP wrapper propagates nonzero exits; a capability skip is accepted only when the fixture itself reports 77. A device removal after DispatchMesh therefore stays a visible test failure.nn## Validationnn- Real PS-less request 08dc8a7b1c8fd5datranslated to profile 6 withconstant 4 2 and seven SRV lines (t0..t6), including a root SRV and descriptor-table records. Request bytes were not committed.n- startup_mesh86_psless_hardware passes: the source-built mesh-only root SRV reads 0x12345678 and writes D16 depth 0.5; negative controls cover a missing proof, an unproven/missing SRV, a bad table offset and a pixel-stage attempt. The expected depth set is {0x7fff, 0x8000}, with a negative control at 0x8001.n- startup_mesh86_translate_hardware passes (PS-full profile 4 unchanged).n- startup_mesh86_srv_proof passes (PS-full profile 2 unchanged).n- WARP 10.0.26100.10068records DispatchMesh and then removes the device atmap argument readback failed (HRESULT 0x887a0005). The corrected runner reports this as Failed, 1/1. No capability skip is claimed and the WARP defect remains open.n- The NVIDIA 0x7fff case is covered by the comparator and the owner's measurement on RTX 4060 Laptop; the local recheck was on the RX 9060 XT.nnStack: Windows 11 build 26300, AMD Radeon RX 9060 XT driver 32.0.32029.2010; WARP 10.0.26100.10068. DXC 10.0.26100.0.nnRefs #3641, #3703. AI-assisted.`n

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5597189077 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-02T00:21:27Z. --- ## Problem`n`nSlot 86 DispatchMesh requests can arrive with no pixel stage. The translator compiled the mesh stage, but every published profile refused the request:`n`n- `--prove-root-srv` and `--prove-texture1d-map` require a pixel stage;`n- `--heap-buffer` requires at least one `createHandleFromHeap` read;`n- `--prove-root-constants` refuses the mesh stage's SRVs.`n`nThe cache at `_wt/agent-b-86-evidence/out/startup/shader_cache` currently holds 3,876 `req_*.m86` files: 987 have an empty `.ps86`, 2,889 have a pixel stage. Of the 987 PS-less requests, 614 reached the heap proof and now translate when the mesh stage has no direct heap read, 357 stop earlier in mesh translation, 10 index only the sampler heap, and 6 stop at the root-constants proof.`n`n## Design`n`nAdds profile 6, a PS-less mesh SRV table marker. The publisher dumps only the mesh stage and accepts the profile only when:`n`n- every binding is a DXIL `texture byte r/o` SRV, `t0..tN-1`;`n- every desktop SRV handle is either `createHandleFromBinding` for one `tN` in space 0, or the single legacy `createHandle(rangeId=0)` form of a version-1 root SRV;`n- the plan's guest root parameter exists and is a descriptor table or root SRV (32-byte-aligned table record inside the runtime bound, offset 0 for a root SRV);`n- the mesh stage contains no `createHandleFromHeap` read.`n`nThe marker stores `constant <root> <count>` and `srv <t> <root> <offset> <bytes> <kind> <dim>` lines. The runtime builds a synthetic root with the plan's constants and flat SRV table and reuses `bind_native_mesh86` to resolve each record; an unusable record refuses the draw. Existing profile 1/2/3/4/5 output is unchanged, and PS-full requests still use the old paths.`n`nThe source-built depth case accepts exactly the two D16 quantizations of 0.5 used by conforming adapters: `0x8000` and `0x7fff`. Clear and all other depth expectations remain exact. The WARP wrapper propagates nonzero exits; a capability skip is accepted only when the fixture itself reports 77. A device removal after DispatchMesh therefore stays a visible test failure.`n`n## Validation`n`n- Real PS-less request `08dc8a7b1c8fd5da` translated to profile 6 with `constant 4 2` and seven SRV lines (t0..t6), including a root SRV and descriptor-table records. Request bytes were not committed.`n- `startup_mesh86_psless_hardware` passes: the source-built mesh-only root SRV reads `0x12345678` and writes D16 depth 0.5; negative controls cover a missing proof, an unproven/missing SRV, a bad table offset and a pixel-stage attempt. The expected depth set is `{0x7fff, 0x8000}`, with a negative control at `0x8001`.`n- `startup_mesh86_translate_hardware` passes (PS-full profile 4 unchanged).`n- `startup_mesh86_srv_proof` passes (PS-full profile 2 unchanged).`n- WARP `10.0.26100.10068` records DispatchMesh and then removes the device at `map argument readback failed (HRESULT 0x887a0005)`. The corrected runner reports this as `Failed`, 1/1. No capability skip is claimed and the WARP defect remains open.`n- The NVIDIA `0x7fff` case is covered by the comparator and the owner's measurement on RTX 4060 Laptop; the local recheck was on the RX 9060 XT.`n`nStack: Windows 11 build 26300, AMD Radeon RX 9060 XT driver 32.0.32029.2010; WARP 10.0.26100.10068. DXC 10.0.26100.0.`n`nRefs #3641, #3703. AI-assisted.`n
lambirou commented 2026-12-02 14:44:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-02T14:44:50Z.

Review: COMMENTED


Reviewed 7e71182d against #3725; read the profile-6 parser/publisher and its fixture, not built here.

Verdict: approve. The PS-less mesh profile is represented explicitly as manifest version 6 with a constant/SRV plan, the publisher validates every planned root parameter and every desktop binding, and the runtime side rejects a plan that does not match the root signature. The source-built fixture covers the profile through the target.

  • NIT _mesh_plan() builds a dict from field.split('=', 1) and then indexes values['root'], values['count'], values['offset'], values['size'], values['kind'], values['dim'] directly. A malformed compiler report raises KeyError, which escapes the (ValueError, Unsupported) catch and aborts the whole watcher scan. Convert a missing field into Unsupported (or validate the field set) so one bad request cannot stop the translator.
  • NIT root_parameters() accepts version 1 and 2 only. If the compiler can emit a newer RTS0 version, the error should name the version rather than invalid root signature.
  • Checked, no finding: the descriptor-table range walk handles version-1 and version-2 strides; the plan requires t0..tN-1 byte SRVs and a matching number of views; a legacy createHandle(rangeId=0) binding is accepted only for a single root SRV; the publisher rejects a PS-less plan with a pixel stage and vice versa. The new test covers the manifest and the runtime refusal paths.

The PR is stacked on #3725 and currently conflicts with main; rebase before merge.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6153054677 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6153054677). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-02T14:44:50Z. **Review:** COMMENTED --- Reviewed `7e71182d` against #3725; read the profile-6 parser/publisher and its fixture, not built here. **Verdict: approve.** The PS-less mesh profile is represented explicitly as manifest version 6 with a constant/SRV plan, the publisher validates every planned root parameter and every desktop binding, and the runtime side rejects a plan that does not match the root signature. The source-built fixture covers the profile through the target. - **NIT** `_mesh_plan()` builds a dict from `field.split('=', 1)` and then indexes `values['root']`, `values['count']`, `values['offset']`, `values['size']`, `values['kind']`, `values['dim']` directly. A malformed compiler report raises `KeyError`, which escapes the `(ValueError, Unsupported)` catch and aborts the whole watcher scan. Convert a missing field into `Unsupported` (or validate the field set) so one bad request cannot stop the translator. - **NIT** `root_parameters()` accepts version 1 and 2 only. If the compiler can emit a newer RTS0 version, the error should name the version rather than `invalid root signature`. - Checked, no finding: the descriptor-table range walk handles version-1 and version-2 strides; the plan requires `t0..tN-1` byte SRVs and a matching number of views; a legacy `createHandle(rangeId=0)` binding is accepted only for a single root SRV; the publisher rejects a PS-less plan with a pixel stage and vice versa. The new test covers the manifest and the runtime refusal paths. The PR is stacked on #3725 and currently conflicts with main; rebase before merge.
timbot103 commented 2026-12-03 10:34:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T10:34:03Z.


Independent RTX 5080 + WARP run, in case a second NVIDIA data point helps (the reviewer runs here are on an RTX 4060 Laptop). Two of these findings repeat on all three of #3803, #3812 and #3813, so they probably do not come from this PR's own change, and I have not bisected them: (1) native_direct_mesh fails its uniform-load-offen refusal assertion, and (2) in-box WARP removes the device (0x887a0005) after the PS-less dispatch. The RTX 5080 depth readback of 0x7fff where the new fixtures expect 0x8000 looks NVIDIA-specific. It might need a one-ULP tolerance, or a depth value that is exactly representable. Full details below.


Independent verification of head 7e71182df23cc8f0d1769ca630557cf17519ac83 against pinned main d2e6a4ed9fd7377ea5a01d9384a845c26ed7b5e5.
The merge stopped with 12 conflicts, including src/startup_stubs/mesh86_cache.inl and tests/startup_indirect_draw_indexed.cpp. These runs used the published head.

Windows 11 build 26200.9974. RTX 5080 driver 32.0.16.2140 (621.40). Microsoft Basic Render Driver with in-box WARP 10.0.26100.9818. DXC 1.9.2602.17 (21d28f727). The startup fixture reported the debug layer unavailable.

Commands run with $cfg set to dev and release, $python set to the project venv interpreter and XBOX2WINDOWS_ADAPTER set to NVIDIA GeForce RTX 5080.

. .\tools\dev.ps1
cmake --preset $cfg "-DINTAKE_PYTHON=$python"
cmake --build out/build/$cfg --target compile_dxil startup_indirect_draw_indexed startup_mesh86_material_backing -- -j 6
ctest --preset $cfg --no-tests=error -j 1 -R '^(startup_mesh86_|runtime_mesh86_cache_cli_check$|startup_indirect_mesh(_console|_request|_create_result)?_(warp|hardware)$|startup_indirect_mesh_(cache|lease)_|native_direct_(mesh|container)$|native_mesh_).*$' -V

Counts are pass/fail/skip. The totals include the adapter-independent tests.

Config WARP RTX 5080 Other Total
Debug 27/1/0 26/1/0 3/1/0 56/3/0
Release 27/1/0 26/1/0 3/1/0 56/3/0

Failure diagnostics

Debug native_direct_mesh

AssertionError: ('compiler_init_ms=20.7864\ncold_compile_and_publish_ms=4.5463 bytes=4580\n', '')

Debug/Release startup_mesh86_psless_warp

map argument readback failed (HRESULT 0x887a0005)

Debug/Release startup_mesh86_psless_hardware

PS-less root SRV: pixel (0,0): got 0x00007fff, expected 0x00008000

Release native_direct_mesh

AssertionError: ('compiler_init_ms=15.0824\ncold_compile_and_publish_ms=5.0387 bytes=4580\n', '')

native_direct_mesh failed its uniform-load-offen refusal assertion. The compiler published a shader where the fixture expected a refusal.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7375424784 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7375424784). Originally posted by [timbot103](https://github.com/timbot103) on 2026-12-03T10:34:03Z. --- Independent RTX 5080 + WARP run, in case a second NVIDIA data point helps (the reviewer runs here are on an RTX 4060 Laptop). Two of these findings repeat on all three of #3803, #3812 and #3813, so they probably do not come from this PR's own change, and I have not bisected them: (1) `native_direct_mesh` fails its `uniform-load-offen` refusal assertion, and (2) in-box WARP removes the device (`0x887a0005`) after the PS-less dispatch. The RTX 5080 depth readback of `0x7fff` where the new fixtures expect `0x8000` looks NVIDIA-specific. It might need a one-ULP tolerance, or a depth value that is exactly representable. Full details below. --- Independent verification of head `7e71182df23cc8f0d1769ca630557cf17519ac83` against pinned main `d2e6a4ed9fd7377ea5a01d9384a845c26ed7b5e5`. The merge stopped with 12 conflicts, including `src/startup_stubs/mesh86_cache.inl` and `tests/startup_indirect_draw_indexed.cpp`. These runs used the published head. Windows 11 build 26200.9974. RTX 5080 driver 32.0.16.2140 (621.40). Microsoft Basic Render Driver with in-box WARP 10.0.26100.9818. DXC 1.9.2602.17 (21d28f727). The startup fixture reported the debug layer unavailable. Commands run with `$cfg` set to `dev` and `release`, `$python` set to the project venv interpreter and `XBOX2WINDOWS_ADAPTER` set to `NVIDIA GeForce RTX 5080`. ```powershell . .\tools\dev.ps1 cmake --preset $cfg "-DINTAKE_PYTHON=$python" cmake --build out/build/$cfg --target compile_dxil startup_indirect_draw_indexed startup_mesh86_material_backing -- -j 6 ctest --preset $cfg --no-tests=error -j 1 -R '^(startup_mesh86_|runtime_mesh86_cache_cli_check$|startup_indirect_mesh(_console|_request|_create_result)?_(warp|hardware)$|startup_indirect_mesh_(cache|lease)_|native_direct_(mesh|container)$|native_mesh_).*$' -V ``` Counts are pass/fail/skip. The totals include the adapter-independent tests. | Config | WARP | RTX 5080 | Other | Total | |---|---:|---:|---:|---:| | Debug | 27/1/0 | 26/1/0 | 3/1/0 | 56/3/0 | | Release | 27/1/0 | 26/1/0 | 3/1/0 | 56/3/0 | Failure diagnostics Debug `native_direct_mesh` ```text AssertionError: ('compiler_init_ms=20.7864\ncold_compile_and_publish_ms=4.5463 bytes=4580\n', '') ``` Debug/Release `startup_mesh86_psless_warp` ```text map argument readback failed (HRESULT 0x887a0005) ``` Debug/Release `startup_mesh86_psless_hardware` ```text PS-less root SRV: pixel (0,0): got 0x00007fff, expected 0x00008000 ``` Release `native_direct_mesh` ```text AssertionError: ('compiler_init_ms=15.0824\ncold_compile_and_publish_ms=5.0387 bytes=4580\n', '') ``` `native_direct_mesh` failed its `uniform-load-offen` refusal assertion. The compiler published a shader where the fixture expected a refusal.
R0Y00 commented 2026-12-03 12:24:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T12:24:30Z.

Review: CHANGES_REQUESTED


I rebuilt a2301d70 with MSVC Debug and SDK DXC on Windows 11 build 26300. native_direct_mesh passed. The source-built startup_mesh86_psless cases expose two independent problems:

  • RTX 4060 Laptop 32.0.16.1656 bound the root SRV, recorded DispatchMesh, and wrote 0x7fff in all eight depth pixels with the debug layer enabled. The C++ fixture rejects that value before the new Python tolerance can act. I verified a local test-only fix: the drawn PS-less C++ case accepts 0x7fff alongside 0x8000 and Python checks membership in that same pair. D16 maps 0.5 to 32767.5, so 0x8001 is outside those two quantizations. The repaired hardware test passed. Leave clear and other depth expectations exact.
  • Inbox WARP 10.0.26100.9818 recorded the draw and then removed the device. The script prints a capability skip but returns 0 to CTest, which calls the test a pass. Please distinguish a measured capability absence (77) from an actual device-removal failure, and keep the publication checks and fence readback outcomes visible.

#3812 and #3813 carry this base and should recheck the corrected fixture behavior when they refresh.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6169743068 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6169743068). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T12:24:30Z. **Review:** CHANGES_REQUESTED --- I rebuilt a2301d70 with MSVC Debug and SDK DXC on Windows 11 build 26300. native_direct_mesh passed. The source-built startup_mesh86_psless cases expose two independent problems: - RTX 4060 Laptop 32.0.16.1656 bound the root SRV, recorded DispatchMesh, and wrote 0x7fff in all eight depth pixels with the debug layer enabled. The C++ fixture rejects that value before the new Python tolerance can act. I verified a local test-only fix: the drawn PS-less C++ case accepts 0x7fff alongside 0x8000 and Python checks membership in that same pair. D16 maps 0.5 to 32767.5, so 0x8001 is outside those two quantizations. The repaired hardware test passed. Leave clear and other depth expectations exact. - Inbox WARP 10.0.26100.9818 recorded the draw and then removed the device. The script prints a capability skip but returns 0 to CTest, which calls the test a pass. Please distinguish a measured capability absence (77) from an actual device-removal failure, and keep the publication checks and fence readback outcomes visible. #3812 and #3813 carry this base and should recheck the corrected fixture behavior when they refresh.
lambirou commented 2026-12-03 14:06:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T14:06:26Z.


Updated at d6d49e92. The D16 draw now admits precisely 0x7fff and 0x8000; clear and other depth checks remain exact. The Python wrapper propagates every nonzero child exit and reserves 77 for a capability the fixture actually reports. On RX 9060 XT the hardware fixture passes at 0x8000; on WARP the post-dispatch device removal now fails visibly rather than passing as a skip. Refs #3641, #3703.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7380898679 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7380898679). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-03T14:06:26Z. --- Updated at `d6d49e92`. The D16 draw now admits precisely `0x7fff` and `0x8000`; clear and other depth checks remain exact. The Python wrapper propagates every nonzero child exit and reserves 77 for a capability the fixture actually reports. On RX 9060 XT the hardware fixture passes at `0x8000`; on WARP the post-dispatch device removal now fails visibly rather than passing as a skip. Refs #3641, #3703.
R0Y00 commented 2026-12-03 14:21:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T14:21:13Z.


Re-ran d6d49e92 in MSVC Debug on Windows 11 build 26300. Native direct mesh passed. The RTX 4060 Laptop fixture accepted 0x7fff and passed with the exact clear and other controls. On inbox WARP 10.0.26100.9818, the source-built fixture reached the cached PSO but failed at the argument readback map with DXGI_ERROR_DEVICE_REMOVED (0x887a0005). The revised wrapper correctly reports a failure. The WARP failure remains open and I am leaving the review in place.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7381302929 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7381302929). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T14:21:13Z. --- Re-ran d6d49e92 in MSVC Debug on Windows 11 build 26300. Native direct mesh passed. The RTX 4060 Laptop fixture accepted 0x7fff and passed with the exact clear and other controls. On inbox WARP 10.0.26100.9818, the source-built fixture reached the cached PSO but failed at the argument readback map with DXGI_ERROR_DEVICE_REMOVED (0x887a0005). The revised wrapper correctly reports a failure. The WARP failure remains open and I am leaving the review in place.
lambirou commented 2026-12-03 14:35:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T14:35:47Z.


Rebased onto main at adfc0d945 (including #3935 and #3938). The conflicts in d3d12_xs_device.cpp and startup_indirect_draw_indexed.cpp now retain both the upstream indirect-index snapshot path and the PS-less synthetic-root/D16 changes.

Targeted Release checks after the rebase: startup_indirect_translated_indexed_snapshot_{warp,hardware} pass 2/2; startup_mesh86_psless_hardware passes with depth 0x8000 on the AMD RX 9060 XT. startup_mesh86_psless_warp remains a visible failure after the valid DispatchMesh because WARP removes the device with 0x887a0005; it is not reported as a capability skip.

New head: c2dbff29b28d88c08f5fdf2edad461571039b4e7.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7381710128 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7381710128). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-03T14:35:47Z. --- Rebased onto `main` at `adfc0d945` (including #3935 and #3938). The conflicts in `d3d12_xs_device.cpp` and `startup_indirect_draw_indexed.cpp` now retain both the upstream indirect-index snapshot path and the PS-less synthetic-root/D16 changes. Targeted Release checks after the rebase: `startup_indirect_translated_indexed_snapshot_{warp,hardware}` pass 2/2; `startup_mesh86_psless_hardware` passes with depth `0x8000` on the AMD RX 9060 XT. `startup_mesh86_psless_warp` remains a visible failure after the valid DispatchMesh because WARP removes the device with `0x887a0005`; it is not reported as a capability skip. New head: `c2dbff29b28d88c08f5fdf2edad461571039b4e7`.
lambirou commented 2026-12-03 14:56:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T14:56:19Z.


Root cause found. In-box WARP removes the device for a mesh pipeline with no pixel shader when it dispatches into depth. On the true fixture, omitting only DispatchMesh lets the argument readback complete (clear depth 0xffff). The same removal occurs with direct DispatchMesh, so neither the command signature nor the argument buffer is involved. The standard indirect mesh fixture with a pixel shader passes, and the existing Mesh57/Mesh86 depth-only guard already records the same WARP limitation.

57df7cbd adds a source-built empty pixel shader generated at build time and injects it into profile-6 PSOs only on software adapters. The true fixture now passes through both ExecuteIndirect and direct DispatchMesh on WARP 10.0.26100.10068, writing depth 0x8000; hardware passes without the fallback. The targeted Release set passes 7/7, including both indirect-index snapshot tests. The debug layer is unavailable locally and DRED reports no breadcrumb before the former device-removal path; this is now a successful execution path rather than a skip.

New head: 57df7cbd2708c827693099f9312c1867ade2d610.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7382287511 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7382287511). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-03T14:56:19Z. --- Root cause found. In-box WARP removes the device for a mesh pipeline with no pixel shader when it dispatches into depth. On the true fixture, omitting only `DispatchMesh` lets the argument readback complete (clear depth `0xffff`). The same removal occurs with direct `DispatchMesh`, so neither the command signature nor the argument buffer is involved. The standard indirect mesh fixture with a pixel shader passes, and the existing Mesh57/Mesh86 depth-only guard already records the same WARP limitation. `57df7cbd` adds a source-built empty pixel shader generated at build time and injects it into profile-6 PSOs only on software adapters. The true fixture now passes through both `ExecuteIndirect` and direct `DispatchMesh` on WARP `10.0.26100.10068`, writing depth `0x8000`; hardware passes without the fallback. The targeted Release set passes 7/7, including both indirect-index snapshot tests. The debug layer is unavailable locally and DRED reports no breadcrumb before the former device-removal path; this is now a successful execution path rather than a skip. New head: `57df7cbd2708c827693099f9312c1867ade2d610`.
R0Y00 commented 2026-12-03 15:05:46 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T15:05:46Z.

Review: APPROVED


Re-reviewed 57df7cbd. The empty pixel stage is scoped to the software depth-only profile and does not change the published no-pixel manifest contract. Independently rebuilt in MSVC Debug on Windows 11 build 26300, D3D12 debug layer enabled. ctest --preset dev --no-tests=error -j 1 -V -R '^(startup_mesh86_psless_(warp|hardware)|native_direct_mesh)$' passed 3/3. Direct DispatchMesh and ExecuteIndirect each wrote 0x8000 on WARP 10.0.26100.9818 and 0x7fff on RTX 4060 Laptop 32.0.16.1656. No capability skips. Disabling only the software fallback reproduced the original WARP readback failure (DXGI_ERROR_DEVICE_REMOVED, 0x887a0005), and restoring the fallback made the same case pass. This resolves my WARP and D16 review requests.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6172442468 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6172442468). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T15:05:46Z. **Review:** APPROVED --- Re-reviewed 57df7cbd. The empty pixel stage is scoped to the software depth-only profile and does not change the published no-pixel manifest contract. Independently rebuilt in MSVC Debug on Windows 11 build 26300, D3D12 debug layer enabled. `ctest --preset dev --no-tests=error -j 1 -V -R '^(startup_mesh86_psless_(warp|hardware)|native_direct_mesh)$'` passed 3/3. Direct DispatchMesh and ExecuteIndirect each wrote 0x8000 on WARP 10.0.26100.9818 and 0x7fff on RTX 4060 Laptop 32.0.16.1656. No capability skips. Disabling only the software fallback reproduced the original WARP readback failure (DXGI_ERROR_DEVICE_REMOVED, 0x887a0005), and restoring the fallback made the same case pass. This resolves my WARP and D16 review requests.
R0Y00 commented 2026-12-03 15:07:56 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T15:07:56Z.

Review: CHANGES_REQUESTED


Update after the hardware review: required Windows CI fails to compile d3d12_xs_device_obj with C1083, because it cannot find mesh86_psless_null_pixel.h. The generated header is a source and its directory is an include path on d3d12_xs_shim only. d3d12_xs_device_obj also compiles d3d12_xs_device.cpp, and the Agility configurations compile it directly in offscreen_check and cpu_placed_dxr_provider. Please attach the generated header dependency and build directory include path to each actual compilation target, then recheck the PR preset from a clean build. The earlier WARP and RTX runtime results used d3d12_xs_shim.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6172488823 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6172488823). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T15:07:56Z. **Review:** CHANGES_REQUESTED --- Update after the hardware review: required Windows CI fails to compile d3d12_xs_device_obj with C1083, because it cannot find mesh86_psless_null_pixel.h. The generated header is a source and its directory is an include path on d3d12_xs_shim only. d3d12_xs_device_obj also compiles d3d12_xs_device.cpp, and the Agility configurations compile it directly in offscreen_check and cpu_placed_dxr_provider. Please attach the generated header dependency and build directory include path to each actual compilation target, then recheck the PR preset from a clean build. The earlier WARP and RTX runtime results used d3d12_xs_shim.
lambirou commented 2026-12-03 15:09:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T15:09:03Z.


The Windows failure on 57df7cbd was only the generated-header dependency: d3d12_xs_device_obj compiled the shim source without mesh86_psless_null_pixel.h in its generated include dependency graph.

b3348a2b attaches that generated HLSL header to d3d12_xs_device_obj and the Agility input-compilation paths too. A clean Release configure/build in a new build directory generated the header before both d3d12_xs_shim and d3d12_xs_device_obj. The local true-fixture checks still pass: WARP and hardware each pass through ExecuteIndirect and direct DispatchMesh with depth 0x8000; only WARP receives the empty pixel-stage fallback.

New head: b3348a2bd5a7f46b7c8af90181452a20bf01d2a0.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7382648347 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7382648347). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-03T15:09:03Z. --- The Windows failure on `57df7cbd` was only the generated-header dependency: `d3d12_xs_device_obj` compiled the shim source without `mesh86_psless_null_pixel.h` in its generated include dependency graph. `b3348a2b` attaches that generated HLSL header to `d3d12_xs_device_obj` and the Agility input-compilation paths too. A clean Release configure/build in a new build directory generated the header before both `d3d12_xs_shim` and `d3d12_xs_device_obj`. The local true-fixture checks still pass: WARP and hardware each pass through ExecuteIndirect and direct DispatchMesh with depth `0x8000`; only WARP receives the empty pixel-stage fallback. New head: `b3348a2bd5a7f46b7c8af90181452a20bf01d2a0`.
R0Y00 commented 2026-12-03 15:20:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T15:20:41Z.

Review: APPROVED


Re-reviewed b3348a2b. The generated fallback header is now an input to every target that compiles d3d12_xs_device.cpp directly. In a clean MSVC Debug build directory, building d3d12_xs_device_obj by itself generated the header before compiling the object. The previous head failed the same object target with C1083. I also rebuilt the shim and ran ctest --preset dev --no-tests=error -j 1 -V -R '^(startup_mesh86_psless_(warp|hardware)|native_direct_mesh)$': 3/3 passed on Windows build 26300. Both direct and indirect cases read 0x8000 on WARP 10.0.26100.9818 and 0x7fff on RTX 4060 Laptop 32.0.16.1656, with the debug layer enabled. This resolves the generated-header request.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6172734597 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6172734597). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-03T15:20:41Z. **Review:** APPROVED --- Re-reviewed b3348a2b. The generated fallback header is now an input to every target that compiles d3d12_xs_device.cpp directly. In a clean MSVC Debug build directory, building d3d12_xs_device_obj by itself generated the header before compiling the object. The previous head failed the same object target with C1083. I also rebuilt the shim and ran `ctest --preset dev --no-tests=error -j 1 -V -R '^(startup_mesh86_psless_(warp|hardware)|native_direct_mesh)$'`: 3/3 passed on Windows build 26300. Both direct and indirect cases read 0x8000 on WARP 10.0.26100.9818 and 0x7fff on RTX 4060 Laptop 32.0.16.1656, with the debug layer enabled. This resolves the generated-header request.
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
R0Y00/Xbox2Windows!3803
No description provided.