Repository navigation
asahi/compiler: keep AGX2 graphics shaders on the pressure schedule - #977
DjDeveloperr wants to merge 1 commit into
Conversation
Pull request #927 removed the AGX3-only gate on agx_ilp_schedule(), so G13 and G14 vertex, fragment and preamble code now take the ILP schedule too. Since then gpubench-gl render.postfx (1080p, msaa=1) fails its output check on M1 Pro (G13X) and M2 Air (G14G): the centre pixel comes back as (0,250,0) instead of a bright orange. The system Mesa build from before the change passes on the same Macs, and M3 Air (G15G, an AGX3 encoding) still passes. Compiling the test on the G13X drm-shim before and after the change shows one material code change. The bloom upsample fragment shader now issues all four of its texture samples before the first wait, three of them on the same scoreboard slot. The scene, downsample and tone-map shaders, the epilogs, the background and end-of-tile programs and the command stream state differ only in uniform placement. The gains #927 measured on G13 and G14 were compute kernels, and its render rows on those chips were flat, so run the ILP schedule on AGX2 for compute shaders only. AGX2 vertex, fragment and graphics preamble code goes back to the pressure order it used before #927. The gate is on the instruction-set encoding because the ILP schedule's sample and load batching was built and checked against the AGX3 scoreboard, and AGX2 graphics code has not been proven safe with it. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
|
|
|
Exact J316s (M1 Pro, G13S C0) first-parent bisect ( |
What: Run
agx_ilp_schedule()on AGX2 (G13/G14) for compute shaders only. AGX2 vertex, fragment and graphics preamble code goes back to the pressure order it used before #927, which removed the AGX3-only gate. AGX3 and all compute code are unchanged.Since #927,
gpubench-gl render.postfx(1080p, msaa=1) fails its output check on M1 Pro (G13X) and M2 Air (G14G): the centre pixel reads(0,250,0,255). The system Mesabe147e3625passes on those Macs, and M3 Air (G15G, an AGX3 encoding) passes on currentaurora-wip.Tested:
418ec74c2f2and the passingbe147e3625with the no-op drm-shim, then rangpubench-gl --verify --test render.postfx --param res=1080p --param msaa=1against both withASAHI_SHIM_CHIP=g13x AGX_MESA_DEBUG=shaders,internalandASAHI_MESA_DEBUG=trace,sync.a. Before, it waited after the second and after each later sample. The scene, downsample and tone-map shaders, every epilog, the background and end-of-tile programs, and the decoded command stream match apart from uniform placement and the zero-LOD-bias sampler form.418ec74c2f2, the G13X upsample shader is instruction-for-instruction the old schedule (uniform numbering aside), and the preamble loads are serialized again.asahiandpolicyCI onDjDeveloperr/mesaci/agx2-graphics-pressure-schedule.Risk: two-way. AGX2 graphics code loses the ILP schedule. #927's own rows on G13X and G14G showed no render gain from it (
render.heavy0.00% to -0.21%), and its compute gains are kept.Not yet:
gpubench-gl render.postfxrow on M1 Pro and on M2 Air with this change. If it still fails there, the next step is a revert of asahi/compiler,borealis: shared scheduler/shared-vec/submit-packing perf for G13-G15+ #927.gpubench-vk render.*and dEQP-GLES31 on G13X/G14G to confirm no other graphics change.