Skip to content

startup: gfx2hlsl refusals across an offline shader archive census (846 of 1,171 pairs are NGG vertex programs) #1723

Backlog

Description

@NiiRoZz

Found while translating every pixel/vertex program pair that an offline pass could carve from a package shader archive, not only the pipelines a startup run happens to create. The census below is what tools/startup/gfx2hlsl.py --pending refuses on that population.

Population

  • 1,171 adjacent pixel → vertex program pairs carved from the archive's zlib streams, each written once per recorded root signature (3), so 3,513 requests.
  • 132 requests translated and compiled with FXC; 3,381 were refused.
  • Counts below are distinct program pairs per refusal. A pair can be refused for a different reason under each root signature, so the column sums to more than 1,171.

Refusals

Pairs Refusal Existing work
846 ds_write_b32 (NGG vertex programs, see below) none for gfx2hlsl; #1541 / #1566 cover compute LDS only
215 s_load through sN holding None none found
136 s_load through sN holding ('ptrhi', ('root', N)) none found
118 descriptor operand s[N:N] holds None none found
59 v_lshrrev_b64 lowered in pixel_aot (#964), not in gfx2hlsl; #1703 tests only the 32-bit shifts
9 v_cvt_f32_i32 with ['mul:2'] #1705 / #1707
3 operand 'off' #1674 / #1676
2 numeric use of sN holding descnum none found
2 v_swap_b32 lowered in pixel_aot (#771)
1 each image_gather4_lz, s_bfm_b64, buffer_load_format_x, buffer format BUF_FMT_2_10_10_10_UNORM, buffer format BUF_FMT_8_8_8_8_UINT, buffer format BUF_FMT_16_16_SNORM, operand '|vN|', s_load through sN holding ('ud', N), v_cmp_class_f16, export target mrtz, numeric use of sN holding ptr s_bfm_b32 and v_cmp_class_f16 are lowered in pixel_aot (#601, #612)

The largest group: NGG vertex programs

Every ds_write_b32 refusal is in a vertex program (2,538 of 2,538 refused requests), and every one of those programs has the same shape:

  • s_sendmsg 0x9 (GS_ALLOC_REQ) once;
  • exp target_20 (primitive export) and exp pos0, plus param0… exports;
  • LDS traffic between barriers: 7,617 ds_write_b32 and 7,617 ds_read_b32, 12,693 s_barrier, and a few ds_read_b64, ds_read2_b32, ds_write_b128, ds_write2_b32, ds_write2st64_b32, ds_write2_b64.

That is the RDNA 2 NGG (primitive shader) form: the wave allocates vertex and primitive export space, exchanges per-vertex values through LDS and exports the primitive itself. A desktop vertex shader has no LDS, no barrier and no primitive export, so this cannot be lowered instruction by instruction. Options to evaluate:

  1. Recognise the common NGG pass-through pattern (the LDS round trip only moves a lane's own vertex values and the primitive export is the identity triangle list) and drop it, keeping the pos/param exports.
  2. Lower NGG programs to a mesh shader, where group-shared memory, barriers and primitive output exist (SetMeshOutputCounts for the GS_ALLOC_REQ counts).

Done when

  • The NGG group has a decided lowering, with a source-built fixture assembled from documented encodings (not archive bytes) and a negative control, split into its own issue if it is larger than one PR.
  • Each "none found" row above has an issue or is explained (for the three provenance refusals: which loads the tracker cannot resolve, and whether a root-constant pointer high word can be resolved from the root signature).
  • The rows already lowered in pixel_aot are either shared with gfx2hlsl or have a reason to stay separate.

Not in this issue: pipelines whose programs are DXBC containers in the executable, and pairings that are not adjacent in the archive.

AI-assisted (Claude Code).

Activity

  1. NiiRoZz commented on Nov 24, 2026

    @NiiRoZz
    ContributorAuthor

    Correction: per-pair recount

    The table above counts refusals per request, and every pair was written once per recorded root signature (3). A pair bound with a root signature it does not use can be refused for that reason alone, so the per-request counts mix translator gaps with combinations the title never creates. Recounted per pair:

    • 1,171 pairs; 104 translate under at least one root signature (27 under more than one).
    • Refused under all three root signatures with the same reason (translator gaps, independent of the root):
    Pairs Refusal
    846 ds_write_b32 (NGG vertex programs, unchanged)
    56 v_lshrrev_b64
    9 v_cvt_f32_i32 with ['mul:2'] (#1705 / #1707)
    2 operand 'off' (#1674 / #1676)
    1 each image_gather4_lz, s_bfm_b64, operand '|vN|'
    • Refusal varies with the root signature (no root translates them, but the reason depends on the root): s_load through sN holding None (138 pairs), s_load through sN holding ('ptrhi', ('root', N)) (136), descriptor operand s[N:N] holds None (15), and single pairs for v_swap_b32, v_cmp_class_f16, buffer_load_format_x, three buffer formats, export target mrtz and the numeric use refusals. Because these depend on which root is supplied, the provenance rows are most likely root mismatches, not tracker gaps. They should be re-measured with the root each pipeline actually uses before they are treated as translator work.

    The NGG group and the root-independent rows stand. The "Done when" item about the three provenance refusals becomes: measure them per pipeline with its own root signature first.

    Reproduction: the offline request writer and the parallel --pending scan used for this census are in the pull requests linked from this issue.

    AI-assisted (Claude Code).

  2. R0Y00 commented on Nov 24, 2026

    @R0Y00
    Owner

    Use the corrected per-pair census. Please measure the descriptor/provenance refusals again with each pipeline's observed root signature before assigning them as translator bugs. For NGG, the LDS/barrier/primitive-export pattern is a classification, not proof it is an identity pass-through. A useful first slice would be a source-built identity triangle and a contrasting case with a cross-lane dependency or non-identity primitive, comparing positions, parameters and primitive indices. Keep production lowering open until those cases separate cleanly. Smaller root-independent instruction gaps can proceed separately.

  3. NiiRoZz commented on Nov 24, 2026

    @NiiRoZz
    ContributorAuthor

    Agreed on all points. The plan:

    1. Provenance refusals. I'll re-measure the s_load … holding None, ptrhi and descriptor operand groups per pipeline with the root signature that pipeline was observed with, from run captures. I won't treat them as translator gaps until then. The offline request writer (startup: write shader requests from the shader archive before a run #1750) currently writes each pair once per recorded root, which is exactly the confound you point out.
    2. NGG, first slice. A source-built pair, compared on positions, parameters and primitive indices, with production lowering held back until the two cases separate cleanly:
      • an identity NGG vertex program: own-lane LDS round trip, identity triangle-list primitive export;
      • a contrasting program with a cross-lane LDS dependency or a non-identity primitive.
    3. Root-independent gaps go in separate PRs: v_lshrrev_b64 (56 pairs), the image_gather4_lz, s_bfm_b64 and |vN| singletons. v_cvt_f32_i32 mul:2 and operand 'off' stay with startup: accept output modifiers on float-result conversions #1707 and startup: translate the SMEM offset 'off' as the literal 0 in gfx2hlsl #1676.

    AI-assisted (Claude Code).

  4. NiiRoZz commented on Nov 24, 2026

    @NiiRoZz
    ContributorAuthor

    Results for items 1 to 3 of the plan above, re-measured pair by pair on main at 67319a17 (all 1,171 pairs under every recorded root; nothing from an older translator commit is mixed in).

    1. Per pair. 1,171 pairs are 964 distinct code pairs (they differ only in the program header). 104 translate and compile under the census's three roots, as before. 846 have an NGG vertex program, classified from the instruction stream rather than from the first refusal.

    2. Provenance refusals with observed root signatures.

    • 140 non-NGG pairs refuse only for provenance reasons under all three census roots.
    • 7 of those have a root observed in a startup run: 2 translate, 5 refuse for ordinary instruction reasons. No provenance refusal survives its own observed root among census pairs.
    • Across 59 pipelines observed in startup runs (distinct code pair and root), exactly one provenance refusal survives: an s_load with a register offset through the resource heap. That one is a real tracker gap.
    • The other 133 provenance pairs have no observed root. They are unknown, not translator bugs.

    3. NGG, classification only. 602 distinct programs, 324 distinct LDS/barrier/message/primitive-export shapes. In a linear slice of each program: the primitive payload depends on loaded memory in 602 of 602, LDS addresses are lane-invariant in 602 of 602, and 31 pairs also use readlane/writelane/permlane. None fits "own-lane values plus identity primitive". This comes from slices that ignore branches (one program read by hand), so culling, compaction and primitive count versus allocation are still open. Proposed first slice, as specified in the comment above:

    • Identity: one wave, three lanes; GS_ALLOC_REQ with constant counts; each lane exports a position and one parameter computed from its own lane index; lane 0 exports the primitive (0, 1, 2); optional LDS write and read-back at a lane-dependent address.
    • Contrast, one change each: (i) lane 0 writes a lane-invariant LDS address, a barrier, then every lane adds that value to its parameter; (ii) the primitive is (2, 1, 0) or loaded from memory; (iii) two primitives allocated, one exported as null.
    • Compared: positions, parameters, primitive indices, winding and count. The classes separate cleanly if the identity case is identical under pass-through and per-lane lowering and every contrast case differs in exactly the field its change predicts.

    4. Root-independent instruction gaps, with ownership checked today. For rows with an open PR, that PR's head was run on the affected pairs: it removes its own refusal everywhere, but most pairs then stop at the next gap.

    Pairs Gap Existing work
    88 v_lshrrev_b64 #1783 — 1 pair then translates; 84 stop next at buffer_store_dwordx3
    84 buffer_store_dwordx3 (behind the row above) none found
    38 v_readfirstlane_b32 without a proven uniform source none (#1780 pins the refusal)
    8 s_bfm_b64 planned in the comment above
    7 v_subrev_f32_dpp none found
    6 v_cndmask with NEG on an immediate none (new refusal since #1710)
    5 v_mul_hi_u32 #1747
    5 export pos1 none found
    3 BUF_FMT_16_16_16_16_FLOAT #1699
    2 1D image sample #1722

    The v_cvt_f32_i32 mul:2 row is fixed by merged #1707. A tail of one to four pairs each remains (class compares, bit tests, a few buffer formats and export targets). The translator stops at the first refusal, so gaps behind it are undercounted.

    Not in the original census: translations that compile but cannot draw correctly.

    • A vertex program that begins with a call into a separate vertex-fetch routine: the call is dropped and the fetched registers stay zero, so the draw is degenerate. Seen in one pipeline of a startup run; never in archive-stream programs. A fix with a source-built fixture is in review locally.
    • A pixel program reading the packed pixel position gets zero: 10 census pairs and one observed pipeline.
    • a16 image addressing is ignored by image_load/image_sample: 3 translating pairs.
    • Instance ID is not modelled: no translating pair reads it yet.

    AI-assisted (Claude Code).

  5. Leyukaka commented on Nov 24, 2026

    @Leyukaka
    Collaborator

    Claiming three of the root-independent rows from the table above.

    1. v_readfirstlane_b32 without a proven uniform source, straight-line slice: #1931.

    • Today: only v_cvt_i32_f32 of a fixed buffer word marks a VGPR uniform.
    • The slice: propagates that mark through lane-pure VALU results (v_cvt_u32_f32, v_cvt_i32_f32, v_cvt_f32_ubyte0, v_mul_f32, v_fma_f32, v_fmaak_f32, v_rcp_f32, v_mov_b32). Every source must be a constant, user data, a fixed buffer word, a scalar value not derived from a lane mask, or an already-uniform VGPR.
    • Unchanged: the existing preconditions stay (no modifiers on the read, no branches, known exec, a single SGPR destination), and test: pin two integer-op refusals in the translator #1780's refusal cases keep refusing.

    2. v_cndmask with NEG on an immediate: #1932.

    • What it does: the decoder computes the exact word from the encoding (the integer or float inline constant, or the literal dword, with bit 31 flipped). The handler gets an unambiguous hex literal instead of the ambiguous -1.
    • What stays: this lifts the refusal kept in startup: flip the sign bit for a negated source on the vector select #1710. Plain immediates keep their values, and ABS on an immediate stays refused.
    • Not measured: the flipped value is derived from the encoding, not measured on hardware.

    3. buffer_store_dwordx3: design first.

    gfx2hlsl has no store handler, and srv is the manifest's only resource-view line, so a store needs both halves. Whether the 84 pairs in the table use the form below is not measured yet. Proposed first slice, for review before any code:

    • Translator: vertex-stage buffer_store_dword to _dwordx4 in the off form (scalar byte offset plus immediate), through a fixed root-table descriptor, as RWByteAddressBuffer Store*. These stay refused:
      • glc, slc and dlc;
      • offen and idxen;
      • pixel-stage stores;
      • a descriptor used for both a load and a store.
    • Manifest: a uav <slot> table <param> <byte offset> line under an x2w-manifest 2 header. The runtime reader does not check the version line today and ignores lines it does not know. So the same change makes it read the version and reject an unknown version or line. It also bumps the shader cache revision (x2w-startup-shader-5), so an older runtime never loads a store translation.
    • Runtime (d3d12_draw.inl):
      • an appended vertex-visible UAV table in the translated root signature;
      • a raw CreateUnorderedAccessView over the resolved backing buffer, only when that buffer is UAV-capable and authoritative for later accesses;
      • transitions through the existing state tracking;
      • anything else rejects the draw.
    • Evidence: a source-built WARP fixture that draws through a translated vertex program with that store form. It then copies the backing buffer to readback and compares the written words and the neighbouring sentinels, with the debug layer on. A load-only version 1 draw is the control.
    • Shared interfaces: the x2w-manifest format and the translated root signature (create_translated_root). This overlaps startup: cache translated graphics pipelines #1641 and startup: apply stream rasterizer state on translated draws #1567 in d3d12_draw.inl; the merge order is to agree.

    Does this split, translator and runtime landing together behind version 2, match what you want?

    Environment: Windows 11 build 26300, Python 3.14.10, MSVC 14.44.35207.

    AI-assisted.

  6. NiiRoZz commented on Nov 24, 2026

    @NiiRoZz
    ContributorAuthor

    Correction to the NGG figures in my earlier comment here. They came from a register-sensitive hash and from slices that ignored branches. A control-flow-aware re-analysis of the same 602 programs (846 pairs), with 13 programs re-read by hand in an independent review, changes three statements:

    • "324 distinct shapes" was wrong: there are 2 skeletons, 601 programs and 1.
    • "LDS addresses lane-invariant in 602 of 602" was wrong: it is 601, plus 1 program with lane-dependent addresses.
    • The cross-lane set is unchanged at 31 pairs (30 programs), but it splits into 28 that use readlane/writelane only as SGPR spill slots and 2 with a DPP/permlane reduction.

    Confirmed

    • 601 programs share one 13-event LDS/barrier/message sequence. Lane 0 of wave 0 publishes three wave-uniform scalars (the vertex count, the primitive count and what looks like a group index) through constant LDS addresses, then s_barrier; other waves read them back with v_readfirstlane. The wave-0 guard is resolved in 593 of them (591 automatically, 2 by hand) and inferred in the other 8. So the LDS traffic is a group-wide broadcast of scalars, not per-vertex data.
    • GS_ALLOC_REQ is sent with m0 = P<<12 | V, both counts loaded from memory (601).
    • Vertex exports are masked to tid < V and primitive exports to tid < P (602).
    • The primitive word is three packed slots of min(V-1, idx) with no flag bit ORed in (602).

    Inferred only

    • No culling or compaction.
    • No edge flags outside the 423 programs of the plainest form.
    • That these began as mesh shaders.
    • That the 2 reduction programs are equivalent to per-lane code.
    • The split of the remaining 176 programs (261 pairs), by automatic matching, into the plain form under register renaming (61) and a form whose index is a field plus a per-lane base (115).

    The 1 program with lane-dependent LDS addresses is different in kind: it reads LDS at addresses other lanes wrote, after a barrier, which looks like a real cross-lane exchange.

    By pairs: 582 plain, 261 in the group of 176, 2 reduction, 1 lane-dependent.

    First slice. A source-built check is ready locally: six cases (identity, LDS broadcast, reversed primitive, null primitive, two waves, masked ALU) assembled from documented encodings, anchored to literal values from the public LLVM and Mesa sources, run by a reference model in both wave orders and compared under three interpretations. Group-shared LDS matches every case. Lane-private LDS with counts honoured differs only where LDS carries data. Lane-private LDS with counts ignored differs in every contrast case except the masked-ALU one. It covers these three interpretations only and says nothing about a production lowering. I can open it as a PR if that is useful.

    AI-assisted (Claude Code).

  7. JB2WIN commented on Nov 24, 2026

    @JB2WIN
    Contributor

    Taking the v_swap_b32 row (2 pairs) for tools/startup/gfx2hlsl.py. It is already lowered in pixel_aot (#771), where both destinations take the old value of the other register: read both sources first, then write both. Evidence: a device-free tests/startup_gfx2hlsl_* check in the style of the existing ones, with a self-swap, a swap whose destination is read again later, and refusal controls for modifiers and DPP/SDWA spellings. I'll leave s_bfm_b64 and v_cmp_class_f16 for a separate PR each, if no one else wants them.

    AI-assisted (Claude Code).

  8. Leyukaka commented on Nov 24, 2026

    @Leyukaka
    Collaborator

    Dated snapshot (2026-11-24) of every refusal site, not only the first, from the --refusals diagnostic in #1978, run on main at 889cd3f4 plus that PR.

    Input.

    • A local cache recorded during startup runs: 222 request keys, which are 170 code pairs. 123 pairs record at least one refusal and 47 record none. Each pair was seen under one root signature, the one it was created with.
    • No request data in this comment; register numbers and immediates are normalised.

    Caveats.

    • One recording, one adapter.
    • These are counts of refusal sites reached. Behind the first refusal a skipped instruction leaves later state unmodelled, so some rows are follow-on effects (the descriptor and holding desc/ptr rows likely are).
    • "Pairs" means code pairs containing the reason; a pair appears in several rows.
    • Existing work was checked against the open PRs, the open issues and this thread just before posting.
    Code pairs Reason (scope ps unless noted) Existing work
    62 s_load with a register offset through ('resheap',) #1143 (resource-heap half, claimed there, no PR found); the re-measure above found this one surviving an observed root
    60 descriptor operand s[N:N] holds None likely follow-on; the re-measure above found none surviving an observed root
    58 s_bfm_b64 planned above; JB2WIN mentions it as a possible follow-up
    58 v_fma_mix_f32 none found
    56 operand 'src_scc' #1820, PR #1821
    56 operand '|vN|' planned above (root-independent gaps); #1778 refuses it on the interpolation sources
    55 / 49 s_bitcmp1_b32 / s_bitcmp0_b32 none found
    51 v_readfirstlane_b32 requires a proven uniform source #1931 (straight-line slice; branches stay refused)
    50 / 31 numeric use of sN holding desc / holding ptr likely follow-on
    39 / 38 s_addk_i32 / s_mulk_i32 none found for gfx2hlsl
    36 / 31 / 30 v_add_f32_dpp / v_add_nc_u32_dpp / v_sub_f32_dpp none found for gfx2hlsl; compute DPP is #1543 (#1884)
    36 / 35 / 35 v_cube{ma,sc,tc}_f32 / v_cubeid_f32 / image dimension SQ_RSRC_IMG_CUBE none found for gfx2hlsl
    35 s_bitset1_b32 compute only (#1579)
    34 / 31 s_nor_b32 / s_nand_b32 on a lane mask refused on purpose since #1925
    33 export target null none found
    33 image_sample_c_lz sampler: unsupported mip filter none found
    33 v_med3_i32 lowering ready on my side, PR to follow
    30 s_lshl1_add_u32 none found

    What the counts show.

    • Of the 123 refused pairs, 21 have a single distinct reason, the median is 12 distinct reasons, and 53 have 15 or more. On this cache a single lowering makes few pairs translate by itself. The follow-on caveat applies to these per-pair counts too.
    • The largest row is the register-offset resource-heap load, the one provenance refusal the re-measure above reported as a real tracker gap.

    #1978 produces the same table for any cache, and with #1750 for an archive-written one.

    AI-assisted.

  9. 262 remaining items

  10. tedin7 commented on Nov 26, 2026

    @tedin7
    Collaborator

    Claiming: the pixel-stage resource-heap image record in gfx2hlsl.py: s_load_dwordx8 at a register offset (index shifted left by 5) through the resource heap, with the index read from a table buffer word as the compute form of #2580 already models (translator and manifest first; runtime binding as a separate slice). Draft PR soon.

    Claiming: image_gather4_lz with a repeat (wrap) sampler in gfx2hlsl.py (CLAMP_X / CLAMP_Y of 0 for the native Gather form; WARP readback at the u/v = 0 and 1 edges). Draft PR soon.

    AI-assisted; commands listed were executed locally.

  11. tedin7 commented on Nov 26, 2026

    @tedin7
    Collaborator

    Claiming: raise the mesh parameter range from param0..12 to param0..31 (ISA 10.2; the 32-vector D3D12 budget still applies) in mesh_param_link.py and the mesh export recognizer, with a param18/param28 pairing draw (Draft PR soon).

    AI-assisted; commands listed were executed locally.

  12. tedin7 commented on Nov 26, 2026

    @tedin7
    Collaborator

    Claiming: NVIDIA pipeline-creation failure (NVVM compilation failed: 3) in the buffer_store_format xyzw store helper of gfx2hlsl (Draft PR soon).

    AI-assisted; commands listed were executed locally.

  13. tedin7 commented on Nov 26, 2026

    @tedin7
    Collaborator

    Releasing all of our open translator claims in this issue. We withdrew the related Python gfx2hlsl PRs because translation is moving to the native C++ frontend (see #870): #2030 #2079 #2096 #2741 #2745 #2747 #2755 #2758 #2760 #2761 #2763 #2772 #2784 #2786 #2789 #2791 #2792 #2793 #2796. Anything we claimed here that is not already merged is free for anyone to take. The branches stay available if any part is useful.

  14. mumba17 commented on Nov 26, 2026

    @mumba17
    Contributor

    Held locally during the C++ rewrite: low-half readers of a plain v_interp_p2_f16 result, plus two notes

    I'm not opening a PR, since translator work is paused for the C++ frontend. This is in case any of it is useful there.

    1. Low-half readers (local branch, not pushed). interp_f16_scan currently accepts only v_cvt_f32_f16 as a reader of a plain p2 destination. The branch also accepts:

    • a v_fma_mix* source with op_sel_hi set and op_sel clear (a binary16 low half; Stage.mix already lowers it as f16tof32 of bits 15:0);
    • a v_pack_b32_f16 source whose op_sel bit is clear (lowered with a 0xffff mask).

    v_fma_mix_f32 and v_pack_b32_f16 also define their whole destination. The high half, a binary32 fma_mix source and a v_fma_mixlo/hi_f16 destination stay refused. It overlaps tedin7's withdrawn #2789 (same fma_mix rule) and adds v_pack_b32_f16.

    Tests: four accepted/refused variants in startup_gfx2hlsl_interp_f16_check.py, hand-encoded and checked with the translator's decoder (llvm-mc 15 binary mode not run locally). Draws on WARP and RTX 3090 (driver 32.0.16.1664, Windows 26300): the fma_mix stage exports 1.5 from the low half of attr0.x, the pack of the attr0.x halves exports the vertex word 0xc0003e00, and a mutant of each must fail. ctest -j 1 -R "mesh57|mesh_cbv_order|startup_gfx2hlsl": 342/342 at d4dfe97.

    2. Soundness gap on main (found by tedin7 in #2789, confirmed at d4dfe97). parse('exp mrt0 v4, v5, v5, v5 done vm') returns operands ['mrt0 v4', 'v5', ...], so the scan never sees the first exported register. A plain p2 result exported only as channel x is not checked for its undefined upper half.

    3. Counts from a local capture (RTX 3090, counts only). 95 distinct slot 57 G-buffer pixel programs, lowered alone through MeshPixelStage after #2824:

    • s_load with a register offset through the resource heap: 47
    • a v_fma_mix (38) or v_pack_b32_f16 (1) read of a p2 result: 39
    • sampler from a descriptor: 6; other: 3

    With the low-half rule, 2 of the 39 stop next at a v_mul_f16 read of the upper half, and 37 at "unmodelled v_interp_p2_f16 result across a branch". The scan carries no state across branches, so a C++ design that tracks the defined half per register across blocks would cover them.

    @R0Y00 do you want any of this as notes or tests for the C++ frontend, as a PR against the Python translator, or not at all? I'll hold it until you say.

    AI-assisted (Claude Code).

  15. added
    priority: P0
    on Nov 30, 2026
  16. SimSalabimse commented on Dec 1, 2026

    @SimSalabimse
    Contributor

    I'm picking up the native side of this: the gfx1013 native graphics frontend still refuses NGG-style vertex shaders (LDS ds_write_b32/ds_read, v_mbcnt, s_sendmsg GS alloc, s_barrier) as a graphics wave/control-flow instruction, and it's the top refusal in my runs.

    Plan: recognise the pass-through NGG VS shape only (lane-private LDS slots with a disjointness proof along the lines of tedin7's earlier work, alloc counts equal to the wave counts, identity primitive export) and lower it to a plain VS. Anything not proven stays refused with a specific reason. Linux tests with identity and contrast cases via llvm-mc. I have a first version on my fork (branch local/ngg-vs-passthrough) with Linux tests; it gets a Windows run next, then a draft PR.

    Draft PR: #3711

    AI-Assisted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: P0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions