Repository navigation
feat(v81): shader-direct coalesced AHardwareBuffer VLA + HVX/l2fetch streaming (1,170 / 625 FPS, 3.88x vs GPU-only) - #51
Merged
Conversation
…treaming, and twin receipt
This was referenced Nov 30, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the clean-room v2 shader-direct tiled
Adreno 840 <-> Hexagon v81 HMXAHardwareBufferzero-copy VLA path (include/freehexagon_v81_tiled_abi.h,src/freehexagon_v81_tiled_skel.c,src/freehexagon_v81_tiled_kernels.S,shaders/adreno840/vla_stem_*_tiled.comp,tools/sm8850_v81_tiled_vla_abc.c), mirroredfreesilicon-twincalibration receipt (sm8850-v81-tiled-vla-abc-calibrated.json), unit tests, andproof/sm8850-v81-tiled-vla/PROOF.md.Key Verified Hardware Highlights (
SM8850, Android 16,uid=2000,SELinux Enforcing=1,150Interleaved Frames/Arm)MAP_ARENA/HAP_mmap2+RUN_PROJ_VA64BRPC) + 128B HVX Dual-Issuevmem+l2fetchStreaming: Cuts on-DSP data movement (t_inv + t_a_load + t_c_store + t_flush) from17.88 msto159.5 usatM=1024(112xreduction;46.1 GB/sDDR->VTCM,59.4 GB/sVTCM->DDR).f16vec4RGBA loads +packHalf2x1632-bit coalescedF16Crouton_TCMstores): Identical vectorized stem used on Arm B and Arm C2 for 100% fair comparison.M=256, N=1024, K=1024: Arm A738.54 usp50 (1,170.04 FPS,0 Bhost copy,0mismatches,nmse=3.55e-7) —2.52xvs CPU-staged (1,863.96 us),2.76xvs Adreno 840 GPU-only (2,037.60 us),6.35xvs v1 baseline.M=1024, N=1024, K=1024: Arm A1,595.78 usp50 (624.94 FPS,0 Bhost copy,0mismatches,nmse=3.59e-7) —3.41xvs CPU-staged (5,442.76 us),3.88xvs Adreno 840 GPU-only (6,196.93 us),11.94xvs v1 baseline (19.06 ms).19.2 MHzUTIMERSub-Timers:t_inv,t_a_load,t_hmx_gemm,t_c_store,t_flush,t_dsp_total(plust_hmx_purewith honest interleaved GPU+DSP contention note:430.99 usvs92.87 usstandalone).Verification
make clean && make verify(C11/C++17-pedanticheaders, full unit/mock suite, clean-room audit0errors across170files)cmake -B build-cmake && cmake --build build-cmake -j && ctest --test-dir build-cmake --output-on-failure(31/31 PASS)tests/test_freehexagon_v81_tiled.candtools/sm8850_v81_tiled_vla_abc.c --mock(0 errors, 0 mismatches,nmse=0.0)aarch64-linux-android34PIE cross-compile (DT_NEEDEDstrictly[libdl.so, libm.so, libc.so])proof/sm8850-v81-tiled-vla/PROOF.md