General DX12 and UE5 driver pillars 1 to 3: UBO hoisting, safe FP16, and SR elision
After closing the game-specific shader work in Ace Combat 8, driver work shifted to game-agnostic Direct3D 12 and Unreal Engine 5 optimizations in Turnip with zero game shader hashes and TU_PUSH_UBO_SPECULATE=0 throughout. Pillars 1 through 3 address three general bottlenecks seen across vkd3d-proton workloads.
Pillar 1: PARTIALLY_BOUND-sound UBO hoisting (TU_UBO_WITNESS_HOIST)
vkd3d-proton binds constant buffers through partially-bound descriptor sets, which prevents the compiler from hoisting uniform loads out of loops or conditional regions unless access is proven safe. Pillar 1 adds stage-generalized forward must-access dataflow and region-witnessed LICM hoisting in NIR without speculating across unwitnessed descriptors.
Across 55 active UE5 compute, fragment and vertex shaders compiled for Adreno A750: - 16 shaders changed, 1,804 UBO loads promoted (30 loop hoists, 27 region hoists). - cat6 memory instructions fell from 1,595 to 1,515 (−80), main-body ldc from 1,012 to 932 (−80), and sy sync stalls from 1,444 to 1,400 (−44). - Zero new spills, zero wave occupancy regressions, and zero occurrences of TU_PUSH_UBO_SPECULATE.
Pillar 2: Predicate-safe NIR FP16 lowering (TU_SAFE_FP16 / TU_UE5_SAFE_FP16)
A manual FP16 pass in an earlier UE5 test broke volumetric clouds because world-space distances above 65,504 overflowed half-float comparison predicates. Pillar 2 moves FP16 relaxation into Turnip's NIR pipeline with explicit safety guards: - Taints comparison and branch predicates, exact ALU ops, indirect outputs, >11-bit UNORM/SNORM render targets, and PIPE_FORMAT_NONE storage writes (keeping DenormPreserve 16 compliant on pre-A8xx hardware). - Enforces an A750 occupancy guard so lowering is accepted only when it improves register pressure without adding spills. - Across the 55-shader audit (NIR_VALIDATE=1), 8 fragment shaders were lowered cleanly (0/50 new half-float cmps.f, 0/50 new spills, 1,805 half-ALU ops) and 5 compounded directly with Pillar 1 — for example reducing one translucency shader from 16 full registers (768 fibres) to 12 (1,024 fibres, +33 % occupancy).
Pillar 3: Suspend/resume-aware render-pass elision (Elide+SR)
vkd3d-proton emits dynamic rendering SUSPENDING → RESUMING chains that broke UBWC and LRZ fast-clear and prime-elision paths. Pillar 3 unifies empty-pass, clear, and prime elision (TU_ELIDE_RP_SR=1, TU_ELIDE_CLEAR=1, TU_ELIDE_PRIME=auto) onto MQ6a3f65d, snapshotting Pass 1's raw VkAttachmentLoadOp and recomputing resumed pass ops while rejecting memory-writing shaders and invalidating cleanly on MSRTSS.
With all knobs unset, all 55 shaders and 339 offline RD captures remain 100 % byte-identical to parent MQ6a3f65d.
shader instruction counts and wave occupancy numbers come from offline Adreno A750 compilation of 55 active UE5 shaders plus drm-shim command-stream checks; live game timing and visual reviews for these general pillars have not run yet, and no game speedup is claimed from compiler counts alone.
Next: pair these three pillars with zero-config gaze VRS, SR-aware GMEM autotuning, and HWRT optimization, then run the full native A750 silicon gate.