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

Worklog › Turnip

Flagship v2

1-feature upstream bisect (vk_memory_budget), SteamVR teardown UAF fix, and flagship MQ2bc5c5c1 AC8 record

We pinpointed the exact upstream commit behind the Ace Combat 8 +14.5 ms/eye lockstep bubble, dissected a 121 MB kernel devcoredump to fix a pre-existing SteamVR teardown use-after-free, and shipped our unified flagship mq-rebase-nov27-v2 (MQ2bc5c5c1) — immediately setting a new all-time Ace Combat 8 VR pacing record with 0 faults across rendering and teardown.

1. Exact 1-feature upstream bisect: vk_memory_budget (a5b7ecdf + 515a6b04)

A three-stage deterministic Main-Menu bisect narrowed the entire +14.5 ms/eye serialization bubble down to a single upstream Mesa feature — cross-instance vk_memory_budget:

Bisect armWhat changedResult
S3AReverted 8a494f24Bubble persisted
S3BReverted tu_autotuneBubble persisted
S3CReverted ONLY vk_memory_budget (a5b7ecdf + 515a6b04)22.22 ms, wf=11.19 ms, wf→ef=10.59 ms — 100 % CLEAN

2. Dissecting a 121 MB kernel devcoredump: SteamVR xrDestroySession UAF fix (04562438)

Hardware packet decoding of CP_ROQ_DBG[459..504] inside a 121 MB kernel devcoredump (devcd1.raw) exposed a pre-existing SteamVR xrDestroySession Vulkan teardown use-after-free (VUID-vkDestroyQueryPool-queryPool-00793): SteamVR destroyed its 8 KB timestamp query pool while its own 257-dword Ring 2 timestamp submit was still in-flight on the GPU.

Our fix (04562438, cleared by independent code review with 0 blockers and 0 majors) performs a zero-hot-path-cost active hardware fence drain inside tu_DestroyQueryPool, eliminating teardown faults without adding any per-frame overhead.

3. Unified flagship mq-rebase-nov27-v2 (MQ2bc5c5c1) sets an all-time AC8 VR record

Combining the bubble-free upstream mesa/mesa rebase, teardown fence drain, v2.1 bit-exact FP32 + zero-thrash TU_VRS=auto, and opt-in TU_ELIDE_CLEAR_RP=1 (348/348 knob-OFF RD captures byte-identical) passed native silicon smoke (0 faults) and set a new Ace Combat 8 VR record (90 Hz untraced):

MetricMQ2bc5c5c1 (mq-rebase-nov27-v2)Delta vs prior best
Flight U0 xrWaitFrame p50 (pacing)33.34 ms/eyeParity at floor
Flight U0 p9536.54 ms/eye−1.25 ms
Flight U0 p9939.84 ms/eyeFirst sub-40 ms p99
Flight U0 3-vsync share98.32 %+1.30 pp
Wait headroom7.28 ms+1.03 ms
RHIThread CPU−0.75 ms/f fasterEven at 66–78 MHz lower Prime clock
Lumen HWRT CIN1–CIN4 p5056.4 / 64.2 / 47.2 / 57.5 ms/eyeFaster on all 4/4 cinematic windows
Kernel GPU / DPU faults0Clean across rendering and teardown

normal adopted default driver remains MQ771 until separately promoted. Re-enabling the innocent S3 commits (8a494f24 and tu_autotune) on top of MQ2bc5c5c1 is a clean follow-up. xrWaitFrame p50/p95/p99 and 3-vsync share are aggregate VR pacing metrics (not a GPU pass breakdown).

Next: file an upstream Mesa report for the vk_memory_budget VR lockstep bubble and re-enable the innocent S3 commits on top of MQ2bc5c5c1.