Steam FrameThe worklog
Turnip DX12/UE5 driver work & standalone gaming on Steam Frame

Worklog › Turnip

Turnip v4 Gate

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)ScannedModifiedLDS vars eliminatedBarriers eliminatedNew spillsWave regressions
Cyberpunk 2077 CS724160 (22.1 %)59616000
Ace Combat 8 Fossilize (87 MB)15,449 objs18351300

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

4. Verification & solo isolation clearances (0 faults)

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.