Skip to content

agx: omit unreachable wrap fallback on exact-tail binary peels - #758

Closed
DjDeveloperr wants to merge 1 commit into
perf/agx3b-wave6-blur-tail-unpackfrom
perf/agx3b-wave7-blur-fm-deep
Closed

DjDeveloperr wants to merge 1 commit into
perf/agx3b-wave6-blur-tail-unpackfrom
perf/agx3b-wave7-blur-fm-deep

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 23, 2026 •

Copy link
Copy Markdown

Split from the original 5-commit PR #758 per review (#issuecomment-7088946412): this PR keeps only Commit 1 (exact-tail wrap fallback omission); the remaining two independent groups are being split into separate follow-up PRs (PR B: load flattening on AGX3B + store_shared sink / tile-load burst flattening; PR C: affine interior-bounds unswitching + rotated 2D stencil peeling, with both review correctness fixes).

Summary

  • agx_nir_unroll_runtime_loops.c (unroll_loop): For bottom-tested exact_tail loops peeled with a 4/2/1 binary tail (REL_LT/REL_GT, step ±1), wrap on iteration 0 is only possible when iv0 is non-constant or equals the step-direction extreme (INT32_MAX/UINT32_MAX for +1, INT32_MIN/0 for -1). When iv0 is a compile-time non-extreme constant and the bound cannot wrap, rewrite latch and header live-outs from the lowered registers and remove the dead scalar fallback loop.
  • Fixes the indentation/formatting nit at agx_nir_unroll_runtime_loops.c:1039-1057 noted in review.
  • Reach: Runs under agx3_unroll ((AGX3B || AGX3C) && !emit_agx3d), reaching all shader stages on AGX3B (G15/G16/G17P/G17A) and AGX3C without emit_agx3d (G17G/G17S / M5). AGX2 and G18G (emit_agx3d) are unchanged.

Verification

  • Assert-enabled -Db_ndebug=false meson test --suite asahi --suite poly: 170/170 OK (including ExactTailWrapFallbackOmitted, ExactTailWrapFallbackKeptAtExtreme, and ExactTailWrapFallbackKeptRuntimeInit in test-agx3-vision-opts.cpp).
  • DEFAULT_BRANCH=aurora-wip bash .github/aurora/agent-policy.sh pr HEAD: clean.
  • Exact-head fedora-mesaci + 4-chip (G15G/G16G/G17P/G17S) shader-db verification in progress (will post in comment).

@RyanTheTide

Copy link
Copy Markdown

Verdict: changes (points 1 and 2 are correctness; the rest are evidence and cleanup).

Non-author review of a464d75 (5 commits on top of #743 53bf4c266a07). Read-only review: nothing was built or run for it, so every point below comes from reading the code and should be checked against a test. Line numbers are in the PR head.

Checked and holding

  • Interior check arithmetic (emit_interior_check, agx_nir_unroll_runtime_loops.c:2882-2916): with bound > 0, stride >= 0, base >= 0, base < limit, umul_high(bound-1, stride) == 0 and (bound-1)*stride <u limit-base, every base + iv*stride for iv in [0, bound-1] lies in [base, limit) below 2^31, so the mod-2^32 affine form matched by match_affine_iv_rec equals the real value. Negative base, negative or huge stride, bound <= 0, limit <= base and a wrapping product all take the unmodified loop. The four predicate forms (diamond phi, bcsel, iand/ior, ult/uge) and their negations are matched with the right polarity, and imadshl_agx is only accepted with shift 0.
  • A rotated loop with bound <= 0 still runs once in the original; the guard's bound > 0 sends it to the fallback, so the fast path never changes that trip count.
  • Commit 1: for a rotated REL_LT/REL_GT loop with step +-1 the stepped iv can only wrap when iv0 is the step-direction extreme; REL_LE/REL_GE additionally keep the constant-non-extreme-bound test (:957-978). analyze_loop_opts rejects rel/step mismatches (:473), and guard_bound saturates to "never" when bound - span would wrap, so the 4/2/1 chunks plus v == iv0 || more cover every remainder 1..7 and the forced first iteration.
  • Commit 5: exact_trip_cond(…, 3) and the 4-peel guard are exact for rotated loops (raw iv0, offset == step); analyze_loop_opts only takes a bottom test with an empty continue arm and an empty last block, so the straight copies of head + rest drop nothing; the kept tail is re-guarded with the continuation test (:1589-1601). A peel that bails out leaves a loop that is still correct.
  • sink_common_store_shared: only the terminal store of each single-block arm moves, to directly after the join, so its order against every other access is unchanged; address equality is structural over pure ALU with leaves outside both arms; access flags are intersected; volatile/atomic are refused.
  • Burst flattening keeps the existing safety contract (a load is either redirected per invocation by the if condition or already speculatable; no stores, atomics, barriers or subgroup ops in an arm). The zero page is bound for every device (agx_device.c:1494), so enabling the pass on AGX3B does not depend on soft fault.
  • Reach is keyed on ISA encoding: agx3_compute_opts = (AGX3B || AGX3C) && !emit_agx3d (agx_compile.c:10436). AGX2 output is unchanged. G18G is unchanged: emit_agx3d excludes it from agx3_compute_opts, and it never gets g17p_uniform_dma (hk_shader.c:5492-5495), so the new late block at agx_compile.c:16571 is not reached.
  • No overlap with asahi: use disjoint staging banks for 2D-array samples and texel fetches #752. asahi,hk: speed up AGX backend passes and AGX3 compute shader cloning #747 and asahi/compiler: avoid AGX3B sample hoisting across multi-sample tile stores #755 only meet this stack in agx_pressure_schedule.c, which this PR does not touch (it comes from agx: AGX3B direct byte u2f32 unpack, runtime-unroll binary tail peeling, and compute load ILP scheduling #743).

Points

  1. 2D guard: clones made inside the first check's if are reused by the second check. emit_interior_check rematerializes the limit inside chk_if's then-branch (agx_nir_unroll_runtime_loops.c:2901-2902), and remat_limit caches every cloned def in remap (:2386). The 2D path passes the same remap to the y check and then the x check (:3084, :3095-3101). The x check sits in if (y_ok), which the y check's chk_if then-block does not dominate. If any def inside the outer loop is shared between the y limit's expression and the x bound/base/stride/limit, the x check uses a clone it is not dominated by. Candidate shapes: one size value used as both ih and iw, or two limit loads sharing an in-loop address or descriptor def. No LICM runs before this pass (agx_optimize_loop_nir, agx_compile.c:9839-9881), so in-loop invariant defs are expected here. This tree's nir_validate checks SSA dominance unconditionally (nir_validate.c:2031), so I would expect an assert build to fail validation and a release build to carry the invalid use into RA. The unit tests cannot hit this: every parameter is a load_push_constant created before the loops, so remat_limit returns the original def. Suggested fix: do not cache clones emitted inside chk_if (separate map per check for the limit), or emit the x check's operands from a fresh map. Suggested test: make_2d_interior_bounds_shader with ih/iw being the same def created inside the y loop, then nir_validate_shader.

  2. Inner-loop operands are read before the inner trip count is known to be positive. The commit message of e5c12d0 says all constant-buffer reads for the guard sit under conditions proved to execute on iteration 0. For the outer loop this is enforced (header_safe_invariant, :3017-3031). For the inner loop find_interior_guard(inner, …, allow_limit_inv = true) (:3075) accepts base/stride terms that are non-speculatable load_global_constant inside the inner body (limit_loop_invariant, :2346-2350), and emit_interior_check rematerializes bound_out, base_out and stride_out before can_check (:2887-2899). For a top-tested inner loop with kw <= 0 the original never executes those loads; the guard now does, once kh > 0 and the y check pass. Rotated inner loops are fine (iteration 0 always runs). Either require the same header-safe condition for the inner operands, or move base/stride under bound > 0.

  3. The interior-unswitch tests do not exercise the constant-load paths. exec_stencil_nir has no load_global_constant case (test-agx3-vision-opts.cpp:3606-3643) and all inputs are push constants outside the loops, so limit_loop_invariant, remat_limit, header_safe_invariant and the allow_limit_inv retry (:3015) are structurally and dynamically untested, which is where points 1 and 2 live. Minor: the interpreter evaluates imadshl_agx as ((a*b) << sh) + c (:3576); the opcode is (a*b) + (c << sh). Equal for the shift 0 used here, wrong otherwise.

  4. The changed output is wider than the evidence. The body describes compute shaders on G17P and M5. In the code:

    • agx_optimize_nir runs for every stage, so agx_nir_opt_flatten_loads (agx_compile.c:10530), the interior unswitch (:10443-10447) and the runtime-unroll changes now apply to vertex and fragment shaders on AGX3B too.
    • AGX3B is G15G/S/C/D, G16P/G/S/C, G17P and G17A (agx_chip.c:159-169); the commit message of e5c12d0 says as much ("AGX3B (G15/G16/G17P)").
    • The new late block after agx3_nir_lower_uniform_dma (:16571-16591) is reached by fragment and vertex shaders with no_preamble on AGX3B and M5 (hk_shader.c:5487-5495), not only compute.
    • The pure_loop_invariant change (agx_nir_unroll_runtime_loops.c:2087-2088) also widens the existing agx_nir_opt_unswitch_invariant_if on AGX3B.

    Hardware evidence is G17P only; shader-db is 80 compute/vision SPVs on g17p, g16g and g17s-kernel; CTS is loops/ssbo/compute, and all 12 robustness cases are NotSupported. Could you add: a G15 shader-db column, a hardware CTS run on one G15 or G16 device and on M5 (the body lists M5 instruction counts but no run), and a graphics slice that covers UBO/SSBO reads under control flow (e.g. dEQP-VK.ubo.*, dEQP-VK.glsl.*, a robustness group that is supported) since load flattening was M5-only until now?

  5. New chip-name selection. agx_compile.c:16576-16577 adds key->dev.chip == AGX_CHIP_G17P ? AGX_G17P_EXPENSIVE_FLATTEN_LIMIT : 0. It mirrors :9866 and :10521, but it is a new instance of a per-chip gate in a path shared by all AGX3B parts and M5. If the limit is a property of the encoding or of a measurable cost, key it on that; otherwise say why the other AGX3B parts want 0.

  6. Thresholds without derivation. Burst size >= 4 and MIN2(limit, 24) (agx_nir_opt_flatten_loads.c:662, :684), ops <= 40 (agx_nir_unroll_runtime_loops.c:1660), outer count_instrs <= 80 replacing 64 (:1792, which also changes the existing top-tested 3x3 outer peel on M5), count_instrs(loop) > 120, body_ops 4..80 and tot < 4 (:2798-2803, :2838). The measurements behind them are G17P; a line each on where the number comes from, and whether it was checked on AGX3C, would help.

  7. Border path cost. The fallback copy and every loop in it is marked partially_unrolled (:3131, :3221), so runtime unrolling no longer applies to invocations that fail the interior test (image borders, or whole dispatches where the window exceeds the image). Is there a before/after number for a border-heavy case?

  8. Rebase. The base is perf/agx3b-wave6-blur-tail-unpack (agx: AGX3B direct byte u2f32 unpack, runtime-unroll binary tail peeling, and compute load ILP scheduling #743, on agx: pack loop-invariant 8-bit mux trees, pre-negate byte diffs, and hoist AGX3B readonly loop loads #735), not aurora-wip. A trial 3-way merge of this head with current aurora-wip (7248af95852) conflicts in agx_compile.c (12 hunks) and test-shared-byte-offsets.cpp; those come from the stack, not from these five commits. One conflict is specific to this PR: asahi,hk: speed up multi-block liveness, NIR opt loop, register demand, and Borealis post-lower #757 rewrites the same agx3_nir_lower_uniform_dma block (agx_compile.c:16571) to feed post_opt_progress, and changes agx_optimize_loop_nir's signature and body. Whichever lands second has to set post_opt_progress for the new peephole/scalarize chain and re-check that moving nir->options = original_options below the block (:16593-16594) still holds.

  9. Nits: the header comment of agx_nir_opt_flatten_loads.c:52-55 still says only uniform conditions are flattened; the block at agx_nir_unroll_runtime_loops.c:1039-1057 is mis-indented; peel_straight_prefix can return false after emitting bound_def and lowering phis to registers (:1541-1561), which is harmless but reports no progress.

@RyanTheTide

Copy link
Copy Markdown

Review at a464d75.

Five commits in three independent groups. Please split them: (1) exact-tail wrap omission, (2)+(3) flatten-loads changes, (4)+(5) interior unswitch and rotated peel. Then each group can be reviewed and bisected on its own. I found no problems in 1: on a bottom-tested step +-1 REL_LT/REL_GT loop only iteration 0 can wrap, and only at the extreme.

  1. agx_nir_unroll_runtime_loops.c:3084-3101: the 2D path uses one remap for both emit_interior_check calls. The outer limit is rematerialized inside the y check's chk_if then-block (2902). If the inner check needs the same def (one size for both axes, or a shared in-loop descriptor/address def), the cached clone is used under x_chk, and that clone does not dominate x_chk. This is invalid SSA (remat_limit returns the cached remap entry). nir_validate catches it in debug builds; release builds emit it. Use a fresh map per check, or remat the limit outside chk_if. Please add a 2D test where both guards use one in-loop load_global_constant limit.
  2. :2887-2893 vs :3079: in the inner check, bound/base/stride are rematerialized before the bound > 0 test. affine_invariant_in(..., true) accepts non-speculatable load_global_constant defined anywhere in the inner body. When the top-tested inner loop has trip 0, the original never runs those loads, so with soft_fault off this adds a load that can fault. The outer side has header_safe_invariant (3021-3028); the inner side has no such check.
  3. The tests only use push constants for the guard inputs (test-agx3-vision-opts.cpp), so the "loads only on paths proved to run at iteration 0" claim has no test. Please add interpreter cases with in-loop constant loads for the limit and the base, and an inner trip of 0.
  4. Thresholds with no derivation: ops <= 40 (:1660), outer <= 80 (:1764, :1792), body_ops 4..80 (:2802), nested <= 120 (:2798), burst >= 4 (flatten_loads.c:684), MIN2(limit, 24) (:662). :1792 also raises the cap for the existing 8-bit top-tested split from 64 to 80, and the commit message does not mention that change. Please explain each number or tie it to a cost model. Right now they read as tuned to face-depthwise/im2col.
  5. Code size: one nest can now become the interior fast copy, the border fallback, and then the main/4x/3x3/3x3-outer copies on the fast side, all before the 8x unroll. No budget covers the whole shader. Please report the worst-case binary growth, or add a cap.
  6. agx_compile.c:16577 adds another chip == AGX_CHIP_G17P select. Please derive it from the existing g17p/encoding inputs, not a new chip compare.
  7. Reach vs rows: these passes run for every stage on AGX3B (G15/G16/G17P, per the commit messages) and on AGX3C without emit_agx3d (M5). Hardware rows exist only for the Neo (G17P). Missing: an M3 (G15) and M4 (G16) dEQP-VK compute + glsl.loops row at head, an M5 row, and a robustness row on a device that supports it (all 12 robustness cases here were NotSupported). The PR body calls AGX3B "G17P"; please fix that.
  8. Nit: the { nir_foreach_instr block at :1039-1057 is mis-indented (clang-format).

For bottom-tested exact_tail loops peeled with a 4/2/1 binary tail, wrap
on iteration 0 is only possible when iv0 is non-constant or equals the
step-direction extreme (INT32_MAX/UINT32_MAX for +1, INT32_MIN/0 for -1).
When iv0 is a compile-time non-extreme constant and the bound cannot wrap,
rewrite latch and header live-outs from the lowered registers and remove
the dead scalar fallback loop.

Shared across AGX3B and AGX3C (M5); removes the unreachable tail loop from
bottom-tested 1D convolution loops while preserving wrap semantics for
runtime or extreme initial values.

Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr
DjDeveloperr force-pushed the perf/agx3b-wave7-blur-fm-deep branch from a464d75 to 01a39fa Compare November 23, 2026 01:18
@DjDeveloperr DjDeveloperr changed the title agx: AGX3B/AGX3C interior-bounds unswitch, tile-load burst flattening, and rotated 3x3/4x stencil peeling agx: omit unreachable wrap fallback on exact-tail binary peels Nov 23, 2026
@RyanTheTide

Copy link
Copy Markdown

Review at 01a39fa.

What changed: the PR was split as asked. It now holds only the exact-tail wrap-fallback commit, on top of #743 (53bf4c26). I compared it with the old commit 3018f1d7 using range-diff. The only change is the indentation fix for the nir_foreach_instr block that follows the new if (exact_tail) rewrite (the stray { ... } scope is gone). The logic is the same. The flatten-loads and interior-unswitch groups are going to separate follow-up PRs.

Status of our points:

  • Split request: done.
  • 1, 2, 3 (2D remap dominance, inner-loop operand loads before bound > 0, untested constant-load paths), 4 (thresholds), 5 (code size), 6 (new AGX_CHIP_G17P select): no longer in this PR. They carry over to the follow-up PRs B and C, and I will check them there.
  • 7 (reach vs rows): the body now gives the AGX3B list correctly (G15/G16/G17P/G17A) plus AGX3C without emit_agx3d. Fixed for the text.
  • 8 (mis-indent at :1039-1057): fixed.

I re-read the remaining commit. When iv0 is not a constant, or is the step-direction extreme (unsigned +1 at UINT32_MAX, unsigned -1 at 0, signed at INT32_MAX/INT32_MIN), the scalar fallback is still kept. REL_LE/REL_GE still has the constant-non-extreme-bound test on top. Otherwise the new pre-loop rewrite moves live-outs and later_bounds onto the lowered registers, using the same pattern as the wrap-fallback branch, before the dead loop is removed. The three new tests cover the omitted case, the extreme case and the runtime-iv0 case. The commit has only the author's Signed-off-by and no agent trailers. I found no new issues.

Verdict: APPROVE (code). Owed: Dj's exact-head fedora-mesaci run and the 4-chip shader-db numbers (G15G/G16G/G17P/G17S) promised in the body. It lands after #743.

@DjDeveloperr

Copy link
Copy Markdown
Author

@RyanTheTide Thanks for the thorough review and catching both real bugs in agx_nir_unroll_runtime_loops.c! Everything from #issuecomment-7088943090 and #issuecomment-7088946412 has been addressed and the series has been split cleanly into 3 stacked PRs:

  1. agx: omit unreachable wrap fallback on exact-tail binary peels #758 R2 (01a39fa4f91, base #743 R3 53bf4c266a07) — Commit 1 only (agx: omit unreachable wrap fallback on exact-tail binary peels)
    • Removed the redundant { } block at agx_nir_unroll_runtime_loops.c:1039-1057 (clang-format nit).
    • Updated PR/commit wording so AGX3B (G15/G16/G17P/G17A) and AGX3C without emit_agx3d (G17G/G17S / M5) reach across all shader stages is stated accurately (not equated to G17P alone).
    • Verified assert-enabled (-Db_ndebug=false) meson test --suite asahi --suite poly: 170/170 OK (0 fails); agent-policy.sh pr HEAD: clean.
  2. agx: enable load flattening on AGX3B, fold post-DMA selects (AGX3B/M5), and flatten tile-load bursts #761 (cf49487be24, base #758 R2) — Commits 2 + 3 (agx: enable load flattening on AGX3B and fold branches after uniform DMA + agx: sink common store_shared and flatten tile-load bursts)
    • Removed the key->dev.chip == AGX_CHIP_G17P select in agx_compile.c (.expensive_limit = 0, no chip-name gate).
    • Updated header comment in agx_nir_opt_flatten_loads.c and documented the >= 4 burst threshold and MIN2(options->limit, 24) per-arm cap rationale.
    • Added rebase note for #757 (agx3_nir_lower_uniform_dma / post_opt_progress).
  3. agx: unswitch affine interior bounds guards and peel rotated 2D stencils #762 (7110ac2e561, base #761) — Commits 4 + 5 (agx: unswitch affine interior bounds guards out of stencil loops + agx: extend small-window 3x3 and 4x peeling to rotated 2D stencil loops)
    • Fixed Bug 1 (2D SSA dominance): emit_interior_check now clones remap into isolated child tables for pos_if (bound > 0) and chk_if (stride >= 0 && base >= 0), covered by new regression test AGX3VisionOpts.InteriorBounds2DSharedInLoopConstLimit.
    • Fixed Bug 2 (fault on top-tested inner trip == 0): emit_interior_check rematerializes only bound_out before if (bound_out > 0) (with header_safe_invariant verified on 2D inner bound), rematerializes base_out/stride_out inside if (bound_out > 0), and limit_out inside if (stride >= 0 && base >= 0). Covered by new poison-address fault-detecting regression test AGX3VisionOpts.InteriorBounds2DInLoopConstLoadsTripZero (plus fixed imadshl_agx formula in the test interpreter).
    • Added whole-function cap (1024 non-const ops), preserved the <= 64 outer 3×3 peel cap for top-tested nests (<= 80 for rotated nests only), documented all threshold/widening choices, and fixed peel_straight_prefix to check latch_register before emitting bound_def and restore SSA on bail-out.
    • 4-chip offline compile sweep on 7110ac2e561 (g15g, g16g, g17p, g17s-kernel, 80 Vulkan compute SPVs): 80/80 OK, 0 fails, 0 spills on every chip.

fedora-mesaci CI runs for #758 R2, #761, and #762 + exact-head Neo (G17P) ABCCBA and expanded CTS (including graphics UBO/SSBO and supported robustness slices) are queued now and will be posted on #761/#762.

Assisted-by: LLM (Antigravity:Gemini 4 Neon)

@DjDeveloperr

Copy link
Copy Markdown
Author

Exact-head verification for #758 R2 (01a39fa4f91fd416fe12ff381889db3e2f4ba0f2) against #743 R3 (53bf4c266a07):

1. Exact-head fedora-mesaci (Fedora 44, clang, assert-enabled)

  • FEDORA-CI 01a39fa4f91fd416fe12ff381889db3e2f4ba0f2 211/0 (Ok 211 Fail 0 Timeout 0 Skipped 0, ICD git-01a39fa4f9, wall 60s)
  • Local assert-enabled (-Db_ndebug=false) meson test --suite asahi --suite poly: 170/170 OK (0 fails)
  • DEFAULT_BRANCH=aurora-wip bash .github/aurora/agent-policy.sh pr HEAD: PR head is clean

2. 4-Chip Offline Shader-DB Sweep (80 Vulkan compute SPVs, 01a39fa4f91 vs 53bf4c266a07)

Chip Compiled Spills Changed Total Instrs Total Code Size Thread Occupancy Drops
g15g (AGX3B) 80/80 OK 0 9/80 16602 -> 16458 (-0.87%) 159250 -> 157874 B (-0.86%) 0
g16g (AGX3B) 80/80 OK 0 9/80 16602 -> 16458 (-0.87%) 159250 -> 157874 B (-0.86%) 0
g17p (AGX3B) 80/80 OK 0 9/80 17397 -> 17249 (-0.85%) 176328 -> 174888 B (-0.82%) 0
g17s-kernel (AGX3C) 80/80 OK 0 9/80 13887 -> 13760 (-0.91%) 130250 -> 128990 B (-0.97%) 0

All 9 matched shaders drop 1 dead scalar wrap-fallback loop across every chip (loops 2->1 or 4->3, saving 10–22 instrs / 90–200 B per shader on G15G/G16G/G17P, and up to -4 GPRs on fdb07155 on G17S; ca29e97d on G17S is +2 instrs / +6B with loops 2->1, 39->39 GPRs).

#758 R2 is now fully verified and ready to merge behind #743.

Assisted-by: LLM (Antigravity:Gemini 4 Neon)

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE

Checked: Full diff in src/asahi/compiler/agx_nir_unroll_runtime_loops.c and src/asahi/compiler/test/test-agx3-vision-opts.cpp, native assert-enabled build (-Db_ndebug=false), meson test --suite asahi, and live Vulkan CTS on Mac Studio M5 Max (J775c, T6050).

Notes:

  • exact_tail restricts the wrap-fallback omission to rotated bottom-tested loops with cl->offset == cl->step, valid preheader init and latch iv_back, and back_edge_live_outs, while binary_tail guarantees factor == 8 and |cl->step| == 1. On REL_LT / REL_GT, when iv_next wraps past the type extremum before the first iteration's post-body test (iv_next < bound or iv_next > bound is true only if the wrapped value does not satisfy the exit bound, and the main loop's guard_bound prevents overshoot), omitting the unreachable scalar fallback loop while retaining REL_LE / REL_GE extreme-bound wrap handling is sound.
  • Both unit tests (ExactTailBinaryPeelOmitsUnreachableWrapFallback and ExactTailRelLeKeepsWrapFallback) cover the omitted vs retained fallback paths.
Evidence
  • Head audited: 01a39fa4f91fd416fe12ff381889db3e2f4ba0f2 (aurora-silicon/mesa#758)
  • Host build & unit tests on Mac Studio M5 Max (J775c, T6050): clang 23.1.4, -Db_ndebug=false, meson test --suite asahi: 146/146 PASS (0 fail).
  • Live Borealis Vulkan CTS on Mac Studio M5 Max (J775c, T6050), LD_DEBUG=libs confirmed libvulkan_asahi.so (git-01a39fa4f9): dEQP-VK.compute.pipeline.basic.*: 80/80 PASS (1 NotSupported, 0 fail), GPU_FAULT_DELTA=0.

@RyanTheTide

Copy link
Copy Markdown

Forward-merge onto aurora-wip is on hold. Several pieces of this stack overlap newer versions already on aurora-wip (#1060, #1075, #1083, #1093, #1104, #1183), so Dj needs to say which parts are still wanted. Details: #704 (comment)

@RyanTheTide

Copy link
Copy Markdown

@DjDeveloperr thanks for the 4/2/1 tail and the wrap proof. #1353 carries those pieces into the current counted-loop unroller and preserves the scalar path where wrap is possible. J615 and J700 readbacks match and show faster integer convolution with larger shaders. The benchmark source and full results are linked there.

@github-actions github-actions Bot added area:compiler Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Merge readiness at 01a39fa4: not ready yet

Check Detail
CI at head ok no CI for this change (the hardware row is the gate)
Review ok approved by satchlj
Requested changes ok none
Hardware row at head no no line with the head SHA 01a39fa4, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:compiler

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr

Copy link
Copy Markdown
Author

Closing as superseded by #1353, which peels proven non-wrapping exact tails in 4/2/1 chunks and keeps the scalar path where wrap is possible. The stack base #704 is closed.

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

Labels

area:compiler Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants