Repository navigation
agx: enable native projective varying interpolation on G17G - #1140
RyanTheTide merged 1 commit into
Conversation
G17S and G17C already use the native AGX3C projective RHW/RCP/MUL sequence (agx3_center_rcp_w / agx_rhw_interp_agx3_to / agx_persp_mul_agx3). Narrowing to 16-bit for fp16 varyings already runs after agx_persp_mul_agx3() and the optimizer keeps the multiply destination 32-bit, so drop the G17G exclusion. Signed-off-by: Nick <nekreshen@yandex.ru>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict merge at 04a9c9136038 once a G17G row at this head is in. Thanks.
Blockers none.
Checked
- This removes a chip-ID exclusion: G17G now takes the native projective sequence that G17S and G17C already use.
- The old reason was the native multiply's missing 16-bit form. It's covered: the interpolated value is narrowed with an explicit
fmovafteragx_persp_mul_agx3(), the same code G17S/C already run. - Rows: only G17G changes, and our fleet has no G17G, so this needs your J815 run at this exact head (the targeted interpolation and linkage CTS and the GL check). Please name the commit it was built from in the row.
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: MERGE at 04a9c9136038
Blockers: none
Checked: One-line removal of a chip-ID exclusion: G17G now takes the native projective sequence G17S/G17C already run, selected by encoding only, which is what the no-gates rule asks for. The old reason (no 16-bit destination on the native multiply) is handled by the explicit narrowing after agx_persp_mul_agx3(), the same code G17S/G17C execute. Your J815 G17G row is the only hardware that runs this; we have no M5. Gate green.
Non-blocking: the Evidence block still says "TBD" while Tested has the numbers; please update it, and add the Gallium GL check from Not yet when you have it.
Evidence
Local Mesa gate (stands in for CI; buildbox x86 docker aurora/hk6356-mesa-x86-tests:local, clang release with asserts, -Dbuild-tests=true -Dtools=asahi,drm-shim, meson test --suite asahi --suite poly):
- base
aurora-wip90211df6816: 335/335 OK. - batch build:
90211df6816with 22 open PR heads merged on top (#1133 #1137 #1155 #1136 #1140 #1157 #1158 #1160 #1164 #1165 #1167 #1168 #1170 #1171 #1172 #1175 #1182 #1183 #1185 #1187 #1190 #1191; each also merges cleanly alone, and into currentaurora-wipd2e883ab2e3): 335/336 OK. The one failure,agx3_cmat_mixed_mma8, reproduces with #1187 alone on the base (329/330) and is caused by that PR's new test; nothing else in the batch fails.
|
@m0d16l14n1 this is approved and ready apart from one thing. Dj asked on 11-26 for the J815 G17G row to name the commit it was built from, and we have no G17G to run it ourselves. Could you confirm that your 5,789-case dEQP-VK run (and the Gallium GL check, if you have it) was built at exactly |
|
Merge-train note on the open question from 11-26/27: no answer from the author within 24 h. This PR has one commit, |
|
Merge-train landing at
Revert: |
What: Drop the
AGX_CHIP_G17Gexclusion onnative_projectiveinagx_emit_load_vary_agx3()so G17G uses the native AGX3C projective RHW/RCP/MUL sequence (agx3_center_rcp_w,agx_rhw_interp_agx3_to,agx_persp_mul_agx3) alongside G17S, G17C, and AGX3B.Tested: J815 MacBook Air 15" M5 (T8142, G17G), Borealis, kernel
7.3.0-aurora-j815-dev:meson test --suite asahi210/210 pass, 0 fail; targeted dEQP-VK 5,789 cases (glsl.linkage.*,rasterization.interpolation.*,pipeline.monolithic.multisample_interpolation.*,pipeline.monolithic.interface_matching.vector_length.*,draw.renderpass.linear_interpolation.*,glsl.derivate.dfdx.texture.*,fragment_operations.early_fragment.*,glsl.atomic_operations.*fragment*,subgroups.{arithmetic,ballot}.framebuffer.*): 4,517 Pass, 1,272 NotSupported, 0 Fail, 0 regressions vs base; Godot TPS 1080p FSR2 voxel GI (neon8vsneon6): neutral (47.2 static / 54.7 route vs 47.3 / 54.2–54.8), 0 GPU faults. Regression line: 0 SELinux denials (N/A on this image), 0 failed units, 0 new kernel errors.Risk: two-way door · G17G (base M5) Macs; G17S, G17C, AGX3B, and AGX2 unchanged.
Not yet: Gallium OpenGL regression pass on G17G.
Details
agx_emit_load_vary_agx3()previously excludedAGX_CHIP_G17Gfromnative_projectivebecauseagx_persp_mul_agx3has no 16-bit destination form. The emitter already narrows 16-bit varyings afteragx_persp_mul_agx3()viaagx_fmov_to()/agx_subdivide_to(), and the optimizer guards against folding narrowing moves intoAGX_OPCODE_PERSP_MUL_AGX3(covered bytest-optimizer.cppfor G17S). Removing the G17G exclusion brings G17G onto the same native projective sequence as G17S and G17C.Evidence
meson test --suite asahi210/210 OK, 0 fail.neon8vsneon7) and TPS A/B: TBD.