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

Manually merged
github merged 6 commits from github-bot/gh-3803 into gh-pr/3803/base 2026-12-03 15:28:52 +00:00 AGit
Owner

@⁠lambirou on GitHub · 2026-12-02 00:21 UTC · original
lambirou:codex/mesh86-psless-srv → main · +787 −65 · 12 files · 6 commits · merged 2026-12-03 15:24 UTC

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 #3643, #3705. AI-assisted.`n

**@⁠lambirou** on GitHub · 2026-12-02 00:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803) `lambirou:codex/mesh86-psless-srv` → `main` · +787 −65 · 12 files · 6 commits · merged 2026-12-03 15:24 UTC ## 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 #3643, #3705. AI-assisted.`n
The shared scalar ALU already lowers all three, SCC included. The mesh
frontend refused them with "unsupported mesh instruction or EXEC state".
They now join s_bfe_u32 and s_min_u32 on the shared path, with the same
EXEC and VCC destination refusals.

On a native Mesh86 capture (1,569 distinct slot 86 programs), these were
the first refusal for 555 of them, and 122 more now translate fully.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review follow-up on #3708. After s_cmp_eq_u32 s20, 0, an s_cselect_b32
behind s_brev_b32 still selects on the compare's SCC, and behind s_not_b32
on (result != 0). Both selects reach the exported X.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adopt the existing committed desktop backing for a placed material view, refresh it from title memory at submit, and copy only changed runs. Keep the existing backing and its fences; a submitted GPU write stops refreshes. Add a source-built two-SRV fixture with range, token, stale, budget and mutant controls.

Refs #3640, #3638, #3545.
Both are already lowered by the shared ALU (the reciprocal as v_rcp_f32,
the shift as an arithmetic right shift by src0 & 31). The mesh lane ALU
list now admits them, so the full_exec || exec_skip rule and the
partial-write merge apply unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review follow-up on #3709: v-rcp-iflag-f32 now checks that the reciprocal's
bits reach the exported X, as v-ashrrev-i32 already does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The mesh frontend narrowed EXEC only for v_cmpx_eq_u32, ne_u32 and lt_u32,
and for v_cmpx_gt_u32 only in the lane-linear count form. Mesh86 programs
also use v_cmpx_lg_f32, v_cmpx_gt_f32 and a per-lane v_cmpx_gt_u32.

They now get the same EXEC-only narrowing through the shared compare: lg is
an ordered fcmp one and gt_f32 an ordered ogt, so a NaN lane leaves EXEC,
and gt_u32 is icmp ugt. The count form of v_cmpx_gt_u32 is still matched
first. Float abs/neg, SDWA, DPP, clamp and omod stay refused.

Part of #3703.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Inside the vertex skip, skinned mesh programs save EXEC, narrow it with
one v_cmpx_ne_u32 and no EXECZ, run straight-line VALU work and restore
the saved vertex mask. The restore was refused as "mesh EXEC write inside
a lane-skip block".

When the CMPX runs, every register is exact for the skip's guard lanes.
A write under the narrowed mask whose old value is still that exact value
(unchanged since the CMPX, or itself merged) is now merged per lane with
it, so it stays exact for the guard. A restore of the guard's saved mask
keeps every register that is unchanged since the CMPX or merged, and
clears the rest, such as a register first written under the narrowed
mask. A second narrowing, or a restore of a mask saved under the narrowed
EXEC, stays refused.

Part of #3703.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The #3671 lane-limit proof tags partial VGPRs with the vertex skip's lane
count when the skip closes, so an export under the same count may read them
after full EXEC returns. It required the closing skip's guard to be the
current lane mask. When a nested CMPX skip inside the vertex skip exits to
the same EXEC restore, the nested mask is still current at the outer close,
so the proof was skipped and the restore erased the position VGPRs
("graphics register undefined on an incoming path").

