Turnip v4 (64dc995b) clears offline, adversarial, and Adreno A750 native gates: NIR uniform LDS/barrier hoisting, temporal VRS, and 13-invariant FP16
Turnip mq-rebase-nov27-v4 (MQ64dc995b, ARM64 library SHA-256 5770f38e…, branched cleanly from promoted v3 5b82a64c) lands four strictly opt-in compiler and rendering levers, clears independent adversarial review (0 blockers / 0 majors / 0 minors remaining after Round-2 fixes), passes 354/354 knob-OFF RD byte-identity (0 pm4lint errors), and clears the on-device Adreno A750 native silicon gate with 0 faults — alongside solo isolation proofs clearing TU_ELIDE_CLEAR_RP=1 in Ace Combat 8 and VKD3D_CONFIG=nodxr in Cyberpunk 2077.
1. TU_OPT_UNIFORM_LDS_BARRIER=1: bit-exact NIR uniform LDS & barrier elimination
DX12 compute shaders frequently initialize workgroup-uniform parameters through shared LDS followed by a workgroup barrier. Our new NIR pass (tu_nir_opt_uniform_lds_barrier.cc) hoists provably workgroup-uniform loads out of single-lane LDS init blocks, deletes dead shared variables, and removes now-redundant SCOPE_WORKGROUP barriers — with full adversarial guards for non-shared SSBO/image/atomic writes, ACCESS_VOLATILE | ACCESS_COHERENT loads, and true multi-iteration ping-pong loops versus single-trip DXC do { ... } while (0) blocks.
Shader corpus (!NDEBUG + NIR_DEBUG=validate) | Scanned | Modified | LDS vars eliminated | Barriers eliminated | New spills | Wave regressions |
|---|---|---|---|---|---|---|
| Cyberpunk 2077 CS | 724 | 160 (22.1 %) | 596 | 160 | 0 | 0 |
Ace Combat 8 Fossilize (87 MB) | 15,449 objs | 18 | 35 | 13 | 0 | 0 |
Individual Cyberpunk compute shaders jumped 12 → 14 waves (full 16 → 13, sy 413 → 391, cat6 46 → 40) purely from bit-exact compiler hoisting. See /upstream/#mesa-uniform-lds-barrier.
2. TU_VRS_TEMPORAL=1: alternating anisotropic foveated VRS (zero static 4×4)
To recover peripheral shading cost without the 4×4 static blockiness rejected in QV90, TU_VRS_TEMPORAL=1 alternates anisotropic VRS rates across 2-frame parity: - Even parity (0): 1×1, 2×1, 4×2 (codes [0, 4, 9]). - Odd parity (1): 1×1, 1×2, 2×4 (codes [0, 1, 6]). - Zero static 4×4 (10), with 392 transition-dither texels/map, 99.16 % cache hit rate (474/478, 0 evictions across 250 frames × 2 extents), and flat 1×1 HUD protection (TU_HUD_MASK=1). - Multi-submit isolation: submit-fallback parity advancement triggers only on non-timeline binary sync signals plus a 5 ms monotonic debounce (220-submit test: 200/200 timeline submits ignored, max_epoch = 19, 2 SBS maps cached). See /upstream/#mesa-temporal-vrs.
3. Zero-atomic TU_LEAN_BARRIERS bitmask & 13-invariant TU_SAFE_FP16=v4
TU_LEAN_BARRIERSbitmask (rtu,wfi,ubwc,ccu): un-bundles the monolithic barrier lever into individually selectable bits so each elision class can be ablated cleanly on A750 silicon, and eliminates all hot-path atomics whenTU_LEAN_BARRIERS_LOG=0.- 13-invariant
TU_SAFE_FP16=v4: hardens opt-in FP16 promotion against SFU/division, image store/load, coordinate, and comparison hazards (76Cyberpunk CS accepted /63occupancy wins;388Ace Combat 8 shaders accepted /219occupancy wins;0spills,0wave regressions,0newstib.f16/ldib.f16/ half-srccmps.f). ir3vtpssy-stall audit: confirmed zero Mesa27.0ir3regression (2816vs2817instr, identical22 (sy)/660systall /12waves); the customvtps--edvariant itself defeatedir3_nir_opt_preambleon both drivers.
4. Verification & solo isolation clearances (0 faults)
- Offline & native Adreno A750 silicon gate (
MQ64dc995b):354/354knob-OFF RD captures100 %SHA-256 byte-identical to base,0pm4linterrors across release &!NDEBUG, distinct pipeline-cache UUIDs per opt-in compiler knob,0blockers /0majors /0minors on adversarial review, and full on-device Adreno A750 native smoke PASS (clear_rp,lean_bm_{rtu,ubwc,rtu_wfi,ccu,all_log0},temporal_vrs_250f,temporal_vrs_multi_20f,0faults). - Solo isolation clearances on
v3(0faults): V3_ELIDE_SOLO(Ace Combat 8 VR):TU_ELIDE_CLEAR_RP=1alone measured33.34 msU0p50,97.70 %on 3 vsyncs,game_gpu = 29.27 ms/f(+0.07 ms/fneutral noise; AC8 Flight only issues7.5zero-draw RPs/f totaling0.058 ms/f), provingQV90's bundled regression came fromTU_SELECTIVE_GMEM/TU_LEAN_BARRIERS.VKD3D_CONFIG=nodxrsolo (Cyberpunk 2077 VR):20.40 FPSwarm (+0.07 FPSvs20.33 FPSbase), clearingnodxrfromQV90's-0.46 FPSbundled barrier regression.
Turnip v4 (MQ64dc995b) has passed full offline RD/PM4 verification, independent adversarial code review, and the on-device Adreno A750 native silicon smoke gate with 0 faults, but live Ace Combat 8 VR and Cyberpunk 2077 VR A/B benchmarks and blind visual reviews on v4 are still pending. All new v4 levers are strictly opt-in and default-OFF. Normal adopted default driver remains MQ771.
Next: run live Ace Combat 8 VR and Cyberpunk 2077 VR A/B timing and blind visual reviews on Turnip v4 (64dc995b) and prepare clean upstream Mesa MRs for the verified fixes.