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

Worklog › Upstream proof-of-record

Public Technical Proof-of-Record · Updated 2026-12-01

Upstream Proof-of-Record: Mesa, vkd3d-proton, SteamVR & Ecosystem

Permanent, linkable technical evidence and clean patch branches for every Mesa (freedreno/turnip, ir3), vkd3d-proton, SteamVR, UEVR, UE4SS, and standalone Steam Frame VR tool change produced during driver engineering. All 21 Mesa, 2 vkd3d-proton, and 4 UEVR branches (27 total) are published in isolation on personal forks (gitlab.freedesktop.org/jethac/mesa, github.com/jethac/vkd3d-proton, and github.com/jethac/UEVR) — compiled (!NDEBUG), tested, and ready for direct engineering handoff to Qualcomm, Valve, and Igalia — while game-specific Ace Combat 8 and Cyberpunk 2077 findings are documented so the studios themselves can own them directly (no consumer game launch packs). Every card carries a stable citation URL (https://steamframe.jethachan.net/upstream/#...) with direct branch & diff links, a plain-English summary, reproducible verification data, honest limits, and links to dated worklog entries.

Snapdragon 8 Gen 3 · Adreno A750 · SteamOS ARM64 · Mesa 27.0 (freedreno/turnip) · Proton ARM64 / vkd3d-proton
Bottom Line · What All of This Does

Together, these 26 upstream fixes, compiler passes, and VR ecosystem tools turn Steam Frame's standalone Adreno A750 (Snapdragon 8 Gen 3) from a single-queue driver that could not boot hardware-ray-traced DX12 games or hold 90 Hz VR pacing into a multi-queue, fault-free, eye-tracked foveated DX12 / DXR 1.1 / OpenXR stack:

Adds Multi-Queue Turnip, DXR 1.0/1.1 & eliminates real GPU hangs

Exposes multi-queue Turnip (with VM_BIND publication & submit-lock fixes) and VK_KHR_ray_tracing_pipeline (30× faster register-resident payloads), fixes the common Mesa vk/bvh H-PLOC acquire GPU hang, ir3/ra_predicates SSA crashes, u_trace hangs/races, embedded-sampler & shader-BO tail-guard faults, and SteamVR teardown page faults (40+ runs, 0 faults).

Restores locked 90 Hz VR pacing & eye-tracked foveated VRS

Bisects Mesa 27.0's +14.5 ms/eye (34.5%-idle) lockstep stall to vk_memory_budget (restoring 33.34 ms/eye / 98.21% 3-vsync in AC8 VR), and adds zero-thrash eye-tracked foveated VRS (-3.61 ms/f in CP2077 VR), exact GPU HUD tile masking (-0.55 ms/f), and zero-static-4×4 temporal alternating VRS.

Unlocks hardware single-pass stereo & DX12 compiler/RP speedups

Fixes vkd3d-proton + Turnip hardware single-IB stereo (+0.77 FPS warm / +1.24 minFps CP2077), elides 62.5 clear-only RPs/f (-2.22 ms/f) and tiler_suspend_resume transitions, speeds up wave32 subgroup emulation (-2.07 ms/f), hoists UBOs safely without speculation, eliminates 160 CP2077 compute barriers (22.1% of CS), and adds 13-invariant opt-in FP16 (219 AC8 / 63 CP2077 occ wins).

Fixes OpenXR/UEVR/UE4SS VR runtime bugs & ships open CI tools

Eliminates single-frame black flashes on UE5 camera cuts (cbrh5, 34/34 held, 70/70 blind PASS), fixes UEVR OpenXR pose/crop & safetyhook ARM64EC thread-trap races, repairs UE4SS FName startup, and builds gazed-v2 (eye-tracking SHM daemon) and steamvr-virtual-wearer (scripted headless VR CI).

Summary Index

Click any anchor to jump directly to its evidence card · View 27 live patch branches & handoff matrix →
Citation AnchorTargetTypeSummaryStatus
#mesa-turnip-multiqueueMesa · turnipRFC / FeatureExposes multiple Vulkan queue families on msm submitqueues, serializes VM_BIND enqueue/fence publication, and fixes submit-lock leak on prep failure.Verified
#mesa-bvh-hploc-hangMesa · vk/bvh & turnipBug FixFixes Adreno A7xx H-PLOC missing ccinv acquire that orphaned BVH internal nodes and hung encode.comp (plus bounded spins & validator).Verified
#mesa-rt-pipeline-bvhMesa · turnip/rtRFC / FeatureMonolithic compute lowering of VK_KHR_ray_tracing_pipeline, pipeline libraries, indirect trace rays, BVH update/refit & MR 44523 fix.Verified
#mesa-ir3-ra-predicatesMesa · ir3Bug FixFixes ir3_validate SSA dominance crash when two forward predecessors carry different reloaded predicate clones.Verified
#mesa-vk-memory-budgetMesa · turnipRegression Bisect1-feature bisect isolates a +14.5 to +18.5 ms/eye (34.5% GPU idle) OpenXR/DX12 lockstep regression to a5b7ecdf.Bisect Complete
#mesa-querypool-uafMesa · turnipHardeningZero-hot-path-cost teardown fence drain preventing CP WRITE TRANSLATION page faults under msm VM_BIND.Verified
#mesa-utrace-flush-raceMesa · turnipBug FixFixes SQE bad-packet hang on shared BR/BV clone-barrier registers and multi-queue u_trace double-free crash.Verified
#mesa-multiview-same-layerMesa · turnipFeature + FixEnables hardware single-IB side-by-side stereo multiview on layer 0 (companion to #vkd3d-hw-multiview) + fixes query-pool OOB write.Verified
#mesa-embedded-sampler-lifetimeMesa · turnipHardeningRetains descriptor set layout references on recorded command buffers, preventing GPU faults when apps destroy in-flight PSOs.Verified
#mesa-elide-clear-rpMesa · turnipOptimizationEliminates 62.5 zero-draw clear-only SYSMEM render passes/frame (-2.22 ms/f) in REDengine 4 with active-LRZ safety.Opt-In Win
#mesa-uniform-lds-barrierMesa · turnipCompiler PassEliminates 160 workgroup barriers & 596 LDS vars across 22.1% of Cyberpunk CS (+13 barriers in AC8) with 0 spills.Silicon PASS
#mesa-temporal-vrsMesa · turnipRFCReplaces static 4×4 peripheral VRS blocks with 2-parity 2×1↔1×2 / 4×2↔2×4 alternation + multi-submit isolation.Silicon PASS
#mesa-foveated-vrs-and-hud-maskMesa · turnipRFC / FeatureDriver-injected gaze-tracked VRS (-3.61 ms/f in CP2077 VR, 99.99% cache hit) + exact GPU HUD tile mask (-0.549 ms/f, 44/44 blind PASS).Verified
#mesa-sg32-emu-v2Mesa · turnip/ir3OptimizationMatches v1 across 4,936/4,936 CTS required-subgroup-size cases and saves -2.07 ms/f (CI 1.43–3.02) in AC8 VR with zero artefacts.Verified
#mesa-ubo-witness-hoistMesa · turnip/ir3Compiler PassHoists provably-live UBO loads into scalar preamble without TU_PUSH_UBO_SPECULATE (cat6 -80 across 55 UE5 shaders, 0 spills).Verified
#mesa-elide-rp-srMesa · turnipOptimizationElides redundant GMEM/SYSMEM tile round-trips across vkd3d-proton tiler_suspend_resume dynamic-rendering chains (-0.248 ms/f busy).Verified
#mesa-ubwc-3dMesa · freedreno/fdl & tuFeature / OptEnables hardware Universal Bandwidth Compression (UBWC) on mipmapped 3D volumetric textures in fdl/turnip.Verified
#mesa-safe-fp16Mesa · turnip/ir3Compiler PassPromotes provably safe FP32 math to FP16 (388 AC8 / 219 occ wins; 76 CP2077 / 63 occ wins; 0 spills; 0 ISA hazards; review 0/0/0).Native PASS
#mesa-stability-and-utrace-copyMesa · turnipHardening / OptFour targeted stability & profiling fixes: TU_PIPELINE_TAIL_PAD prefetch guard, bounded reset-CB retention, descriptor validity, and u_trace used-span copy.Verified
#mesa-nir-atomics-and-ir3-infraMesa · compiler/nir & ir3Compiler InfraAdds early-out break in lowered CAS atomic loops, sorted sparse live-set tracking in ir3_spill, and OPC_META_BLOB / RT per-wave reg handling.Verified
#vkd3d-hw-multiviewvkd3d-protonFeature + FixUnlocks true Adreno A750 single-IB hardware multiview (+0.77 FPS warm, +1.24 minFps, blind PASS) + standard Vulkan viewMask fix.Verified
#steamvr-querypool-uafSteamVRBug Report121 MB Adreno A750 devcoredump decodes SteamVR destroying an 8 KB timestamp VkQueryPool while its Ring 2 submit is in flight.Root-Caused
#uevr-cutblack-v5UEVRBug FixHolds 34/34 single-frame black cut flashes on the GPU at +0.015 ms/f cost with 0 flight holds (70/70 blind review PASS).Verified
#uevr-openxr-rhlat-and-safetyhookUEVR · SafetyHookBug Fix / OptCuts desktop mirror overhead & OpenXR pose latency on standalone VR, and pins safetyhook b62c735 + cursey #103 trap_threads fix for Proton ARM64EC.Verified
#ue4ss-fname-proton-arm64UE4SSBug FixFixes UE4SS FName resolution crash on modern UE5 shipping builds running under Proton ARM64EC.Verified
#ecosystem-gazed-and-virtual-wearerSteam Frame ToolsOpen ToolingStandalone OpenXR gaze-to-Turnip SHM bridge (tu_gaze_shm.h v2) and scripted headless SteamVR HMD/gaze driver for repeatable VR testing.Verified

Mesa (freedreno/turnip & ir3)

Bug fixes, regression bisects, teardown hardening, and opt-in compiler/driver passes against upstream Mesa 27.0 (86cc7324f655).

Mesa · turnipRFC / FeatureVerified771d981e + 46ef0be1

tu: multi-queue Turnip (graphics/compute/transfer) + VM_BIND publication & submit-lock fixes

Plain English

Normally this GPU driver funnels all graphics, compute, and copy commands through a single line; this work adds separate lanes (multi-queue) and fixes two race conditions where simultaneous memory updates could collide or leave a queue locked.

Multi-QueueGfx + Compute + Transfer
13,224/0Native19 assertions PASS
49/14/0CTS63 queue/sync PASS
0 faultsFull v3/v4 lineage base
Patch Branch
Problem

Upstream Turnip exposes a single Vulkan queue, serializing graphics, compute, and transfer submissions through one queue family on DX12 translation layers (vkd3d-proton). Under multi-queue msm VM_BIND, two concurrency bugs also surfaced: unsynchronized VM_BIND enqueue vs fence publication (tu_knl_drm_msm.cc) and an unreleased submit_mutex on queue-submit preparation error paths (tu_queue.cc).

Fix / Scope
  • Multi-queue Turnip lineage exposing dedicated graphics, compute, and transfer Vulkan queues backed by msm DRM submitqueues, rebased cleanly onto upstream Mesa 27.0 (86cc7324f655).
  • 771d981e (14 lines in tu_knl_drm_msm.cc): serialize VM_BIND enqueue and fence publication so concurrent queues never observe an unpublished bind fence.
  • 46ef0be1 (21 lines in tu_queue.cc): release the queue submit lock cleanly on every preparation failure path.
Verification
Native & CTS
Validated across CTS63 (49 pass / 14 expected unsupported / 0 fail) and native19 (13,224 assertions, 0 failures) on Adreno A750.
Live Workloads
Forms the standing driver foundation for all promoted v3 (5b82a64c) and v4 (64dc995b) Ace Combat 8 VR and Cyberpunk 2077 VR sessions (40+ runs, 0 faults). Note: in Ace Combat 8 VR specifically, enabling UE5 -ForceAsyncCompute regressed -6.92 pp 3-vsync (+2.98 ms RHIThread), so async compute stays game-opt-in while multi-queue remains the clean baseline.
Honest Limits
Real-world frame-time wins from overlapping async compute depend on engine scheduling (UE5 -ForceAsyncCompute regressed AC8 VR on Adreno A750); the VM_BIND serialization (771d981e) and submit-lock error-path (46ef0be1) fixes are small, standalone bug fixes independent of exposing extra queues.
Worklog Proof
Mesa · vk/bvh & turnipBug FixVerified5e4162d + a267488

vk/bvh & tu: H-PLOC range-handoff acquire barrier, bounded BVH spins & TU_AS_VALIDATE

Plain English

When building 3D ray-tracing trees during game loading, different parts of the GPU could read stale cached data and leave broken links that froze the entire GPU forever. Adding one missing cache-sync step and safety timeouts eliminated the hang across 100+ level loads.

vk/bvh + tuCommon BVH + Turnip
fence.g.w+ccinvir3 acquire restored
6/6 · 0 violTU_AS_VALIDATE PASS
100+ loads0 hang recurrences
Patch Branch
Problem

Mesa's shared H-PLOC BVH builder (src/vulkan/runtime/bvh/) handed a finished cluster range to the second-arriving subgroup via a relaxed atomicExchange on ranges[], then read the first subgroup's ids[] and internal nodes with plain loads. Without an ordering acquire barrier, ir3 emitted no ccinv between atomic.g.xchg and ldg on Adreno a7xx, allowing stale per-SP cache lines to duplicate some nodes and orphan others. Turnip's bvh/encode.comp then spun without bound waiting for an orphaned node's parent offset, triggering an Adreno msm hangcheck recover GPU hang during UE5 Lumen HWRT level-load BVH builds.

Fix / Scope
  • 5e4162d (common vk/bvh): add a subgroup-scope control barrier with device-scope acquire/release before the H-PLOC cluster loop whenever any invocation reads another subgroup's range (and upgrade the end-of-cluster release to a subgroup-scope control barrier so ir3 emits fence.g.w + ccinv between exchange and dependent loads).
  • Bound all remaining cross-workgroup spins in shared BVH shaders (VK_BVH_SPIN_CAP = 2^20, H-PLOC outer/merge pass bounds) setting a sticky bit in vk_ir_header.build_error instead of hanging.
  • a267488 (Turnip): cap bvh/encode.comp parent wait at TU_AS_SPIN_CAP, claim output offsets via atomicCompSwap (emitting safe empty nodes on conflict), and add opt-in TU_AS_VALIDATE=1 (bvh/validate.comp) checking child validity, single-parent reachability, and exact leaf coverage.
Verification
Native Gate
HPLOC gate G1/G2/G3 PASS (CTS63 49/14/0, native19 13,224/0, 20/20 RT/Ray-Query smoke), 0 faults.
Validated Loads
6/6 live UE5 Lumen HWRT level loads PASS with TU_AS_VALIDATE=1 (0 structural BVH violations) and 100+ subsequent Ace Combat 8 VR loads with 0 hang recurrences.
Honest Limits
Because the original H-PLOC race was nondeterministic under heavy concurrent level-load BVH builds, 6/6 validated loads and 100+ clean runs confirm no recurrence plus verified fence.g.w + ccinv ISA emission rather than a formal proof of every BVH path.
Worklog Proof
Mesa · turnip/rtRFC / FeatureVerifiedtu_rt + e8a972b6

tu/rt: VK_KHR_ray_tracing_pipeline (DXR 1.0/1.1) & BVH refit/update on Adreno A750

Plain English

The Steam Frame's chip already had ray-tracing hardware, but its Linux driver didn't expose the full ray-tracing API that modern DirectX 12 games require just to boot. We implemented that missing layer and made it 30× faster by keeping ray data in fast on-chip registers instead of slow memory.

DXR 1.0/1.1UE5 Lumen HWRT on A750
30× speeduprt_basic 39.4 → 1.30 ms
20/20 + 48/48RT CTS & offline PASS
0 faultsLive HWRT cinematics
Patch Branch
Problem

Adreno A750 hardware supports VK_KHR_ray_query and VK_KHR_acceleration_structure, but upstream Turnip did not expose VK_KHR_ray_tracing_pipeline, preventing vkd3d-proton from advertising DXR 1.0/1.1 and blocking hardware-RT-mandatory DX12 titles (such as UE5 Lumen HWRT) from booting.

Fix / Scope
  • Implemented VK_KHR_ray_tracing_pipeline (tu_ray_tracing_pipeline.cc) by compiling stages to a monolithic compute shader lowering traceRay to hardware ray_intersection_ir3 ray-query traversal, with register-resident SSA payloads/hit attributes (zero scratch spilling; 30× faster on rt_basic), deterministic blake3 pipeline/stage caching, VK_PIPELINE_CREATE_LIBRARY_BIT_KHR pipeline libraries, nested callables, primitive culling (SkipTriangles/SkipAABBs), RT barrier masks, and vkCmdTraceRaysIndirectKHR/2KHR.
  • Added Turnip BVH acceleration-structure update.comp (in-place refit), quantization/encoding helpers (bvh/tu_bvh_defines.h, tu_bvh_quantize.h, encode.comp, copy.comp), and TU_RT_OPT=1 compiler optimizations.
  • Fixed upstream Mesa MR 44523 (001e569e) compatibility (e8a972b6): re-run nir_lower_global_vars_to_local after tu_rt_retag_call_data_out() so SpvStorageClassRayPayloadKHR/CallableDataKHR derefs match deref_cast(function_temp) under NIR_DEBUG=validate.
Verification
CTS & Native
Validated against dEQP-VK.ray_tracing_pipeline.* (rt_basic opaque/any-hit/procedural/callable/libraries/indirect 0 mismatches, 1.30 ms/trace), 48/48 offline !NDEBUG RT variants, and 20/20 on-device RT/Ray-Query smoke PASS (0 faults).
Live HWRT VR
Powers full UE5 Lumen HWRT cinematics (CIN1–CIN4) in Ace Combat 8 VR on Adreno A750 across 40+ sessions with 0 GPU faults and blind-verified GI/shadow parity.
Honest Limits
Large RFC feature series (~7,000 lines across tu_ray_tracing_pipeline.cc and bvh/); exposes recursion depth 1 (sufficient for DXR 1.0/1.1 via vkd3d-proton). Independent small bug fixes (#mesa-bvh-hploc-hang, #mesa-ir3-ra-predicates, #mesa-utrace-flush-race) can land upstream ahead of the full RT pipeline RFC.
Worklog Proof
Mesa · ir3Bug FixVerified64342fa2

ir3/ra_predicates: preserve SSA dominance across reloaded live-ins

Plain English

A shader compiler bug caused the driver to crash when compiling complex Unreal Engine 5 shaders because it lost track of where a temporary flag was originally computed. Checking that the value is actually valid on every path fixes the crash with zero slowdown.

55/55 + 48/48Offline !NDEBUG shaders
87/87A750 native gate PASS
0 faultsLive AC8 + CP2077 VR
0 / 0Code review blockers/majors
Patch Branch
Problem

Rebasing onto upstream mesa/mesa (86cc7324f655, Mesa 27.0) tripped ir3_validate SSA dominance checks (292c86ab) inside ir3/ra_predicates on complex UE5 compute shaders (cloudsao, sky_flight, sky_raft, sky_alt). In init_block_liveness(), two forward predecessors can carry the same original predicate def in the same register component via different reloaded_def clones; checking only cur_def->def != pred_def->def retained a non-dominating reloaded_def as live-in at the join block.

Fix / Scope
  • Require reloaded_def equality across predecessors in init_block_liveness().
  • Clear any live-in reloaded_def whose defining block does not dominate the join block (64342fa2).
  • Zero scheduling or codegen impact on unaffected shaders.
Verification
Offline
!NDEBUG + ir3_validate PASS across 55/55 active UE5 CS/FS/VS shaders and 48/48 RT pipeline variants; 354/354 knob-OFF RD captures 100% byte-identical.
Native Silicon
87/87 Adreno A750 native gate PASS (CTS63 49/14/0, native19 13,224/0, 20/20 RT/Ray-Query smoke), 0 faults.
Live Workloads
Validated across 40+ live Ace Combat 8 VR and Cyberpunk 2077 VR sessions on Adreno A750 with 0 GPU faults.
Honest Limits
Validated on Adreno A750 (a7xx) DX12/UE5 and REDengine 4 shader corpora; broader pre-a7xx generation coverage relies on upstream Mesa CI.
Worklog Proof
Mesa · turnipRegression BisectBisect Completea5b7ecdf

vk_memory_budget causes +14.5 ms/eye VR lockstep serialization bubble

Plain English

After updating to the latest Mesa driver, VR frame times suddenly jumped by 14.5 ms per eye while the GPU sat idle a third of the time. We isolated the entire stall to a single memory-tracking feature that was forcing the CPU and GPU to wait on each other instead of working in parallel.

+14.5 ms/eyeLockstep bubble
34.5%GPU idle during stall
22.22 msRestored menu (S3C)
98.21%90 Hz 3-vsync restored
Patch Branch
Problem

After rebasing onto upstream Mesa 27.0, Ace Combat 8 VR (90 Hz OpenXR via vkd3d-proton) hit a +14.5 to +18.5 ms/eye per-frame serialization bubble (47.85 ms/eye, 34.5% GPU idle, frame_time ≈ GPU + RHI) even though RHIThread CPU time improved -10% to -15% and GPU busy was unchanged (29.37 vs 29.44 ms/f).

Fix / Scope
  • Deterministic 3-stage 60 s Main-Menu bisect tested each Mesa 27.0 suspect in isolation:
  • S3A (revert 8a494f24 only) and S3B (revert tu_autotune only) both left the lockstep bubble intact.
  • S3C (revert only cross-instance vk_memory_budget a5b7ecdf + 515a6b04) immediately restored full CPU/GPU overlap (22.22 ms, wf = 11.19 ms, wf→ef = 10.59 ms).
  • Promoted v3 (5b82a64c) restored both innocent commits (8a494f24 and tu_autotune) while reverting only a5b7ecdf.
Verification
Bisect
Clean binary flip between S3A/S3B (bubbled) and S3C (100% overlap restored) on identical boot and settings.
Live Silicon
Restored 90 Hz Ace Combat 8 VR to U0 p50 = 33.34 ms, p95 = 36.54–36.90 ms, p99 = 39.84–40.24 ms, 98.21–98.32% on 3 vsyncs, 0 faults.
Blind Visual Review
94-judge isolated blind review PASS (23/26 TIE vs baseline, 0 severe, 100% positive-control power).
Honest Limits
Reverting a5b7ecdf is a downstream causality proof; the proper upstream Mesa fix should remove the cross-instance lock/drain serialization in vk_memory_budget rather than disabling VK_EXT_memory_budget.
Worklog Proof
Mesa · turnipHardeningVerified77d20179

tu: drain active hardware queue fences in tu_DestroyQueryPool

Plain English

When closing a VR game, SteamVR deleted a small GPU timing buffer while the graphics chip was still writing to it, triggering a kernel GPU fault. Making the driver wait for in-flight GPU work to finish before freeing that buffer eliminated every teardown crash across 40+ sessions.

22 linesPatch size
0 nsRender-loop cost
40+ runs0 teardown faults
354/354RD byte-identical
Patch Branch
Problem

During SteamVR xrDestroySession(), SteamVR destroys an 8 KB VK_QUERY_TYPE_TIMESTAMP VkQueryPool while its own 257-dword Ring 2 timestamp submission is still in flight (see #steamvr-querypool-uaf). Under msm VM_BIND, msm_bo_finish() synchronously unmaps the BO, causing two CP WRITE TRANSLATION GPU page faults when the CP executes prefetched CP_MEM_WRITE packets.

Fix / Scope
  • Drain already-submitted hardware queue fences via tu_queue_wait_fence() (3 s bounded timeout, matching tu_free_zombie_vma_locked) before unmapping pool->bo in tu_DestroyQueryPool (77d20179, 22 lines).
  • Executes strictly on vkDestroyQueryPool teardown (zero render-loop cost, zero synthetic submits, cannot deadlock on pending host-side timeline semaphore waits).
Verification
Offline & Review
Code review 0 blockers / 0 majors; 354/354 knob-OFF RD captures 100% byte-identical.
Live Silicon
Cleared native silicon smoke and 40+ consecutive Ace Combat 8 VR and Cyberpunk 2077 VR teardowns on Adreno A750 with 0 GPU or teardown faults.
Honest Limits
Defensive hardening against a non-conformant client (VUID-vkDestroyQueryPool-queryPool-00793); the root Vulkan spec violation remains in SteamVR and should also be fixed upstream.
Worklog Proof
Mesa · turnipBug FixVerifiedc62c313 + fda6079

tu: memory-backed u_trace clone barrier & process flushes under submit_mutex

Plain English

Turning on the GPU profiler to measure per-pass timings used to hang the GPU or crash when multiple queues ran at once. Replacing a shared hardware register trick with normal per-command memory and locking the flush list made profiling reliable in live VR games.

10 + 104 locTwo clean commits
7/7 CLEANMulti-queue trace_stress
13,224/0Native19 + CTS 49/14
0 faultsLive AC8 + CP2077 u_trace
Patch Branch
Problem

Two independent bugs broke GPU tracing (u_trace) on multi-queue Adreno A750: (1) the legacy u_trace clone barrier relied on CP_COND_REG_EXEC using shared BR/BV on-chip registers 6/7 and a process-wide static sequence number, hanging the SQE in its bad-packet trap (0x11997) during traced VR frames; (2) u_trace_flush() appended to flushed_traces under submit_mutex, while u_trace_context_process() read and cleared it after unlocking, causing concurrent graphics+compute queue submits to double-free submission data in cleanup_chunk.

Fix / Scope
  • c62c313: replace the on-chip CP_COND_REG_EXEC clone barrier with a per-clone 1-dword GPU-writable sub_cs slot cleared, set via RB_DONE_TS, and polled with WRITE_GE 1 (reserving all 17 dwords contiguously; untraced command streams untouched).
  • fda6079: move u_trace_context_process() inside submit_mutex (10 lines in tu_queue.cc), eliminating the concurrent multi-queue double-free.
Verification
Native Stress
Natively reproduced crash in multi-queue trace_stress on base; fixed 7/7 clean on fda6079 plus native19 13,224/0 and CTS63 49/14 PASS.
Live VR Traces
Captured multi-second u_trace profiles across Ace Combat 8 VR (97 steady frames, 143 MB) and Cyberpunk 2077 VR (64–75 steady frames) with 0 GPU hangs or crashes.
Honest Limits
Only executes when GPU tracepoints are active; untraced command streams are byte-identical.
Worklog Proof
Mesa · turnipFeature + FixVerifiedc71a1b0 + 8e92c6b

tu: opt-in TU_MULTIVIEW_SAME_LAYER & single-slot query pool bounds guard

Plain English

VR games often draw both eyes side-by-side onto a single wide texture, but standard Vulkan multiview assumes each eye lives on a separate texture layer. This option teaches the Adreno GPU to draw both eyes into their left and right halves in a single hardware pass, and fixes an out-of-bounds query write.

111 linesTwo clean commits
GRAS_SU_CNTLviewportindexincr = 1
+0.77 FPSWarm CP2077 HW stereo
PASSBlind stereo review
Patch Branch
Problem

Side-by-side VR renderers (e.g., vkd3d-proton DX12 View Instancing with RenderTargetArrayIndex = 0, ViewportArrayIndex = 0..1) render both eyes onto layer 0 of a double-wide 2D attachment. Standard Vulkan multiview assumes view i targets array layer i, and a companion query bug (handle_multiview_queries) wrote timestamp availability past pool->size when writing the last slot of a pool.

Fix / Scope
  • c71a1b0 (92 lines, strictly default-OFF): TU_MULTIVIEW_SAME_LAYER=1|sysmem programs GRAS_SU_CNTL.rendertargetindexincr = 0, viewportindexincr = 1 while keeping PC/VPC/VFD stereo view masks and multi_pos_output = true, so a single hardware draw renders view i into viewport/scissor i on layer 0.
  • 8e92c6b (19 lines): use 1 query slot for same-layer passes and independently clamp availability writes to < pool->size so out-of-bounds query calls can never cause a CP write fault.
Verification
Live Silicon
Paired with vkd3d-vi v2 (#vkd3d-hw-multiview) on Adreno A750 in Cyberpunk 2077 True Two-Eye Stereo: warm 21.03 FPS (+0.77 FPS, minFps +1.24 FPS), 0 faults.
Blind Visual Review
Isolated blind stereo review PASS (1–1, 2 ties, 0 severe, verified +9 → +25 px 3D depth parallax, 0.0% black border).
Honest Limits
Same-layer multiview is an opt-in driver/translation-layer contract (standard Vulkan requires layerCount >= util_last_bit(viewMask)); the query-pool bounds guard (8e92c6b) is independently upstreamable for standard Vulkan.
Worklog Proof
Mesa · turnipHardeningVerified2cc43d38

tu: keep embedded-sampler set layouts alive for recorded command buffers

Plain English

If a game deletes a graphics pipeline while the GPU is still drawing a frame that uses its built-in texture samplers, the GPU can read freed memory and fault. Keeping those sampler definitions alive until the command buffer finishes prevents the crash.

36 linesMinimal lifetime fix
13,224/0Native19 + CTS 49/14
0 faults40+ live UE5 sessions
Patch Branch
Problem

When a DX12 application destroys pipeline states or root signatures while command buffers referencing embedded immutable samplers are still in flight, freeing the descriptor set layout releases its embedded_samplers BO underneath the GPU, causing read page faults.

Fix / Scope
  • Hold references to bound descriptor set layouts containing embedded samplers on the recording tu_cmd_buffer (2cc43d38, 36 lines across tu_cmd_buffer.{cc,h}) and release them on command-buffer reset/destroy.
Verification
Offline & Native
CTS63 (49/14) and native19 (13,224 assertions) PASS; carried cleanly into promoted v3 (5b82a64c) and v4 (64dc995b) with 0 faults across 40+ live sessions.
Honest Limits
Protects against in-flight layout destruction while command buffers are alive; relies on normal command-buffer lifecycle management after GPU completion.
Worklog Proof
Mesa · turnipOptimizationOpt-In Winae8a9848

TU_ELIDE_CLEAR_RP: clear-only SYSMEM render-pass fast path

Plain English

Cyberpunk 2077 starts over 60 empty render passes every frame just to wipe textures clean before drawing anything, wasting GPU setup time. This optimization detects clear-only passes and replaces them with direct fast clears, saving 2.2 ms per frame with identical visuals.

62.5 → 0.0Zero-draw RPs/frame
-2.22 ms/fClear RP cost cut
13/13Native clear_rp_test
0/4 regBlind review PASS
Patch Branch
Problem

DX12 engines like REDengine 4 (Cyberpunk 2077) emit dozens of zero-draw, clear-only SYSMEM render passes every frame (62.5 zero-draw RPs/f = 2.223 ms/f in true two-eye stereo), paying full SYSMEM render-pass setup/teardown PM4 overhead for simple attachment clears.

Fix / Scope
  • Opt-in TU_ELIDE_CLEAR_RP=1 (7d7852ac + ae8a9848, strictly default-OFF) lowers eligible zero-draw clear-only SYSMEM render passes directly to fast clear blits.
  • Includes active-LRZ LOAD_OP_CLEAR depth fallback and VkClearRect containment, closing an Adreno A750 concurrent-binning LRZ odd-flip / BV-vs-BR race caught in pre-silicon code review.
Verification
Offline & Native
13/13 clear_rp_test arms PASS (7/7 fast-clear hits, 6/6 fallbacks incl. u_trace & TU_DEBUG=nolrz), 0 pm4lint errors, 100% knob-OFF RD byte-identity, 0 faults on A750.
Cyberpunk 2077 VR
Cut zero-draw RPs 62.5 → 0.0/f (generic_clear = 0.078 ms/f); camera-locked blind visual review PASS (0/4 regressions, 2 wins, 2 ties, 0 severe).
Ace Combat 8 VR
Solo isolation (V3_ELIDE_SOLO) confirmed safe & neutral (33.34 ms p50, 97.70% 3v, +0.07 ms/f noise; UE5 Flight only emits 7.5 zero-draw RPs/f = 0.058 ms/f).
Honest Limits
Savings are workload-dependent (strong on REDengine 4's 62.5 zero-draw RPs/f, negligible on UE5's 7.5). Aggregate untraced FPS gains can be smaller than serialized u_trace savings when hardware pipelining already hides wrapper overhead.
Worklog Proof
Mesa · turnipCompiler PassSilicon PASS64dc995b

tu_nir_opt_uniform_lds_barrier: bit-exact uniform LDS & barrier elimination

Plain English

DirectX 12 shaders often have one GPU thread load shared settings into scratchpad memory and force 63 other threads to stop and wait, even when every thread could just read the same value directly. Automatically removing those unnecessary waits deleted 160 sync barriers across 22% of Cyberpunk's compute shaders with bit-exact output.

160 / 724CP2077 CS (22.1%)
596 + 35LDS vars removed
0 spills!NDEBUG + NIR_VALIDATE
0 / 0 / 0Round-2 review findings
Patch Branch
Problem

DX12 compute shaders compiled via DXC routinely lower single-lane workgroup-uniform broadcasts as if (tid == 0) { shared[...] = uniform_load(); } barrier();, wasting Workgroup LDS capacity, registers, and wave synchronization cycles even when every lane can load the uniform directly into ir3's scalar preamble.

Fix / Scope
  • Strictly default-OFF bit-exact NIR pass tu_nir_opt_uniform_lds_barrier.cc (8964c854 + Round-2 hardening 64dc995b) with distinct pipeline-cache UUID separation.
  • Blocks barrier removal if any non-shared SSBO/image/atomic write occurs in init_block, rejects ACCESS_VOLATILE | ACCESS_COHERENT loads, and separates single-trip DXC do { ... } while (0) blocks (unreachable-predecessor CFG proof) from multi-iteration ping-pong loops.
Verification
Fossilize Scans
On !NDEBUG + NIR_DEBUG=validate: eliminated 160 barriers & 596 LDS vars across 160/724 (22.1%) Cyberpunk CS and 13 barriers & 35 LDS vars across 18 AC8 shaders (15,449 objects), with 0 new spills and 0 wave regressions (e.g., 12 → 14 waves, sy 413 → 391).
Review & Native
354/354 knob-OFF RD byte-identical, 0 pm4lint errors, independent code review 0 blockers / 0 majors / 0 minors, Adreno A750 native gate PASS (0 faults).
Live VR Silicon
Verified fault-free across 8/8 live Turnip v4 (5770f38e…) runs: AC8 honest zero-D15 stack (33.39 ms p50, 97.27% 3-vsync, 30.81 ms/f, 0 faults) and Cyberpunk 2077 solo (20.33 cold / 19.94 warm vs 20.33 v3 ref, 0 faults, bit-exact — confirming 2160×1200 T2 is 71.7% geometry/fragment render-pass bound).
Honest Limits
Bit-exact and fault-free across offline, native, and 8/8 live VR runs; on render-pass-bound Cyberpunk T2 solo throughput was neutral (19.94 warm vs 20.33 v3 ref). Strictly default-OFF; formal multi-agent blind visual review on v4 remains pending.
Worklog Proof
Mesa · turnipRFCSilicon PASS64dc995b

TU_VRS_TEMPORAL: alternating anisotropic foveated VRS

Plain English

Shading the edges of your VR vision at coarse 4×4 pixel blocks saves GPU work, but turns peripheral neon lights into distracting chunky squares. Alternating thin 2×1/1×2 and 4×2/2×4 strips every other frame lets temporal upscalers blend them back into smooth edges without static blocks.

0 static 4×42×1↔1×2 · 4×2↔2×4
99.16%VRS cache hit (0 evict)
200/200Timeline submits ignored
0 / 0 / 0Round-2 review findings
Patch Branch
Problem

Static 4×4 peripheral VRS (VRS_MED) quantizes peripheral neon lamps into visible macro-blocks (rejected in QV90 blind review), while conservative VRS_DEFAULT leaves peripheral fragment shading headroom unused.

Fix / Scope
  • Opt-in TU_VRS_TEMPORAL=1 (d950d5ba + Round-2 hardening 64dc995b) caches 2 VRS maps per extent and alternates orthogonal rates on 2-frame parity: Even [1×1, 2×1, 4×2] (codes [0, 4, 9]) vs Odd [1×1, 1×2, 2×4] (codes [0, 1, 6]), zero static 4×4, 392 alternating transition-dither texels, flat 1×1 HUD protection (TU_HUD_MASK=1).
  • In pure OpenXR (current_frame == 0), submit-fallback parity advances only on non-timeline binary sync signals plus a 5 ms lock-free monotonic debounce (p_atomic_cmpxchg), avoiding mid-frame tearing across vkd3d-proton's 10–40+ timeline submits/frame.
Verification
Offline & Native
Host release, !NDEBUG, and Adreno A750 native smoke (temporal_vrs_250f, temporal_vrs_multi_20f, 0 pm4lint errors, 0 faults): verified exact rate codes, 99.16% cache hit (474/478, 0 evictions), 200/200 timeline submits ignored across 220-submit test.
Code Review
Independent code review cleared 0 blockers / 0 majors / 0 minors after Round-2 multi-submit hardening.
Live VR Silicon
Ace Combat 8 VR zero-D15 honest profile cleared >= 95% M1 (33.39 ms p50, 97.27% 3-vsync, 30.81 ms/f, 0 faults) while smoothing static 4×4 square mosaic blocks on ocean sun-glint; Cyberpunk 2077 VRS_MED (19.86 FPS, 0 faults) eliminated static 4×4 peripheral ceiling-lamp/neon blockiness.
Honest Limits
RFC-stage opt-in lever, strictly default-OFF; direct still inspection confirmed elimination of static 4×4 blocks on both titles, while formal multi-agent blind visual review and in-headset human temporal flicker inspection remain pending.
Worklog Proof
Mesa · turnipRFC / FeatureVerifiedc257308 + 79aa05df

TU_VRS eye-tracked foveated VRS, TU_VRS=auto zero-thrash & TU_HUD_MASK

Plain English

Instead of shading every peripheral pixel at full sharpness where your eyes aren't looking, this driver layer automatically injects lower shading rates around your gaze point while keeping text and cockpit HUDs crisp at full 1×1 resolution, cutting Cyberpunk VR GPU time by 3.61 ms per frame.

-3.61 ms/fCP2077 VR (-7.04%)
99.99%VRS cache hit rate
-0.549 ms/fTU_HUD_MASK heavy busy
44/44 PASSBlind HUD mask review
Patch Branch
Problem

Most PC DX12 games running under Proton/OpenXR have no native Vulkan Variable Rate Shading (VK_KHR_fragment_shading_rate) or eye-tracking support. Earlier naive driver-injected VRS also thrashed its VRS image cache when games used multiple dynamic attachment resolutions (TU_VRS=auto), and full-screen HUD/glow passes still shaded empty sky pixels.

Fix / Scope
  • Driver-injected eye-tracked foveated VRS (tu_foveate.cc, opt-in TU_VRS=1|auto) reads live gaze UVs from gazed-v2 shared memory (or fixed-center fallback), synthesizes hardware VRS attachment maps per stereo eye, and injects them transparently into eligible 3D color passes.
  • TU_VRS=auto (79aa05df, Pillar 4) auto-discovers stereo/eye render-target extents with a multi-extent LRU cache (99.99% hit rate, zero frame-time thrash) instead of hardcoding game dimensions.
  • TU_HUD_MASK=1 (tu_hud_mask.cc) builds an exact per-tile GPU coverage mask so full-screen cockpit HUD glow/blend passes skip empty tiles while keeping HUD symbols at full 1×1 sharpness.
Verification
Cyberpunk 2077 VR
Zero-config TU_VRS=auto cut total GPU pass time -3.61 ms/f (-7.04%) in true two-eye stereo on Adreno A750 with 0 faults and beat upstream Turnip.
AC8 VR & Native
TU_HUD_MASK=1 passed 20/20 native silicon tests, saved -0.549 ms/f heavy flight busy time, and passed 44/44 isolated blind visual review (0 HUD artefacts).
Honest Limits
Strictly opt-in (default-OFF) driver RFC; TU_HUD_MASK=1 currently targets full-screen additive/soft-light HUD passes validated in Ace Combat 8 VR, and aggressive static 4×4 peripheral rings (VRS_MED) failed Cyberpunk peripheral neon review (leading to #mesa-temporal-vrs).
Worklog Proof
Mesa · turnip/ir3OptimizationVerified85a4262 + 1e506a6

TU_SG32_EMU=v2: layered Wave32-on-Wave64 subgroup emulation

Plain English

When a DirectX 12 shader insists on running in 32-thread groups on hardware that prefers 64-thread waves, the driver emulates 32-wide groups inside 64-wide waves. This improved emulation lowers subgroup operations more cleanly, cutting 2.07 ms per frame in Ace Combat 8 VR while matching all 4,936 Vulkan conformance tests.

-2.07 ms/fAC8 VR win (CI 1.43–3.02)
4,936/4,936CTS subgroup cases match
13,224/0Native19 + CTS 49/14
0 artefactsLive VR & stills clean
Patch Branch
Problem

DX12 compute shaders frequently declare WaveSize(32) (VK_EXT_subgroup_size_control). On Adreno A750, emulating wave32 inside wave64 (TU_SG32_EMU=v1) incurred extra lane-masking and cross-half overhead in hot volumetric sky/raymarch loops.

Fix / Scope
  • Opt-in TU_SG32_EMU=v2 (tu_nir_lower_emulated_subgroups.cc, 85a4262 + 1e506a6) optimizes wave32-on-wave64 subgroup lowering across half-wave boundaries while keeping default v1 RD byte-identical.
Verification
CTS Conformance
Matched v1 case-for-case across all 4,936 dEQP-VK.subgroups.*required_subgroup_size* tests (2 shared pre-existing failures; fp64 subgroup cases crash ir3 identically in both arms), plus CTS63 (49/14) and native19 (13,224/0).
Live Silicon
Measured -2.07 ms/f faster (95% CI 1.43–3.02 ms/f) in Ace Combat 8 VR (QV41) with 0 GPU faults and 0 visible artefacts.
Honest Limits
Carried behind opt-in TU_SG32_EMU=v2 (default v1 remains byte-identical); pre-existing ir3 fp64 subgroup compiler crashes remain orthogonal.
Worklog Proof
Mesa · turnip/ir3Compiler PassVerified6ed0c13 + 27a95bf9

TU_UBO_WITNESS_HOIST: dominance-verified PARTIALLY_BOUND-sound UBO hoisting

Plain English

Normally the compiler refuses to pre-load uniform buffer constants if a descriptor might be unbound, forcing slow per-thread memory loads inside loops. By proving that an earlier unconditional load already touched the same buffer, this pass safely promotes those loads to fast shared registers without risking invalid memory reads.

cat6 -80Across 55 UE5 shaders
0 spills0 wave regressions
0 specZero TU_PUSH_UBO_SPECULATE
PASSCTS63 + native19 + live VR
Patch Branch
Problem

DX12 bindless descriptor sets mark bindings VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT, forcing ir3 to conservatively avoid hoisting UBO loads into the shader preamble/constant file. Blanket speculation (TU_PUSH_UBO_SPECULATE) violates conservative validity and is banned; shaders instead pay repeated cat6 ldc/ldg loads per wave.

Fix / Scope
  • Stage-generalized dominance-verified witness pass (ir3_nir.c, tu_shader.cc, 6ed0c13 + 27a95bf9 Pillar 1): hoists a UBO load only when a dominating unconditional witness access proves the descriptor binding is live and valid on every path.
  • Zero TU_PUSH_UBO_SPECULATE usage anywhere in the driver (0 occurrences).
Verification
Offline Compiler
Cut cat6 memory instructions by -80 across 55 active UE5 compute/fragment/vertex shaders with 0 spills and 0 wave-occupancy regressions on !NDEBUG.
Native & Live VR
Passed CTS63 (49/14), native19 (13,224/0), and promoted v3 (5b82a64c) live Ace Combat 8 VR (98.21% 3-vsync, 0 faults, 94-judge blind review PASS).
Honest Limits
Strictly opt-in (TU_UBO_WITNESS_HOIST); only hoists loads with a dominating witness in the same shader invocation.
Worklog Proof
Mesa · turnipOptimizationVerifiedecbc845 + 27a95bf9

TU_ELIDE_RP_SR & TU_ELIDE_PRIME=auto: render-pass elision across suspend/resume chains

Plain English

DirectX 12 translation splits continuous drawing into back-to-back dynamic render passes that normally force a tiled mobile GPU to flush its fast on-chip memory out to RAM and reload it between passes. This pass spots consecutive compatible passes and skips the unnecessary memory round-trips.

-0.248 ms/fBusy ABBA (CI -0.48..-0.01)
1.98 / frameLive AC8 passes elided
96.17%ON vs 94.86% OFF 3-vsync
0 faultsNative + live VR PASS
Patch Branch
Problem

vkd3d-proton emits VK_RENDERING_SUSPENDING_BIT / VK_RENDERING_RESUMING_BIT dynamic-rendering chains (tiler_suspend_resume) whenever a DX12 command list interrupts or continues a render target. Distinct from zero-draw clear-only passes (#mesa-elide-clear-rp), naive tiling flushes and reloads GMEM across those boundaries.

Fix / Scope
  • Opt-in TU_ELIDE_RP_SR + TU_ELIDE_PRIME=auto (tu_elide.cc, ecbc845 + 27a95bf9 Pillar 3) tracks attachment compatibility across vkd3d-proton suspend/resume dynamic-rendering chains and elides redundant store/load transitions.
Verification
Mirrored ABBA Silicon
Passed native gate (G3FIX + CTS63 + native19); registered PASS_TIMING on pooled two-look mirrored within-process ABBA in AC8 VR (-0.248 ms/f busy, 95% CI -0.483..-0.013; 96.17% ON vs 94.86% OFF 3-vsync; 1.975 elided passes/frame).
Honest Limits
Opt-in lever; distinct from #mesa-elide-clear-rp. Gains scale with how many suspend/resume dynamic-rendering chains a game emits per frame.
Worklog Proof
Mesa · freedreno/fdl & tuFeature / OptVerifieda87efde

TU_UBWC_3D: Adreno hardware UBWC compression on mipmapped 3D textures

Plain English

Volumetric clouds, fog, and lighting grids live in 3D textures that consume huge amounts of GPU memory bandwidth. Enabling Adreno's built-in lossless hardware texture compression (UBWC) for mipmapped 3D textures shrinks memory traffic transparently without changing image quality.

fdl + tuLayout & Turnip wiring
LosslessHW UBWC compression
3D + MipsVolumetric cloud/fog LUTs
0 faultsCarried in v3/v4 lineage
Patch Branch
Problem

Upstream freedreno/fdl disabled Adreno Universal Bandwidth Compression (UBWC) on mipmapped VK_IMAGE_TYPE_3D resources, leaving large UE5 volumetric cloud/fog froxel and 3D LUT textures uncompressed in DRAM.

Fix / Scope
  • Opt-in TU_UBWC_3D (a87efde across src/freedreno/fdl and src/freedreno/vulkan) computes valid UBWC plane/slice strides for eligible mipmapped 3D images and enables hardware UBWC descriptors when compatible.
Verification
Native & Lineage
Cleared Adreno A750 native gate (CTS63 49/14, native19 13,224/0, 0 faults) and carried cleanly through the promoted v3 (5b82a64c) and v4 (64dc995b) multi-queue rebase.
Honest Limits
Opt-in behind TU_UBWC_3D (strictly default-OFF) until full CTS 3D image copy/alias/transfer edge-case coverage is audited across all a6xx/a7xx generations.
Worklog Proof
Mesa · turnip/ir3Compiler PassNative PASS6681866b + 64dc995b

TU_SAFE_FP16=v4: 13-invariant automatic mediump/FP16 NIR lowering

Plain English

Half-precision (16-bit) math runs twice as fast and uses half the GPU registers of 32-bit math, but blindly shrinking shader math causes NaN glitches and broken lighting. This pass enforces 13 strict safety rules so only provably safe operations shrink to 16-bit, boosting wave occupancy across 282 real game shaders with zero spills or hazards.

388 / 219AC8 shaders / occ wins
76 / 63CP2077 CS / occ wins
0 hazards0 spills, 0 stib/cmps.f16
0 / 0 / 0Adversarial review PASS
Patch Branch
Problem

Earlier aggressive FP16 promotion (QV87 v1) triggered ir3 FTZ/NaN bugs (cmps.f half-precision source hazards, stib.f16/ldib.f16 storage mismatches, and world-space coordinate precision loss), failing blind visual review and proving default execution must remain bit-exact FP32.

Fix / Scope
  • Strictly default-OFF opt-in TU_SAFE_FP16=v4 (tu_nir_safe_fp16.cc, 6681866b + 64dc995b), enforcing all 13 learned invariants (no stib.f16/ldib.f16, no half-src cmps.f, no world-coord/depth/SV/atomic/derivative/divergent-control-flow promotion, strict pipeline-cache UUID separation).
  • Default Turnip execution stays 100% bit-exact FP32 (354/354 knob-OFF RD captures identical).
Verification
Offline Fossilize & ISA
On !NDEBUG + NIR_DEBUG=validate: accepted 388 AC8 shaders (219 occupancy wins) and 76 Cyberpunk 2077 CS (63 occupancy wins), 0 spills, 0 wave regressions, 0 new stib.f16/ldib.f16/half-src cmps.f instructions.
Review & Native
Independent adversarial review cleared 0 blockers / 0 majors / 0 minors; Adreno A750 native silicon gate PASS (0 faults).
Honest Limits
Opt-in RFC pass (strictly default-OFF); default driver remains bit-exact FP32. Per-title visual verification is required before enabling in any game profile.
Worklog Proof
Mesa · turnipHardening / OptVerified01b6946 + f82c68d + 819346e

tu: shader-BO tail guard, bounded CS-BO retention, descriptor validity & u_trace copy-once

Plain English

A bundle of four defensive driver fixes that stop subtle GPU memory faults and profiler bloat: padding the end of shader memory so GPU instruction prefetchers can't read off the edge, capping memory kept on reset command buffers, tightening descriptor checks, and copying only actually-used GPU trace timestamps once per submit.

4 commitsIndependent small fixes
0 prefetchTail-guard over-read faults
1× copyu_trace used-span copy
40+ runs0 faults across v3/v4
Patch Branch
Problem

Long DX12 VR sessions exposed four subtle driver edge cases: (1) Adreno instruction prefetchers could read past the end of a shader BO into an unmapped page; (2) resetting command buffers without bounding retained CS BOs risked either unbounded memory growth or premature BO reuse; (3) descriptor-buffer push-UBO validity checks needed conservative handling; (4) u_trace copied full timestamp buffers redundantly on every flush instead of copying the used span once per submit.

Fix / Scope
  • 01b6946: TU_PIPELINE_TAIL_PAD adds a mapped guard region after compiled shader BOs against GPU instruction-prefetch over-reads.
  • f82c68d: default-on bounded command-stream BO retention on reset command buffers.
  • 1418e70: conservative descriptor-buffer / push-UBO validity restoration (ensuring TU_PUSH_UBO_SPECULATE stays disabled).
  • 819346e + effc91c: u_trace timestamp copy-once-per-submit and copy-only-used-span optimization (cutting tracing overhead cleanly).
Verification
Native & Live VR
Validated across CTS63 (49/14), native19 (13,224/0), and 40+ live Ace Combat 8 VR and Cyberpunk 2077 VR sessions (0 GPU faults) in promoted v3 (5b82a64c) and v4 (64dc995b).
Honest Limits
Each commit is small and independently upstreamable; TU_PIPELINE_TAIL_PAD guards against hardware prefetch over-read symptoms while exact per-ISA prefetch alignment rules are evaluated upstream.
Worklog Proof
Mesa · compiler/nir & ir3Compiler InfraVerifiednir/ir3 (v3/v4)

nir_lower_atomics CAS early-out, ir3_spill sparse live-set & ir3_legalize RT reg handling

Plain English

Three low-level compiler improvements under the hood: letting lowered compare-and-swap atomic loops exit immediately on success, replacing heavy dense liveness scans with sparse sets during register spilling on giant shaders, and teaching the legalizer about ray-tracing per-wave registers.

3 filesnir_atomics + ir3 spill/leg
Early-outCAS loop break + release
Sparse setir3_spill compile scaling
87/87 PASSNative + 48/48 RT !NDEBUG
Patch Branch
Problem

Large DX12/DXR monolithic shaders stressed three compiler internals: (1) nir_lower_atomics.c lowered CAS retry loops without an early-out break (nir_break_if(ieq(expected, before))) or release-mode tracking; (2) ir3_spill.c hit quadratic overhead tracking live values in very large ray-tracing/UE5 shaders; (3) ir3_legalize.c needed clean OPC_META_BLOB and RT per-wave register handling.

Fix / Scope
  • src/compiler/nir/nir_lower_atomics.c: add early_out CAS loop exit and atomic release-mode tracking.
  • src/freedreno/ir3/ir3_spill.c: sorted sparse live-set tracking for large register-pressure shaders.
  • src/freedreno/ir3/ir3_legalize.c: OPC_META_BLOB and RT per-wave register legalization support.
Verification
Offline & Native
Verified under !NDEBUG + ir3_validate across 55/55 UE5 shaders, 48/48 RT pipeline variants, 354/354 knob-OFF RD byte-identity checks, and 87/87 Adreno A750 native gate (0 faults).
Honest Limits
ir3_legalize RT register handling pairs with #mesa-rt-pipeline-bvh; nir_lower_atomics early-out and ir3_spill sparse live-set tracking are independently upstreamable compiler cleanups.
Worklog Proof

Valve · vkd3d-proton

DX12 View Instancing hardware multiview bridge and dynamic-rendering viewMask canonicalization.

vkd3d-protonFeature + FixVerifiedvkd3d-vi v2

Hardware same-slice View Instancing & viewMask canonicalization fix

Plain English

Cyberpunk's VR mod tries to draw both eyes in one shot, but the DirectX-to-Vulkan translator hit a rule conflict and quietly fell back to drawing everything twice anyway. Fixing that fallback (plus a view-mask bug) finally activates true single-pass hardware stereo on the chip, gaining +0.77 FPS and +1.24 min FPS with verified 3D depth.

+0.77 FPSWarm (+1.24 minFps)
183/183Pixel-exact SBS PASS
0 VVL errVVL 1.3.296 (39/39)
PASSBlind review (+9→+25px)
Patch Branch
Problem

Two separate bugs blocked hardware single-pass stereo View Instancing on Adreno A750 (CyberpunkVRPort, CyberpunkVR_SinglePass=1): (1) both eyes target RenderTargetArrayIndex = 0 (ViewportArrayIndex = 0, 1), hitting a layer-0 bitmask collision in state.c that fell back to emulated = true (2× duplicated Vulkan draws) while exporting BuiltIn ViewportIndex (blocking Turnip multi_pos_output); (2) upstream vkd3d-proton could mismatch VkRenderingInfo.viewMask vs VkPipelineRenderingCreateInfo.viewMask when SetViewInstanceMask passed extra bits (e.g., 0xf or 0x4 on a 2-view PSO).

Fix / Scope
  • Five-file opt-in driver patch (include/vkd3d.h, libs/vkd3d/{vkd3d_private.h,device.c,state.c,command.c}, zero dxil-spirv delta) gated behind VKD3D_CONFIG=view_instancing,view_instancing_same_layer.
  • For all-layer-0, identity-viewport PSOs without explicit SV_ViewportArrayIndex/SV_RenderTargetArrayIndex exports: sets emulated = false, same_layer_hw = true, view_mask = (1u << ViewInstanceCount) - 1u, and omits VIEW_ID_TO_VIEWPORT so dxil-spirv emits ViewIndex=1 / ViewportIndex=0 / Layer=0, letting Turnip TU_MULTIVIEW_SAME_LAYER=sysmem (GRAS_SU_CNTL.viewportindexincr=1) route viewports in hardware and keep multi_pos_output = true.
  • Canonicalizes dyn_state->view_mask & default_mask via shared vkd3d_graphics_pipeline_effective_view_mask() across dynamic rendering, SetViewInstanceMask(), and PSO lookup; separates disk shader cache via "VISL" hash.
Verification
Offline (6/6 Arms)
39/39 PASS under Vulkan Validation Layers 1.3.296 (0 errors, spirv-val valid with ViewIndex=1/ViewportIndex=0/Layer=0), 183/183 pixel-exact single-layer SBS (0 emulated draws), 1,419/1,419 view_instancing-only invariance (0 VVL errors), 2,533/2,533 non-VI tests, shared cache non-collision, 4/4 strict opt-in gating; code review 0 blockers / 0 majors.
Silicon & Blind Review
Warm 21.03 FPS (+0.77 FPS over 20.26 ref, minFps +1.24 FPS, 0 faults, zero hotswap); isolated blind visual review PASS (1–1, 2 ties, 0 severe, verified +9 → +25 px 3D depth parallax, 0.0% black border).
Honest Limits
view_instancing_same_layer requires companion driver-side same-layer multiview (TU_MULTIVIEW_SAME_LAYER=sysmem) because standard Vulkan requires layerCount >= util_last_bit(viewMask). The viewMask canonicalization fix is standard-Vulkan conformant and independently upstreamable.
Worklog Proof

Valve · SteamVR

OpenXR teardown synchronization defect root-caused from Adreno A750 kernel devcoredump.

SteamVRBug ReportRoot-CausedVUID-00793

xrDestroySession violates VUID-vkDestroyQueryPool-queryPool-00793 (teardown GPU fault)

Plain English

When a VR session shuts down, SteamVR frees a tiny GPU timestamp buffer before waiting for the GPU to finish writing its final timestamp into it, violating the Vulkan spec and faulting the GPU. Waiting on its own submission fence before destroying the pool fixes the root cause across all drivers.

121 MBDecoded devcd1.raw
Ring 2Fence 2182330 (257 dw)
8 KB BOFreed VkQueryPool
40+ → 0Faults after driver drain
Problem

During OpenXR session shutdown (xrDestroySession), SteamVR calls vkDestroyQueryPool on an 8 KB VK_QUERY_TYPE_TIMESTAMP query pool while its own 257-dword Ring 2 timestamp command submission is still executing on the GPU, violating Vulkan valid usage VUID-vkDestroyQueryPool-queryPool-00793 ("All submitted commands that refer to queryPool must have completed execution").

Fix / Scope
  • Decoded CP_ROQ_DBG[459..504] command packets directly from a 121 MB Adreno A750 kernel devcoredump (devcd1.raw), proving the CP WRITE TRANSLATION faulting IOVA landed inside the just-unmapped 8 KB timestamp query pool BO.
  • Recommended SteamVR fix: wait on the timestamp submission fence (or queue idle) before calling vkDestroyQueryPool inside xrDestroySession().
Verification
Hardware Proof
Confirmed causality on Adreno A750: adding a defensive active hardware fence drain in Turnip tu_DestroyQueryPool (#mesa-querypool-uaf) eliminated 100% of teardown GPU faults across 40+ consecutive VR sessions.
Honest Limits
The Turnip driver-side drain masks the fault on Adreno/Turnip only; fixing the synchronization inside SteamVR's xrDestroySession() teardown path is required for Vulkan spec compliance across all drivers.
Worklog Proof

UEVR, UE4SS & VR Ecosystem

Open-source VR runtime fixes (UEVR, UE4SS) and standalone Steam Frame eye-tracking / headless VR CI tools.

UEVRBug FixVerifiedcbrh5 (a426bc81)

UEVRBackend cut-black v5 (cbrh5): GPU-side hold for UE5 camera-cut black flashes

Plain English

In VR, Unreal Engine 5 camera cuts often emit a single solid-black frame that flashes painfully across both eyes in the headset. This tiny GPU-side check detects black cut frames and holds the previous valid frame for one tick, catching 34 out of 34 flashes at virtually zero cost (0.015 ms).

34 / 34Black cut frames held
+0.015 ms/fMeasured bench cost
0 flightZero false flight holds
70/70 PASSBlind review (10/10 ctrl)
Patch Branch
Problem

On UE5 cinematic camera cuts under UEVR/OpenXR, transient render-target clears produce jarring single-frame black flashes inside the headset (while intentional fade-to-black scenes must still show true black).

Fix / Scope
  • UEVRBackend.dll cut-black v5 (cbrh5, a426bc81, gsel,3,10) evaluates cut frames on the GPU with a view-target gate so zero passes run during normal flight, holding transient black cut frames while preserving real cinematic black scenes (cin-31).
Verification
Mechanical & Cost
Held 34/34 (B85_1) and 32/32 (B85R_1) black cut frames with 0 flight holds at +0.015 ms/f (95% CI -0.001..+0.031 ms/f).
Blind Visual Review
cb81 blind review PASS (70/70, 0 errors; controls 10/10 severe including intentional black frame cin-31; pairs 5/32 vs 5/32, 0 severe against cbrh5).
Honest Limits
Automated mechanical, cost, and 70/70 blind visual reviews passed; final human in-headset visual confirmation remains pending.
Worklog Proof
UEVR · SafetyHookBug Fix / OptVerified4374566b + 5149cd5

UEVR OpenXR pose/crop/mirror-off pipeline (rhlat) & safetyhook ARM64EC thread-trap race fix

Plain English

Standalone VR headsets don't have a desktop monitor to mirror to, and hooking Windows game functions under ARM64 Proton can hit a thread-pausing race condition at startup. These two fixes turn off wasteful desktop mirror copies, tighten VR head-pose latency, and stabilize function hooking on ARM64 Linux.

rhlatPose + crop + mirror-off
cursey #103trap_threads race fix
ARM64ECProton 11 + FEX verified
100+ bootsStanding VR stack base
Patch Branch
Problem

Default UEVR builds incur desktop mirror blits and extra OpenXR pose latency on headless standalone HMDs, and older safetyhook pins hit a trap_threads startup race when injecting into UE5 under Wine/Proton ARM64EC.

Fix / Scope
  • rhlat (4374566b, carried forward inside cbrh5 a426bc81): OpenXR stereo crop, desktop mirror-off, and render-head pose latency pipeline tuning.
  • 5149cd5: pin safetyhook to b62c735 + cursey #103 (trap_threads race fix) for reliable Linux/Proton ARM64EC injection.
Verification
Live Standalone VR
Forms the standing OpenXR runtime stack across 100+ Ace Combat 8 VR sessions on Steam Frame (Proton 11 ARM64 / FEX-2607).
Honest Limits
Linux/Proton ARM64EC builds still encounter unrelated Wine alloc_tls_slot (DOOMED-TLS) failures on a small percentage of cold launches (handled by launch watchdog rather than UEVR).
Worklog Proof
UE4SSBug FixVerified3ce0f2fe

UE4SS FName startup signature repair for UE5 on Proton ARM64EC

Plain English

Unreal Engine's modding runtime (UE4SS) crashed at boot on modern UE5 games under ARM64 Proton because its signature scan couldn't locate the engine's internal string table (FName). Repairing that startup resolution lets Lua VR compatibility mods load reliably across multiple game updates.

2 builds25201480 & 26002268 PASS
SHA2563ce0f2fe verified
100+ runsZero FName boot crashes
Proton 11ARM64EC + FEX-2607
Problem

UE4SS failed to resolve FName::ToString / FNamePool at startup on newer UE5 shipping binaries under Proton ARM64EC, aborting before Lua VR compatibility modules could initialize.

Fix / Scope
  • Repaired FName startup signature/resolution in UE4SS.dll (SHA256 3ce0f2fe…), verified intact across Steam game build updates (25201480 → 26002268).
Verification
Live Boots
Verified across 100+ live UE5 VR boots on two shipping builds with 0 FName startup failures.
Honest Limits
Separate upstream UE4SS Lua-dispatch access violations (UE4SS.dll+0x3E60BE) can still occur rarely during long sessions and are orthogonal to the FName startup repair.
Worklog Proof
Steam Frame ToolsOpen ToolingVerified2a3d333 + c67c95b

gazed-v2 eye-tracking SHM daemon & steamvr-virtual-wearer headless VR CI driver

Plain English

To make eye-tracked foveated rendering and automated VR testing work without a human wearing the headset 24/7, we built two small open-source utilities: one feeds real-time eye gaze coordinates directly to the GPU driver over shared memory, and the other emulates a virtual VR wearer with repeatable head/eye scripts.

gazed-v2P1/P2/P3 gaze SHM v2
VW-HEAD-0Scripted HMD + gaze CI
aarch64Host tests + ARM64 build
100+ runsRepeatable A/B VR runs
Problem

Turnip (#mesa-foveated-vrs-and-hud-mask) needed a low-latency, lock-free way to receive OpenXR eye-tracking coordinates inside Vulkan without talking to the compositor per draw, and repeatable VR driver benchmarking required deterministic head-pose and gaze trajectories without physical HMD drift.

Fix / Scope
  • gazed-v2 (2a3d333): lightweight OpenXR eye-tracking daemon publishing tu_gaze_shm.h v2 shared-memory records (P1/P2/P3 mapping math, saccade detection, valid flag handling, recorder & mock-runtime e2e tests).
  • steamvr-virtual-wearer (c67c95b): SteamVR driver (VW-HEAD-0) + vw-probe/vw-capture/vw-ctl CLI delivering scripted head poses and eye-gaze trajectories for fully reproducible A/B VR timing and blind visual capture.
Verification
Host & Device
Host unit tests and aarch64 cross-builds PASS; steamvr-virtual-wearer drove 100+ deterministic Ace Combat 8 VR and Cyberpunk 2077 VR A/B benchmarks on Steam Frame.
Honest Limits
Standalone Steam Frame / Linux VR tooling (not patches to Mesa or SteamVR); TrackingOverrides must be configured before SteamVR launches so the virtual driver binds cleanly.
Worklog Proof