A nested per-lane skip now records the parent guard when it opens directly
after a single CMPX that narrowed it. Nothing ran under the narrowed mask
outside that skip, and the skip branches per thread, so after it closes
every register is exact for each of the parent's lanes. If the parent then
closes at the same instruction, its lane limit applies as before. Any other
narrowing, a write between the CMPX and the EXECZ, or another path arriving
at the restore keeps the previous behavior.

Part of #3703 (item 6).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A chain of per-lane skips, each opened straight after a CMPX that narrows
the skip around it, merges every register per lane when it closes. #3710
carried that fact from one nested skip to its parent only, and only when
the parent closed at the same instruction. Skinned mesh programs nest
three such skips inside the vertex skip and close all of them at a restore
of the vertex mask, after which the vertex skip goes on. The restore then
treated every register written since the mask was saved as stale and
cleared it, so the next read refused with "graphics register undefined on
an incoming path".

The carried lane set now passes through any depth of skips closing at one
pc, and an EXEC restore at that pc keeps the register file when the
restored mask is the carried guard of the enclosing skip. The set is tied
to its pc so it never describes a later instruction. A write between the
innermost CMPX and its EXECZ, or a narrowing that is not a CMPX, still
breaks the chain.

Part of #3703.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The mesh frontend accepted buffer_load_format_x only from a resource heap
slot. Skinned slot 86 programs read the V# whole from a bound descriptor
table instead and were refused with "formatted mesh load lacks an
R32_UINT resource heap contract".

Translator: a format load whose V# comes from a bound table goes through
the shared typed-buffer SRV path, as in vertex and pixel shaders, which
checks the table binding and all four descriptor words. The #3720
control that kept this route refused under heap tokens now checks that
it compiles without a token view.

Runtime: slot 86 accepts a one-dword typed_buffer_srv from a descriptor
table and binds it as an R32_UINT buffer view through the same checks as
a typed heap slot (R32_UINT token view, or a raw V# with the identity
component map and a 4-byte stride). A raw table V# must also name a
32-bit format (32_UINT, 32_SINT or 32_FLOAT), so the view returns the
dword the guest load would. Those word 3 checks live in
mesh86_typed_vsharp.h with unit tests and two mutation controls.

Part of #3703.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A merged value is exact for the guard's lanes only in the register it was
merged into. Keying the merges by value let a copy of a merged value into
another register pass the restore as exact. Record the merged value per
register instead, and add the copy fixture from review plus a second merge
into the same register.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A raw V# with SWIZZLE_ENABLE (word 1 bit 31) or ADD_TID_ENABLE (word 3
bit 23) set addresses elements differently from the linear R32_UINT view
slot 86 binds, so refuse it on both the heap and the table route. Add a
linear_addressing unit case with two header mutation controls, and run
the mesh86_typed_vsharp tests in the pr preset.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pr test filter runs mesh86_typed_vsharp_*, but the pr build preset
only builds its listed targets, so CI reported the tests as not run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Inside a SAVEEXEC then arm the compiler often copies EXEC, runs some
vector work, narrows EXEC with one CMPX, skips with EXECZ and restores the
copy. Each lane runs the work and then the skipped instructions only if
the compare holds: the same if-only region s_and_saveexec_b64 would open
on the compare. The then-arm scan now registers it as a child region and
the mesh frontend lowers it as a nested diamond on the shared compare,
through the existing nested SAVEEXEC join and restore. The region needs
its own restore of the copied register inside the arm; anything else
stays an EXEC read of the then arm.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The compiler also narrows the rest of an if-only SAVEEXEC then arm with a
CMPX whose EXECZ skips to the arm's end, leaving the EXEC copy unrestored.
The rest of the arm is then the region, and the SAVEEXEC restore ends
both. Accept that form when the enclosing arm has no else arm (its
inverse would read the narrowed EXEC), and visit the join address again
after the region closes so the enclosing arm ends there too. Regions
chain the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The then-arm scan recorded every scalar destination as a register pair,
so a 32-bit write such as s_lshl_b32 s7 also marked s8 as written. At
the join s8 was clobbered, and a lane mask kept there was lost; the
else arm also could not read the neighbour. Record the pair only for
64-bit SALU forms and for non-SALU writes (compare masks, readlane),
as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A buffer_load_dword, or a buffer_load_format_x from a descriptor-table
V#, without OFFEN, with a uniform IDXEN index if any and a constant or
uniform SOFFSET, reads the same address in every lane. Until the shader
stores to memory it returns the same dwords in every lane, so mark them
uniform under the same conditions as the heap typed load and let a
following v_readfirstlane read them. The address is checked before the
load, whose destination may be its own index register.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs #2413, #3416
# Conflicts:
#	CMakePresets.json
#	docs/experiments/mesh86-pixel-execz.md
# Conflicts:
#	CMakePresets.json
# Conflicts:
#	CMakePresets.json
# Conflicts:
#	src/gfx1013_direct_mesh.inl
#	tests/native_direct_mesh_check.py
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 00:23:47 +00:00
Author
Owner

@⁠lambirou on GitHub · 2026-12-02 14:44 UTC · original · reviewed

Reviewed 7e71182d against #3727; 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 #3727 and currently conflicts with main; rebase before merge.

**@⁠lambirou** on GitHub · 2026-12-02 14:44 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6153054677) · **reviewed** Reviewed `7e71182d` against #3727; 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 #3727 and currently conflicts with main; rebase before merge.
Author
Owner

@⁠timbot103 on GitHub · 2026-12-03 10:34 UTC · original

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 #3805, #3814 and #3815, 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.

**@⁠timbot103** on GitHub · 2026-12-03 10:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7375424784) 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 #3805, #3814 and #3815, 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.
github-bot force-pushed github-bot/gh-3803 from 7e71182df2 to 199739bd47 2026-12-03 11:08:47 +00:00 Compare
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 12:24 UTC · original · requested changes

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.

#3814 and #3815 carry this base and should recheck the corrected fixture behavior when they refresh.

**@⁠R0Y00** on GitHub · 2026-12-03 12:24 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6169743068) · **requested changes** 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. #3814 and #3815 carry this base and should recheck the corrected fixture behavior when they refresh.
Author
Owner

@⁠lambirou on GitHub · 2026-12-03 14:06 UTC · original

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 #3643, #3705.

**@⁠lambirou** on GitHub · 2026-12-03 14:06 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7380898679) 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 #3643, #3705.
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 14:21 UTC · original

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.

**@⁠R0Y00** on GitHub · 2026-12-03 14:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7381302929) 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.
github-bot force-pushed github-bot/gh-3803 from d6d49e92aa to c2dbff29b2 2026-12-03 14:41:01 +00:00 Compare
Author
Owner

@⁠lambirou on GitHub · 2026-12-03 14:35 UTC · original

Rebased onto main at adfc0d945 (including #3937 and #3940). 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** on GitHub · 2026-12-03 14:35 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7381710128) Rebased onto `main` at `adfc0d945` (including #3937 and #3940). 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`.
Author
Owner

@⁠lambirou on GitHub · 2026-12-03 14:56 UTC · original

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.

**@⁠lambirou** on GitHub · 2026-12-03 14:56 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7382287511) 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`.
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 15:05 UTC · original · approved these changes

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** on GitHub · 2026-12-03 15:05 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6172442468) · **approved these changes** 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.
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 15:07 UTC · original · requested changes

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.

**@⁠R0Y00** on GitHub · 2026-12-03 15:07 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6172488823) · **requested changes** 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.
Author
Owner

@⁠lambirou on GitHub · 2026-12-03 15:09 UTC · original

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.

**@⁠lambirou** on GitHub · 2026-12-03 15:09 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#issuecomment-7382648347) 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`.
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-03 15:20 UTC · original · approved these changes

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.

**@⁠R0Y00** on GitHub · 2026-12-03 15:20 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3803#pullrequestreview-6172734597) · **approved these changes** 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.
github-bot changed target branch from main to gh-pr/3803/base 2026-12-03 15:28:46 +00:00
github manually merged commit b3348a2bd5 into gh-pr/3803/base 2026-12-03 15:28:52 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.