shader: cover mesh amplification forms #1196
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1203"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-24T03:32:37Z.
Change
Add evidence for the mesh and amplification boundary (XCL-18).
offscreen_check --mesh-amplified <as.dxil> <ms.dxil> <ps.dxil> <fixture>creates onepipeline state with AS, MS and PS subobjects and issues
DispatchMesh(1,1,1)for a singleamplification group.
tests/mesh_amplified_check.pysource-buildsas_6_5,ms_6_5andps_6_0. The ASpasses a depth word in its payload; the MS exports the same 80-byte trace as the mesh-entry
fixtures, and the 32x32 target compares all 1,024 RGBA pixels.
amplification stage by name:
Unsupported amplification stage: only the bounded mesh stage is translated.tests/mesh_amplification_refusal_check.pyproves the stage 14 refusal while stage 13 meshremains accepted. The accepted form stays one triangle-topology MS with 128 threads, three
vertices and one primitive in a single group.
Verification
cmake --preset devandcmake --build --preset dev --target offscreen_check: passed withMSVC 19.44.
ctest --preset dev --no-tests=error -R '^mesh_' -V: 37/37 passed, including every_hardwarevariant.mesh_amplified_draw_warpand its hardware counterpartpassed with a mesh-only control and the AS+MS positive case; 80-byte trace and 1,024 pixels
with zero mismatches.
pixels still match; a wrong image keeps the trace intact and reports 1,024 pixel mismatches.
tests/docs_links_check.py:Self-test passed.,Checked 16 Markdown files and 277 links..git diff --check origin/main...HEAD: clean.Evidence
shader/mesh-as-forms, head209745a3, rebased onorigin/main5a0dbd5c.vendor 1414, device 008c); AMD Radeon RX 9060 XT (vendor 1002, device 7590, driver
32.0.32029.2010); DXC 1.8.2502.11 from
10.0.26100.0; debug layer unavailable.mesh_pipeline_ms=0.659for the mesh-only control and1.092forAS+MS.
docs/experiments.mdrecords the exact commands, controls and environment; the capabilitymatrix adds the new tests.
the meshlet command stream are not translated. The AS+MS fixture is source built and makes no
console mesh-shader ABI claim. No
src/change and no production export.Windows SDK headers, and the existing local mesh-entry evidence. No XCL code, table or output.
Checklist
boundary.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:41:06Z.
Review: COMMENTED
Technical review on Linux (Windows build/tests were not executed locally).
Checks run (Linux, commit
026f45e9)/root/.local/share/x2w-rev-venv/bin/python -B tests/mesh_amplification_refusal_check.py: passed (mesh stage accepted; amplification and compute stages refused by name)./root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: passed (15Markdown files,269links)./root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (979files)./root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py:Ran 10 tests — OK./root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py:Ran 11 tests — OK.Findings
No blocking issues found:
tools/mesh_entry_aot.py(require_mesh_stage) validates bothPSV0[28]and theDXILprogram kind before mesh profile checks and rejects stage14(amplification) by name.tests/mesh_entry_draw.cpp(MeshAmplifiedPipeline) keeps theASsubobject out ofMeshPipeline,tests/offscreen_check.cppadds--mesh-amplifiedwith CLI self-tests, andtests/mesh_amplified_check.pycovers positive (--mesh-entry,--mesh-amplified), stale-payload (trace byte 26 mismatch, 0 pixel mismatches), and wrong-image (1,024 pixel mismatches) controls.docs/experiments.mdanddocs/xcl-capability-matrix.mdmatch the measured scope and remain title-neutral.check_mesh_drawintests/mesh_entry_draw.cppduplicates the common stream field initialization across theif (amplification)andelsebranches.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:37:56Z.
Review: COMMENTED
Linux retest at commit
209745a3(rebased ontomainsince026f45e9; Windows build and D3D12 runtime tests were not executed locally).Scope & diff audit (
209745a3)tools/mesh_entry_aot.py:require_mesh_stage(chunks)checksPSV0[28]andDXILprogram kind before profile checks, refusing stage14withUnsupported amplification stage: only the bounded mesh stage is translatedand other non-13stages by name.tests/mesh_amplification_refusal_check.py&tests/pixel_aot_check.py: testsrequire_mesh_stageandtranslateon stage14, mismatched(13, 14)/(14, 13)stage headers, and stage5(compute), while keeping stage13(mesh) accepted.tests/mesh_amplified_check.py,tests/mesh_entry_draw.cpp,tests/offscreen_check.cpp,tests/desktop_gpu.h,CMakeLists.txt: adds--mesh-amplified <as> <ms> <ps> <fixture>withMeshAmplifiedPipeline(AS+MS+PS), CLI self-tests, andmesh_amplified_draw_{hardware,warp}+mesh_amplification_refusal.README.md,docs/experiments.md,docs/xcl-capability-matrix.md: documents the source-built AS+MS+PS fixture, stale-payload control (first_mesh_export_mismatch_byte=26), and explicit refusal of guest amplification translation.Checks run (Linux, commit
209745a3)LLVM_LIB=/usr/lib/llvm-19/lib/libLLVM-19.so /root/.local/share/x2w-rev-venv/bin/python -B tests/mesh_amplification_refusal_check.py: passed (mesh stage accepted; amplification and compute stages refused by name).LLVM_LIB=/usr/lib/llvm-19/lib/libLLVM-19.so /root/.local/share/x2w-rev-venv/bin/python -B tests/pixel_aot_check.py: passed (exit code 0).LLVM_LIB=/usr/lib/llvm-19/lib/libLLVM-19.so /root/.local/share/x2w-rev-venv/bin/python -B tests/form_coverage_check.py: passed (form coverage checks passed)./root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: passed (Self-test passed. Checked 16 Markdown files and 277 links.)./root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (Self-test passed. Checked 1033 tracked source, script and build/CI files: no bidirectional controls.)./root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py: passed (Ran 12 tests in 0.034s - OK).mesh_amplified_draw_*/offscreen_checkD3D12 runtime tests: not executed on Linux.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:35:17Z.
Resolved the CMake and capability-matrix conflicts at
910809bb. The branch keeps the mesh unary draw, the source-built AS+MS+PS draw and the amplification refusal check. Windows Release passed all nine selected tests on RTX 4060 Laptop and WARP with zero skips: mesh_amplified_draw, mesh_amplification_refusal, mesh_entry_unary_draw, mesh_entry_draw and mesh_pixel_pipeline.