Repository navigation
compute: publish root_buffer_srv compute runtime manifests - #3504
Conversation
Refs R0Y00#3224, R0Y00#2935 format_compute_runtime_manifest publishes ComputeViewKind::root_buffer_srv as 'srv N buf root R' when byte_offset == 0, array_count == 1 and !requires_identity_dst_sel, matching format_graphics_runtime_manifest and the compute Dispatch reader. Other shapes stay refused by name, and stride_srvs still refuses a root_buffer_srv (not a raw vector SRV). Tests: native_compute_manifest_reasons gains the publish case plus byte-offset, array, identity_dst_sel and stride refusals; its --requests check now uses the cube comparison sample as the no-manifest case and keeps a control that the raw-root program publishes 'srv 0 buf root 1' and 'srv 1 buf root 2'; a new startup_compute_root_srv_native check publishes the single-root-SRV program through compile_dxil --requests and dispatches it (plus the root-CBV wrong-kind control) on WARP and hardware.
…e check Refs R0Y00#3224, R0Y00#2935 WIN-VERIFY on 1cc8caa refused the single-root-SRV program at compile_dxil: the native compiler reads descriptor-table entries as 32-byte records, so the byte-16 UAV load is refused as 'unaligned descriptor table entry'. Load the descriptor from table byte 32 (uav 0 table 1 32) and dispatch through the new dispatch-root-srv-records32 consumer mode, which places it there and zeroes byte 16. The byte-16 program stays as an explicit compile_dxil refusal control, and the plain layout stays as a no-descriptor-at-byte-32 bind refusal control.
Leyukaka
left a comment
There was a problem hiding this comment.
Diff-only review at ec98a65; nothing built or run here.
- SHOULD: a root CBV gets a published manifest that every Dispatch then refuses.
compile_dxilaccepts a CBV or SRV root descriptor for aroot_buffer_srvbinding (src/gfx1013_compute_native.cpp:1923-1927), the formatter emitssrv N buf root Rwithout knowing the parameter type, andcompute_root_srv_bufferrefuses any non-SRV parameter (src/startup_stubs/d3d12_compute_dispatch.inl:614-617). Such a key moves fromno_manifestto a manifest that never dispatches. The doc and the CBV control record this, but either refuse it at publish (the root is available incompile_dxilat that point) or give the SRV/CBV split of the affected shaders. - The new native check is consistent: group
(8, 4, 1)withDispatch(3, 3, 1)indexesx + 8*y + (tgid_x + 3*tgid_y)*32, so words 0..287 are each written once andreference(two_srvs=False, offset0=0)still applies. startup_compute_root_srv_native_(controls|warp|hardware)results are reported for 5c68687 only (docs/experiments/compute-root-buffer-srv-manifest.md:84-86); none yet for ec98a65, and the PR CI run does not execute them (82 tests, none of these names in the log).- Conflicts with #3498 (d99425f):
tests/native_compute_manifest_reasons.cppat the end ofmain()(keep both sets of blocks, final count+ 6) and the "has a line" sentence indocs/experiments/native-compile-dxil-refusals.md:29-30(both additions needed).
compile_dxil records the root parameter type on each root_buffer_srv binding (scalar_table) and format_compute_runtime_manifest refuses a root CBV as SRV kind root_buffer_srv, so a root-CBV program compiles to DXIL without a manifest instead of publishing one Dispatch always refuses. The manifest-reasons unit test gains declared_cbv/reflected_cbv refusals and an srv publish case; the --requests/--refusals/--watch check now uses the raw-root program as the CBV no-manifest case and a pure-SRV root signature as the two-line publish control; the native check's wrong-kind control now expects no manifest and Dispatch still refused with no translation. Docs record the refusal and ec98a65 Windows results (dev/release 6 passed, 1 skipped, hardware passed).
|
Addressed
Windows Verification (
|
Leyukaka
left a comment
There was a problem hiding this comment.
Re-review of 9e987c4, diff only (nothing built or run here). The root CBV point from ec98a65 is fixed: src/gfx1013_compute_native.cpp:1928-1934 records the root parameter type in scalar_table (declared_cbv / srv), and src/direct_compute_cache.cpp:969-972 publishes srv N buf root R only when it is not a CBV. Stale .csir entries are not reused, since X2W_NATIVE_SHADER_REVISION hashes both files.
CI is green, but its 82-test run lists no manifest_reasons or root_srv test, so the compile_dxil checks that cover the gfx1013_compute_native.cpp assignment (startup_compute_root_srv_native_check.py:200-210) did not run there; the doc says Windows re-verification of this head is pending.
Not blocking:
- The root CBV refusal reuses the generic
SRV kind root_buffer_srvreason, the same text as the offset / array /identity_dst_selshapes, so triage cannot tell them apart. scalar_tableunknown(no root signature) still publishessrv N buf root R.docs/experiments/compute-root-buffer-srv-manifest.md:103names a reviewer handle in-tree.- Mechanical conflicts, keep both sides: with #3498 in
tests/native_compute_manifest_reasons.cppanddocs/experiments/native-compile-dxil-refusals.md; with #3427 intests/startup_stream_consumer.cpp(two hunks).
Leyukaka
left a comment
There was a problem hiding this comment.
Re-approving on 3939007 (merge of main ff9dcef into 9e987c4). git show --remerge-diff shows only the two conflict hunks in tests/startup_stream_consumer.cpp, both resolved as a union (the PR's dispatch-root-srv-records32 mode and invoke, main's X2W_TEST_RECORDS32 condition and full_wave arguments), plus one reworded doc line; the diff against main is otherwise the one reviewed at 9e987c4 (13 files, +634/-37). CI is green on this head.
Nit, not blocking: after the auto-merge with main's root-UAV support, the assignment at src/gfx1013_compute_native.cpp:1949-1951 also runs for root_buffer_uav, so root UAVs get scalar_table = srv and compile_dxil prints table_view=srv on their u lines (tools/startup/compile_dxil.cpp:214). Limiting it to kind == root_buffer_srv would avoid the misleading label.
Not-Saii
left a comment
There was a problem hiding this comment.
Review of 393900706b956a961267ed9e6ebcfbe3655172ec: diff read in full, then built and run in an isolated Windows Sandbox (network off, PR tree exported with git archive, read-only). No MUST findings. Approving.
Findings
No MUST.
The change reads correctly. format_compute_runtime_manifest emits srv <reg> buf root <param> only for root_buffer_srv at byte offset 0, array_count == 1, no identity_dst_sel, and a scalar_table that is neither declared_cbv nor reflected_cbv (src/direct_compute_cache.cpp:969-979). Every other shape falls through to view_shape. translate_program records the root parameter type after the existing type check (src/gfx1013_compute_native.cpp:1950-1952). apply_reflected_table_use returns early for root kinds (:2046-2048), and apply_scalar_table_layout only touches accepts_cbv_window kinds, so nothing else writes scalar_table on a root binding. Outside the formatter, scalar_table is read only by the compile_dxil report (tools/startup/compile_dxil.cpp:212-214) and the mesh table branch (src/startup_stubs/native_mesh57.inl:377, which does not apply to root bindings), so emitted DXIL does not change. The frontend cache round-trips the new value: ScalarTable::srv is the last enum value (src/gfx1013_compute_native.h:94), which bounds the read at src/direct_compute_cache.cpp:140. The other checks on compile_dxil report lines match substrings (tests/native_global_load_check.py:160,195, tests/native_wave_request_check.py:203, tests/native_compute_raw_root_check.py:46-47, tests/native_global_store_check.py:315-327), so the appended table_view=... breaks none of them. native_compute_raw_root and native_global_store_* pass in the run below.
Earlier review points: the root CBV is refused at publish time, the in-tree handle is removed, and the #3427 consumer hunks are a union. Still open: #3498 conflicts in tests/native_compute_manifest_reasons.cpp and docs/experiments/native-compile-dxil-refusals.md, and both PRs add the same cube_program() / two_srv_root() / CUBE_REASON to tests/native_compute_manifest_reasons_check.py. Whichever lands second should keep one copy. This head merges cleanly with current main 2ff74a6a (git merge-tree --write-tree).
- SHOULD (PR body): the Windows verification blocks give commit, adapter and driver, but no Windows build and no debug-layer status. AGENTS.md says GPU reports must identify both. Not blocking: the run below gives them for this head.
- NIT
docs/experiments/compute-root-buffer-srv-manifest.md:67-106: the Verification section is a per-iteration log and is stale at this head. It still says Windows re-verification "is pending" (:88,:106), and it namesorigin/main 77d63db8(:67) and0 of 42(:70). The unit test prints0 of 52here. The passing 9e987c4 and 3939007 runs are only in the PR body. A single result for the final head would read better. - NIT (follow-up): the Python translator still publishes
srv N buf root Rfor a root CBV, andtests/startup_compute_root_srv_native_check.py:140-149pins that behavior. The two publishers now disagree; the Python manifest is refused at Dispatch bind time. A follow-up could make both refuse at publish time. - On the earlier root-UAV nit (the assignment at
src/gfx1013_compute_native.cpp:1950also runs forroot_buffer_uav): its only effect istable_view=srvon thecompile_dxilureport line, so it is cosmetic. Limiting the assignment toroot_buffer_srvis still cleaner.
What each test proves
native_compute_manifest_reasons: the formatter publishessrv 0 buf root 1forscalar_tableunknownandsrv. It refuses byte offset != 0, array,identity_dst_sel,declared_cbv,reflected_cbv, and a root view instride_srvs. It setsscalar_tabledirectly, so it does not cover the recording ingfx1013_compute_native.cpp.native_compute_manifest_reasons_requests: runs end to end throughcompile_dxil --requests,--refusals,--watchandtriage_run.py. The CBV+SRV root program compiles with no manifest (SRV kind root_buffer_srv). The same code under a pure-SRV root signature publishes both root lines. The cube comparison sample gives the other no-manifest reason. This test covers the recording.startup_compute_root_srv_native_controls:compile_dxil --requestspublishessrv 0 buf root 2anduav 0 table 1 32. The root-CBV variant compiles with no manifest, and the byte-16 program is refused asunaligned descriptor table entry.startup_compute_root_srv_native_{warp,hardware}: the published native translation dispatches withoutX2W_NATIVE_SHADERS, and all 320 words match the CPU model. The plain layout is refused at bind, and the CBV variant stays atno translation.startup_compute_root_srv_dispatch_{warp,hardware}: the Python-translator path is unchanged by the defaulteduav_imm.- Regression on the same code paths:
native_compute_raw_root,native_global_store_{encodings,hardware}, andstartup_compute_d16_sample_srv_*, which shares the records32 condition and invoke chain in the consumer.
Mutation
Reverted the fix by deleting the root_buffer_srv branch at src/direct_compute_cache.cpp:969-979 in a scratch copy inside the sandbox. The rebuild changed compile_dxil.exe, native_compute_manifest_reasons.exe and native_store_replay.exe, so the build compiled the mutant. 5 of 13 tests failed:
native_compute_manifest_reasons:3 of 52 manifest reasons wrong(both publish cases, plus the stride case, which now getsSRV kind root_buffer_srv)native_compute_manifest_reasons_requests: the pure-SRV key loses its manifeststartup_compute_root_srv_native_controls,_warpand_hardware:assert_publishedfinds no manifest
With the file restored from the head (sha256 matches), all 13 pass again.
Evidence (AGENTS.md)
- Commit:
393900706b956a961267ed9e6ebcfbe3655172ec, configuredcmake --preset dev -DX2W_WITH_OPUS=OFF(Debug, MSVC 19.44.35230), with Agility 1.620.2 and app-local WARP directories set. - Build:
cmake --build --preset dev --target compile_dxil native_compute_manifest_reasons startup_stream_consumer native_store_replay offscreen_check - Test:
ctest --preset dev --no-tests=error --output-on-failure -V -R '^(native_compute_manifest_reasons(_requests)?|startup_compute_root_srv_(dispatch|native)_.*|startup_compute_d16_sample_srv_.*|native_compute_raw_root|native_global_store_(encodings|hardware))$' - Head: 13 passed, 0 failed, 0 skipped (77). Passed:
native_compute_raw_root,native_compute_manifest_reasons(0 of 52 manifest reasons wrong),native_compute_manifest_reasons_requests,native_global_store_encodings,native_global_store_hardware,startup_compute_d16_sample_srv_{controls,warp,hardware},startup_compute_root_srv_dispatch_{warp,hardware},startup_compute_root_srv_native_{controls,warp,hardware}. Thestartup_compute_root_srv_native_warptest passed outright on this host's WARP; it did not skip 77 as on the author's Win11 WARP. - Mutant: 8 passed, 5 failed (listed above), 0 skipped. Restored: 13 passed, 0 failed, 0 skipped.
- Base comparison: not needed (no head failures).
- Adapter: NVIDIA GeForce RTX 4090 through the sandbox vGPU, driver 10.0.26100.1150 as WMI reports it inside the sandbox (the fixtures do not print a driver). Microsoft Remote Display Adapter is also present.
- OS: Windows 11 Enterprise 10.0.26100 (sandbox; host build 26300).
- Debug layer: off. The fixtures print
debug: unavailable/debug layer: unavailable. A System32d3d12SDKLayers.dll(10.0.26100.9818) was copied in, and Agility's copy is in the build directory, but the fixtures still did not enable it; they print no HRESULT. - CI at this head (run 46308816857, green): the Windows job ran the
prpreset's 82 tests, none of them from this PR or the regression set above. The Linux job rantests/startup_compute_root_srv_native_check.pywith no arguments (pure-Python controls only).
Not-Saii
left a comment
There was a problem hiding this comment.
Re-review of 46c8346db81cf448ab65ed395585651d1f1262fe, a merge of main 844e57da into 39390070, which I approved earlier. I compared the PR's diff against its merge base before and after the merge (git diff ff9dcef0 39390070 vs git diff 844e57da 46c8346d) and read the conflict resolutions with git show --remerge-diff. I also reran the same sandbox set. Approving.
What the merge changed in the PR's work
- Conflicts, all resolved as unions.
src/direct_compute_cache.cpp: theroot_buffer_srvbranch is unchanged, and main'styped_dword_view_bytescondition on the next branch is kept.tests/native_compute_manifest_reasons.cpp: both root-SRV blocks and main's twosmpcsampler blocks are kept. The count is+ 8(main's 6 plus the PR's 2), and the test prints0 of 59.tests/startup_stream_consumer.cpp: the records32 condition keeps bothdispatch-root-srv-records32and main'snative_totals.docs/experiments/native-compile-dxil-refusals.md: the root-SRV sentence is merged into main's comparison-texture wording.
- One behavior change inside the merge commit:
src/gfx1013_compute_native.cpp:2060-2063now recordsscalar_tableonly forroot_buffer_srv, so a root UAV keepsunknown. This resolves the earlier root-UAV label nit. Root UAVs are back to main's behavior, and the root-SRV path is unchanged. NIT: next time, put a behavior change like this in its own commit rather than the merge. - Docs:
docs/experiments/compute-root-buffer-srv-manifest.mdno longer says verification is pending. It records the 3939007 Windows run and says the merge head is unverified; the run below covers it.:67still namesorigin/main 77d63db8(minor). - No downloads, network calls, CI, CMake or agent-config changes in the PR's diff. The PR touches the same 13 files as before.
Sandbox rerun at 46c8346
Same commands as the previous review: cmake --preset dev -DX2W_WITH_OPUS=OFF (Debug, Agility 1.620.2 and app-local WARP), the five targets, and ctest --preset dev --no-tests=error --output-on-failure -V -R '^(native_compute_manifest_reasons(_requests)?|startup_compute_root_srv_(dispatch|native)_.*|startup_compute_d16_sample_srv_.*|native_compute_raw_root|native_global_store_(encodings|hardware))$'.
- Head: 13 passed, 0 failed, 0 skipped (77).
native_compute_manifest_reasonsprints0 of 59 manifest reasons wrong.startup_compute_root_srv_native_warppasses outright. - Mutation: the same revert (delete the
root_buffer_srvpublish branch, now atsrc/direct_compute_cache.cpp:1078-1088). The rebuild relinkedcompile_dxil.exeandnative_compute_manifest_reasons.exe. Result: 8 passed, 5 failed:native_compute_manifest_reasons:3 of 59 manifest reasons wrongnative_compute_manifest_reasons_requestsstartup_compute_root_srv_native_controls,_warpand_hardware
- Restored from head (sha256 matches): 13 passed, 0 failed, 0 skipped.
- Base comparison: not needed (no head failures).
- Adapter: NVIDIA GeForce RTX 4090 through the sandbox vGPU, driver 10.0.26100.1150 (WMI inside the sandbox). OS: Windows 11 Enterprise 10.0.26100.
- Debug layer: enabled this time. A System32
d3d12SDKLayers.dllprobe returnedD3D12GetDebugInterface hr=0x00000000, and the fixtures printdebug layer: enabled/debug: enabled, no error message. - CI at this head (run 46421844696) is green. As before, its Windows
prpreset runs none of these tests.
The earlier findings still stand, minus the root-UAV nit: the SHOULD on missing Windows build and debug-layer fields in the PR body's GPU reports, and the Python-translator root-CBV follow-up. Neither blocks.
|
Review of 46c8346: merge-ready, no MUST.
SHOULD
NIT AI-assisted. |
Refs #3224, #2935
In the #3224 census,
SRV kind root_buffer_srvwas an unclaimedcompiled, no runtime manifestitem (10 shaders / 47,110 dispatches). The dispatch reader (src/startup_stubs/d3d12_compute_dispatch.inl) and the graphics manifest already parsed and executedsrv <i> buf root <param>; only the compute manifest publisher refused it.Change
format_compute_runtime_manifest(src/direct_compute_cache.cpp) publishes aroot_buffer_srvview assrv <register> buf root <parameter>, only whenbyte_offset == 0,array_count == 1and!requires_identity_dst_sel, matchingformat_graphics_runtime_manifestand the compute Dispatch reader. Any other shape stays refused by name (SRV kind root_buffer_srv, witharrayappended whenarray_count != 1), and aroot_buffer_srvnamed instride_srvsstays refused (stride words from a view that is not one raw vector SRV).Tests
tests/native_compute_manifest_reasons.cpp: publishes aroot_buffer_srvat byte offset 0 (srv 0 buf root 1) and keeps the byte-offset, array,identity_dst_selandstride_srvsrefusals.tests/native_compute_manifest_reasons_check.py: the no-manifest case is now the cube comparison sample (SRV kind cube_comparison_srv cube, the sampled program with itsimage_sample_c_lzdimension patched from 2D to cube) through--requests,--refusals,--watchandtriage_run.py. A control keeps verifying the raw-root program publishessrv 0 buf root 1(CBV at parameter 1) andsrv 1 buf root 2(SRV at parameter 2) viacompile_dxil --requests.tests/startup_compute_root_srv_native_check.py(new, withtests/cmake/startup_compute_root_srv_native.cmakeandtests/checks/python-linux/root-buffer-srv-manifest.txt): itscompilemode publishes the single-root-SRV program throughcompile_dxil --requests; its warp/hardware modes dispatch the published program through the stand-in withoutX2W_NATIVE_SHADERSand match all 320 output words against the CPU model, with the root-CBV wrong-kind control (manifest publishes, Dispatch refuses witha compute root input is not a shader resource view parameter).docs/experiments/compute-root-buffer-srv-manifest.md; the refusals doc now uses the cube comparison as its example and records the root-buffer publication rule;docs/experiments.mdanddocs/experiments/startup-compute-root-srv.mdupdated.Linux verification
The manifest-reasons unit test passes
0 of 42 manifest reasons wrongagainst a verbatim extract of the formatter compiled with the realtests/native_compute_manifest_reasons.cppon Linux (the full C++ build needs Windows). Five spot-mutations on throwaway copies are all killed: reverting theroot_buffer_srvbranch (the publish case and the stride case fail), dropping thearray_count == 1guard (the array refusal fails), dropping thebyte_offset == 0guard (the byte-offset refusal fails), admittingrequires_identity_dst_sel(the identity refusal fails), and admittingroot_buffer_srvinstride_srvs(the stride refusal fails).Two points for Windows to arbitrate: the
_requestscheck now mixes two request-writing helpers in one--requestsdirectory (the existing one for the root/control requests, the translate one for the cube request), and--refusalson the cube request is new (the Python translator refuses the cube program outright, so the cube case is native-path only).Fix (WIN-VERIFY round 2)
Windows verification of
1cc8caa7(dev) passednative_compute_manifest_reasons,native_compute_manifest_reasons_requests,startup_compute_root_srv_dispatch_(warp|hardware)and the form/docs/bidi checks, butstartup_compute_root_srv_native_(controls|warp|hardware)failed atcompile_dxil: the program loaded its output UAV descriptor from table byte 16 and the native compiler refused it withunaligned descriptor table entry(the store at+0x70).This head moves the load to table byte 32 (
uav 0 table 1 32):make_program()takes auav_imm(default0x10, so the Python-translator dispatch test is unchanged) and the native check uses0x20with the newdispatch-root-srv-records32consumer mode, which places the descriptor at byte 32 and zeroes byte 16. The byte-16 program stays as an explicitcompile_dxil --requestsrefusal control (no manifest, no DXIL, a.failnaming the reason), and the plain layout stays as a no-descriptor-at-byte-32 bind refusal control. The root-CBV wrong-kind control moves to the byte-32 program too.Linux verification of this head: form/docs/bidi pass (177 files, 716 links), the new check's pure-Python controls pass,
run_checks_parallelpasses 1/1, manifest-reasons0 of 42against a verbatim formatter extract, and 5/5 spot-mutations are killed (3 formatter re-runs plus 2 new controls mutations).Hardening (pre-ready, full 32-thread wave)
Windows verification of
5c686870passed on hardware:dev6 passed, 1 skipped andrelease6 passed, 1 skipped, plus the repo health checks, withstartup_compute_root_srv_native_warpskipping 77 on Win11 4-lane WARP(
adapter has no 32-lane waves).Pre-ready audit found one blocking risk for WARP 1.0.22 (Server 2025, which has
32-lane waves): the native check used the dispatch check's
GROUP = (2, 3, 4)(24 threads), a partial wave under
WaveSize(32)that hits theWaveActiveBallot(true)failure (#3160, which causedCHANGES_REQUESTEDon PR#3427). This head gives the native program its own full 32-thread wave
NATIVE_GROUP = (8, 4, 1)(v_mad_u32_u24 v3, v1, 8, v0, group offset(tgid_x + 3 * tgid_y) * 32) and dispatchesDispatch(3, 3, 1)(9 groups) fordispatch-root-srv-records32; 9 groups x 32 threads cover the same 288 activewords with 32 trailing sentinels, still matching
reference(two_srvs=False, offset0=0).dispatch-root-srvstays at(3, 2, 2), sostartup_compute_root_srv_dispatch_check.pyis untouched. Allexisting controls are kept (byte-16 unaligned refusal, plain-layout refusal,
root-CBV wrong-kind refusal).
Linux verification of this head:
An offline harness disassembles the new program (
v_mad_u32_u24 v3, v1, 8, v0,s_mul_i32 s24, s11, 3,s_add_u32 s24, s24, s10,s_mul_i32 s24, s24, 32,s_load_dwordx4 ... 0x20) and simulatesDispatch(3, 3, 1)x(8, 4, 1):the index set is exactly 0..287, and
reference(two_srvs=False, offset0=0)is288 active words + 32 trailing sentinels. 6/6 spot-mutations on throwaway
copies are killed:
NATIVE_GROUPback to(2, 3, 4)(numthreads pin), thev_madmultiplier 8 to 2, the groups_mul32 to 24, a records32Dispatch(3, 3, 1)assertion back to(3, 2, 2), the consumer records32dispatch back to
(3, 2, 2), and the plain-layout assertion to(3, 3, 1).Full
compile_dxil/ native CTest verification needs Windows (this Linux hostcannot build or run them); the dispatch check itself is untouched, so its
Windows run is unchanged.
Windows Verification (ec98a65)
AI-assisted.
Fix (review: refuse root CBVs at manifest publish time)
Addresses @Leyukaka's SHOULD review of
ec98a658(PRR_kwDOV10-fc8AAAABa9kvmQ): a root CBV got apublished manifest that every Dispatch then refused.
compile_dxilnow records the root parametertype on each
root_buffer_srvbinding (binding.scalar_table:declared_cbvfor a root CBV,srvfor a root SRV;
src/gfx1013_compute_native.cpp:1928) andformat_compute_runtime_manifest(
src/direct_compute_cache.cpp:969) refuses a root CBV (declared_cbv/reflected_cbv) asSRV kind root_buffer_srv, so the program compiles to DXIL with no manifest instead of publishingone that never dispatches. Cache serialization already round-trips
scalar_table(
src/direct_compute_cache.cpp:96,140);native_mesh57.inlhandlesdirectseparately and isunaffected. The Dispatch bind-time CBV refusal stays as defense in depth.
Tests:
tests/native_compute_manifest_reasons.cppgainsdeclared_cbv/reflected_cbvrefusals andan
srvpublish case (still publishes forunknown);tests/native_compute_manifest_reasons_check.pynow uses the raw-root program (CBV at parameter 1) as the CBV no-manifest case and the same code under
a pure-SRV root signature as the two-line publish control (
srv 0 buf root 1,srv 1 buf root 2);tests/startup_compute_root_srv_native_check.pywrong-kind control now expectscompile_dxil --requeststo reportno_manifest ... SRV kind root_buffer_srvwith.cs.csobut no.txt/.fail,and Dispatch staying refused with
no translation. Docs record the refusal and theec98a658Windows results.
Linux verification of this head:
The manifest-reasons unit test passes
0 of 45 manifest reasons wrongagainst a verbatim extractof the formatter compiled with the real
tests/native_compute_manifest_reasons.cppon Linux (the fullC++ build needs Windows). Branch-by-branch mutation audit on throwaway copies, 9/9 killed on the
formatter gate (revert the gate, drop either
scalar_tablecheck, flip either!=to==,drop/flip
byte_offset == 0, droparray_count == 1, drop!requires_identity_dst_sel), plus thepublish/refuse matrix for the recording (
unknown/srvpublish,declared_cbv/reflected_cbvrefuse) killing drop/swap/always-srv/always-declared_cbv recording mutations, and the new
assert_no_manifesthelper verified against positive and negative cases.Full
compile_dxil/ native CTest verification needs Windows (this Linux host cannot build or run them).Windows Verification (9e987c4)
AI-assisted.
Merge (upstream/main ff9dcef, PR #3427)
Merged
origin/mainff9dcef0(PR #3427) intocompute/root-buffer-srv-manifest. The only conflict was intests/startup_stream_consumer.cpp(two hunks, both sides kept verbatim): therecords32descriptor-move condition now includes bothdispatch-root-srv-records32and theX2W_TEST_RECORDS32=1term, and the dispatch keepsdispatch-root-srv-records32at(3, 3, 1)before thefull_wave ? 3 : 2 / 1 : 2fallback. Also removed the in-tree reviewer handle indocs/experiments/compute-root-buffer-srv-manifest.md:103per the review. No #3498 changes folded in.Linux verification of this head:
Note on the merge: the merged consumer hunks are a verbatim union of both sides (all 6 lines from both sides asserted present), but the Linux suite cannot see Windows-only consumer code — 4/4 spot-mutations of the merged hunks (drop either records32 condition term, drop the records32 dispatch branch, revert the full_wave ternary) survive all 60 Linux checks on throwaway copies. The consumer behavior is therefore covered by Windows verification, not by the Linux run.
Windows Verification (46c8346)
AI-assisted.