startup: translate slot 57 mesh requests without a pixel stage (Part of #2413) #2512
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2520"
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 Leyukaka on 2026-11-25T19:36:39Z.
Part of #2413, item T5, the no-pixel-stage half (claim). The null-export depth-only pixel stage is not touched and stays refused.
A slot 57 request whose
req_<key>.ps57is empty was refused intranslate_mesh57withslot 57 mesh without a pixel stage is not covered. It now translates when the mesh stage has the accepted shape:Pipelinetakesps_code=None, skips the pixel stage and its linkage checks, and keeps the position-export check.MeshPipeline.hlsl_msremoves the parameter write statements when there is no pixel stage, as it already does for unreadfparam/hparamfields. The rest of each export line is kept, including its exec guard andmesh_vertex = true.VSOutthen holds onlySV_Position. Position and primitive exports are unchanged.translate_mesh57emits and compiles only the mesh stage (<key>.ms57.hlsl,<key>.ms57.cso, published from the staging directory as before).<key>.ms57.txtis still written last.ps noneline afterparams. A pair with a pixel stage writes exactly the same manifest as before.pending_keystreats a published result whose manifest hasps noneas done with.ms57.csoalone, so it is not retranslated on every pass. A pair still needs both.ms57.csoand.ps57.cso.Tests (Windows 11, Python 3.14, DXC from the Windows SDK 10.0.26100), at this branch's head
python -B tests/startup_mesh57_skeleton_check.py: ok. It checks:.ps57.*output;ps nonemanifest line, and the unchanged pair manifest;VSOutwith onlySV_Position;o.paramwrites, and the position and index writes still present;mesh_vertex = truemarks as the paired shader;pending_keyscases: a mesh-only result is done, a mesh-only result without.ms57.csois pending, a pair without.ps57.csois still pending;startup_mesh57_skeleton_check.py draw <dxc> offscreen_check warpand... hardware: ok. DXC compiles the mesh-only stage, and the existing paired draw matches (1024 pixels, 0 mismatches, on WARP and an RTX 5080).tests/startup_gfx2hlsl_watch_check.py: ok. Its synthetic no-pixel mesh now reaches the shape check, and expects the same refusal as the synthetic paired mesh.startup_translator_check,startup_compute_translate_check,startup_gfx2hlsl_refusals_check,startup_gfx2hlsl_capture_check,startup_stream_interface_check,startup_flat_param_check,startup_gfx2hlsl_waitcnt_depctr_checkandstartup_compute_request_offline_check: ok.Mutation checks, run by hand. The non-draw check fails on each:
pending_keysignoringps none;mesh_vertexmark);ps noneline not written;Measured on a local capture (counts only). Before this change, 108 slot 57 requests without a pixel stage were refused at this gate. With it, none of the 108 translates yet. Their next first refusals are:
slot 57 mesh: a branch outside the group-memory exchanges is not covered: 95;s_cselect_b64 on a wave mask: 9;So this removes the gate; the branch support is the next step for these programs. No runtime path loads
.ms57results yet, as before.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:42:34Z.
Review: COMMENTED
Review of head
b4e0fec3(comment only).Result: sound. No blocking findings.
What I checked
tools/startup/gfx2hlsl.py:Pipelinewithps_code=Nonekeeps the position-export check and skips pixel linkage.MeshPipeline.hlsl_msdrops only theo.paramNwrites, so the exec guard andmesh_vertex = truestay.translate_mesh57compiles only the mesh stage. Theps nonemanifest line is written only for the no-pixel case, so paired manifests are unchanged.pending_keys: aps noneresult with.ms57.csois done. A pair without.ps57.csois still pending..ms57yet and that the 108 captured requests still stop at later refusals. I make no claim about game startup. Executable results were not checked here.Commands run locally (Linux, worktree at this head)
python3 -B tests/startup_mesh57_skeleton_check.py: okpython3 -B tests/startup_gfx2hlsl_watch_check.py: passedpython3 -B tests/startup_translator_check.py: 0 failedpython3 -B tests/startup_gfx2hlsl_refusals_check.py: okpython3 tests/docs_links_check.py: okpython3 tests/bidi_controls_check.py: okgit diff --check origin/main...HEAD: cleanstartup_mesh57_skeleton_check.pyfail:pending_keysignoringps none; parameter writes kept;ps nonemanifest line changed.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:49:02Z.
Win2025 WARP receipt for head
781f004fafter updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
781f004fb41ff19f8dae51048e9a83f2cae6db80:--preset dev):cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim -- -j 2):36.14s(configure2.39s)/O2(--preset release):cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim -- -j 2):57.71s(configure2.49s)tests/mesh_heap_sampler_check.pyok (0.8s),tests/startup_buffer_address_check.pyok (0.5s),tests/startup_compute_request_offline_check.pyok (0.5s),tests/startup_compute_translate_check.pyok (0.3s),tests/startup_flat_param_check.pyok (0.1s),tests/startup_gfx2hlsl_add_sub_co_check.pyok (0.1s),tests/startup_gfx2hlsl_add_sub_co_ci_check.pyok (0.2s),tests/startup_gfx2hlsl_bit_alu_check.pyok (0.8s),tests/startup_gfx2hlsl_capture_check.pyok (1.1s),tests/startup_gfx2hlsl_cmp16_check.pyok (0.3s),tests/startup_gfx2hlsl_compare_dst_check.pyok (0.1s),tests/startup_gfx2hlsl_compute_check.pyok (0.4s),tests/startup_gfx2hlsl_cselect_mask_check.pyok (0.1s),tests/startup_gfx2hlsl_cvt_alu_check.pyok (0.1s),tests/startup_gfx2hlsl_f32_lg_check.pyok (1.3s),tests/startup_gfx2hlsl_f32_nan_check.pyok (5.2s),tests/startup_gfx2hlsl_getpc_refusal_check.pyok (0.1s),tests/startup_gfx2hlsl_handler_arity_check.pyok (0.2s),tests/startup_gfx2hlsl_image_arity_check.pyok (0.2s),tests/startup_gfx2hlsl_image_get_lod_check.pyok (0.2s),tests/startup_gfx2hlsl_int_med3_check.pyok (0.2s),tests/startup_gfx2hlsl_join_symbols_check.pyok (0.3s),tests/startup_gfx2hlsl_loop_constants_check.pyok (0.2s),tests/startup_gfx2hlsl_mask_overwrite_check.pyok (0.2s),tests/startup_gfx2hlsl_operand_count_check.pyok (0.7s),tests/startup_gfx2hlsl_pack_absdiff_check.pyok (3.9s),tests/startup_gfx2hlsl_readfirstlane_recompute_check.pyok (0.1s),tests/startup_gfx2hlsl_readfirstlane_uniform_check.pyok (0.1s),tests/startup_gfx2hlsl_refusals_check.pyok (0.6s),tests/startup_gfx2hlsl_root_check.pyok (0.9s),tests/startup_gfx2hlsl_sad_check.pyok (0.4s),tests/startup_gfx2hlsl_saveexec_same_reg_check.pyok (0.1s),tests/startup_gfx2hlsl_scalar_arity_check.pyok (0.3s),tests/startup_gfx2hlsl_scalar_brev_fold_check.pyok (0.1s),tests/startup_gfx2hlsl_scalar_m0_check.pyok (0.1s),tests/startup_gfx2hlsl_sdwa_cvt_check.pyok (0.3s),tests/startup_gfx2hlsl_sgpr_spill_check.pyok (0.1s),tests/startup_gfx2hlsl_shift64_check.pyok (0.2s),tests/startup_gfx2hlsl_smem_offset_check.pyok (0.1s),tests/startup_gfx2hlsl_sop2_complement_check.pyok (6.7s),tests/startup_gfx2hlsl_sopk_accum_check.pyok (0.9s),tests/startup_gfx2hlsl_sopk_signext_check.pyok (0.1s),tests/startup_gfx2hlsl_swap_check.pyok (0.3s),tests/startup_gfx2hlsl_vopc_sdwa_check.pyok (5.0s),tests/startup_gfx2hlsl_waitcnt_depctr_check.pyok (0.1s),tests/startup_gfx2hlsl_watch_check.pyok (2.5s),tests/startup_image_2d_array_check.pyok (0.2s),tests/startup_image_3d_check.pyok (0.1s),tests/startup_image_gather_lz_check.pyok (0.9s),tests/startup_image_load_d16_check.pyok (1.1s),tests/startup_image_sample_a16_check.pyok (0.2s),tests/startup_image_sample_b_check.pyok (0.2s),tests/startup_image_sample_c_check.pyok (0.2s),tests/startup_image_sample_l_check.pyok (0.2s),tests/startup_image_sample_lod_check.pyok (0.6s),tests/startup_inline_sampler_check.pyok (0.2s),tests/startup_mesh57_skeleton_check.pyok (0.2s),tests/startup_run_ps1_check.pyok (11.0s),tests/startup_run_sh_check.pyskipped (POSIX launcher, exit 77;0.1s),tests/startup_sampler_heap_check.pyok (0.1s),tests/startup_smem_address_check.pyok (0.1s),tests/startup_stream_fetch_check.pyok (0.2s),tests/startup_stream_interface_check.pyok (0.2s),tests/startup_translator_check.pyok (0.5s)sccache: -205/-207 hits; wall163.3sAI-assisted; commands listed were executed locally.