Clean Patch Branches & Engineering Handoff Matrix
All 21 Mesa (freedreno/turnip, ir3), 2 vkd3d-proton, and 4 UEVR branches (27 total) are live, isolated, compiled, and tested on personal forks (gitlab.freedesktop.org/jethac/mesa, github.com/jethac/vkd3d-proton, and github.com/jethac/UEVR) for direct engineering handoff to Qualcomm, Valve, and Igalia — rather than lodging unsolicited cold MRs onto mesa/mesa. Branches are organized in four review tiers: tiny surgical bug fixes & bisects first, self-contained opt-in compiler/render-pass optimizations second, architectural RFCs third, and open-source VR ecosystem tools fourth.
Every Mesa (21/21 on gitlab.freedesktop.org/jethac/mesa), vkd3d-proton (2/2 on github.com/jethac/vkd3d-proton), and UEVR (4/4 on github.com/jethac/UEVR) change lives on its own clean branch off fresh upstream main/master (888fa7c0 Mesa 27.0 / 71cae09 vkd3d-proton 3.2.0 / 4ee5c6b UEVR). Click any branch or Diff ↗ link below to inspect the exact standalone patch.
Every fork branch carries zero added non-SPDX code comments, clean single-topic commits, and Generated-by: LLM on Mesa commits. Branches are shared directly with Qualcomm, Valve, and Igalia engineers rather than bulk-posted as cold upstream MRs.
All 21/21 Mesa branches compile cleanly in !NDEBUG and pass 6/6 freedreno meson test suites (ir3_disasm, ir3_delay_test, fd5_layout, fd6_layout, tu symbols check, check-xml-includes). Both vkd3d-proton branches pass 1,836/1,836 test_view_instancing assertions with 0 VVL 1.4.350 rendering/multiview errors.
Each row cross-links its exact permanent anchor on /upstream/#... with verified offline, native Adreno A750 silicon, live VR, and blind visual review evidence plus honest limits.
Tier 1 · High-Signal Surgical Bug Fixes & Regression Bisects
Start here: tiny (10–110 line) correctness fixes, teardown hardening, and clear regression bisects — all compiled, tested, and live on fork.
| Fork / Target | Live Branch & Proof Anchor | Scope & Verification | Status |
|---|---|---|---|
| jethac/mesa Small MR | Require reloaded_def equality and dominance in init_block_liveness() so ir3_validate stops crashing on complex UE5 shaders.Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork; ir3_validate across 55 UE5 CS & 48 RT variants. | Live on Fork | |
| jethac/mesa Bisect + Ref Branch | File 3-arm regression bisect ( S3A/S3B/S3C) isolating +14.5 ms/eye (34.5%-idle) OpenXR/DX12 lockstep stall to cross-instance vk_memory_budget (a5b7ecdf).Verified: 3-arm bisect ( S3A/S3B/S3C) isolating +14.5 ms/eye stall to a5b7ecdf; reference bisect branch passes !NDEBUG + 6/6 freedreno meson test. | Live on Fork | |
| jethac/mesa Small MR (2 commits) | Add missing subgroup+device acquire barrier in common vk/bvh H-PLOC range handoff (restoring fence.g.w + ccinv) + bounded spins & Turnip encode.comp cap.Verified: !NDEBUG + 6/6 freedreno meson test PASS; ir3 ISA diff (fence.g.w + ccinv); TU_AS_VALIDATE=1 6/6 clean UE5 loads (100+ loads, 0 hangs). | Live on Fork | |
| jethac/mesa Small MR (2 commits) | Move u_trace_context_process() under submit_mutex (10-line double-free fix, still present on 86cc7324f655) + memory-backed u_trace clone barrier.Verified: !NDEBUG + 6/6 freedreno meson test PASS; native multi-queue trace_stress repro & 7/7 fix + live AC8/CP2077 u_trace captures. | Live on Fork | |
| jethac/mesa Tiny MR (22 loc) | Drain active hardware queue fences ( 3 s bounded wait) before freeing pool->bo in tu_DestroyQueryPool (zero hot-path cost).Verified: !NDEBUG + 6/6 freedreno meson test PASS; 354/354 RD byte-identity; 40+ fault-free teardowns; cross-linked to SteamVR devcd1.raw (#steamvr-querypool-uaf). | Live on Fork | |
| jethac/mesa Tiny MR (36 loc) | Retain descriptor set layout references on recorded tu_cmd_buffer so destroying in-flight PSOs/root signatures cannot unmap embedded_samplers BOs.Verified: !NDEBUG + 6/6 freedreno meson test PASS; CTS63 (49/14) + native19 (13,224/0). | Live on Fork | |
| jethac/mesa Tiny MR (19 loc) | Split out the standard-Vulkan 8e92c6b bounds guard clamping multiview query availability writes to < pool->size (independent of same-layer RFC).Verified: !NDEBUG + 6/6 freedreno meson test PASS; clamps multiview availability writes < pool->size (independent of same-layer RFC). | Live on Fork | |
| jethac/mesa 2 Clean Branches | Split cleanly into two standalone branches: (a) u_trace used-span clone (TU_TRACE_COPY_USED); (b) bounded reset-CB CS BO retention + shader-BO tail guard.Verified: Both branches pass !NDEBUG + 6/6 freedreno meson test on fork + CTS63 + native19. | Live on Fork | |
| ValveSoftware/SteamVR-for-Linux Bug Report | ValveSoftware/SteamVR-for-Linux#1102 | Filed as ValveSoftware/SteamVR-for-Linux#1102: xrDestroySession() violates VUID-vkDestroyQueryPool-queryPool-00793, backed by the decoded 121 MB Adreno A750 CP_ROQ_DBG trace.Verified: Attach decoded Ring 2 CP_MEM_WRITE trace + hardware proof (40+ clean teardowns once driver drains fence). | Issue Open (#1102) |
| jethac/vkd3d-proton 2-Commit Branch | Split out the standard-Vulkan vkd3d_graphics_pipeline_effective_view_mask() fix first so SetViewInstanceMask never mismatches VkRenderingInfo.viewMask vs PSO viewMask.Verified: Includes regression unit test ( SetViewInstanceMask(0xf) / 0x4 + non-identity RT slices {2,3}); 1,836/1,836 test_view_instancing PASS, 0 VVL 1.4.350 rendering/multiview errors. | Live on Fork |
Tier 2 · Self-Contained Opt-In Compiler & Render-Pass Optimizations
Clean, strictly default-OFF optimizations (RD byte-identical when unset), all compiled and tested in isolation on jethac/mesa.
| Fork / Target | Live Branch & Proof Anchor | Scope & Verification | Status |
|---|---|---|---|
| jethac/mesa MR + Test | Clear-only SYSMEM render-pass fast path ( -62.5 zero-draw RPs/f, -2.22 ms/f in Cyberpunk 2077 VR) with active-LRZ LOAD_OP_CLEAR depth fallback.Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Port 13-arm clear_rp_test (incl. active-LRZ depth clear + TU_DEBUG=nolrz + u_trace) + Mesa freedreno CI + cite blind visual review PASS (0/4 reg). | Live on Fork | |
| jethac/mesa MR + GTest | Bit-exact NIR pass eliminating single-lane uniform LDS broadcasts & workgroup barriers ( 160/724 CP2077 CS, 13 AC8 shaders, 0 spills).Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Add NIR GTest (tid==0 hoist, reject non-shared SSBO write in init_block, reject VOLATILE|COHERENT, single-trip do{..}while(0) vs ping-pong loop); cite 8/8 fault-free v4 live silicon runs (bit-exact, neutral on render-pass-bound CP2077 T2). | Live on Fork | |
| jethac/mesa MR | Layered Wave32-on-Wave64 subgroup emulation ( -2.07 ms/f, CI 1.43–3.02 in AC8 VR).Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Cite 4,936/4,936 dEQP-VK.subgroups.*required_subgroup_size* parity vs v1 + Mesa freedreno subgroup CTS CI. | Live on Fork | |
| jethac/mesa MR + GTest | Dominance-verified PARTIALLY_BOUND-sound UBO hoisting (cat6 -80 across 55 UE5 shaders, 0 TU_PUSH_UBO_SPECULATE, 0 spills).Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Add NIR/ir3 unit test verifying dominating witness hoist vs non-dominating reject + Mesa CI. | Live on Fork | |
| jethac/mesa MR | Elide redundant GMEM/SYSMEM tile round-trips across vkd3d-proton tiler_suspend_resume dynamic-rendering chains (-0.248 ms/f busy on mirrored ABBA).Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Cite native G3FIX + vkd3d-proton suspend/resume CTS tests + mirrored ABBA timing. | Live on Fork | |
| jethac/mesa MR | Enable Adreno hardware UBWC compression on mipmapped VK_IMAGE_TYPE_3D volumetric textures in fdl/turnip.Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Run dEQP-VK.image.*3d* & dEQP-VK.api.copy_and_blit.*3d* across A750 / Mesa freedreno CI to verify 3D copy/alias edge cases. | Live on Fork | |
| jethac/mesa Opt-In Infra Branch | Split cleanly: (a) nir_lower_atomics CAS early_out break + release tracking; (b) ir3_spill sorted sparse live-set tracking for large shader compile scaling.Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork; standalone nir_lower_atomics CAS early_out + ir3_spill sorted sparse live-sets. | Live on Fork |
Tier 3 · Architectural RFCs & Coordinated Multi-Layer Features
Larger architectural capabilities (multi-queue, DXR 1.1 RT pipeline, eye-tracked foveated/temporal VRS, safe FP16, hardware same-layer stereo) ready for Qualcomm/Valve/Igalia design review.
| Fork / Target | Live Branch & Proof Anchor | Scope & Verification | Status |
|---|---|---|---|
| jethac/mesa Draft RFC | Multi-queue Turnip (graphics/compute/transfer on msm submitqueues) + VM_BIND enqueue/fence serialization & submit_mutex error-path cleanup.Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Split VM_BIND publication (771d981e) & submit_mutex leak (46ef0be1) as Wave 1 fixes if applicable to main; attach CTS63 (49/14) & native19 (13,224/0). | Live on Fork | |
| jethac/mesa Draft RFC | VK_KHR_ray_tracing_pipeline monolithic compute lowering (register-resident payloads 30× faster, pipeline libraries, indirect traces, MR 44523 fix) + BVH update/refit + ir3_legalize RT regs.Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Align with Turnip maintainers on splitting ~7,000 loc into reviewable sub-series (bvh/update, ir3_legalize, monolithic lowering, libraries); cite rt_basic 1.30 ms, 48/48 !NDEBUG, 20/20 RT smoke. | Live on Fork | |
| jethac/mesa Draft RFC | Eye-tracked driver-injected foveated VRS ( TU_VRS=auto zero-thrash, TU_HUD_MASK=1, -3.61 ms/f CP2077 VR) + zero-static-4×4 temporal alternating VRS (TU_VRS_TEMPORAL=1).Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Discuss upstream home (Turnip env/driconf vs Vulkan implicit layer) + attach gazed-v2 SHM spec, 99.99% cache hit, 44/44 HUD blind PASS, and v4 live silicon (97.27% AC8 zero-D15, zero static 4×4 blocks in AC8 & CP2077). | Live on Fork | |
| jethac/mesa Draft RFC | 13-invariant opt-in TU_SAFE_FP16=v4 automatic mediump/FP16 NIR pass (219 AC8 / 63 CP2077 occupancy wins, 0 spills, 0 ISA hazards).Verified: !NDEBUG + 6/6 freedreno meson test PASS on fork. Discuss overlap with generic NIR mediump/driconf infrastructure; cite Fossilize !NDEBUG ISA audit (0 new stib.f16/ldib.f16/half-src cmps.f) & adversarial 0/0/0. | Live on Fork | |
| jethac/vkd3d-proton + jethac/mesa Coordinated Draft RFCs | Coordinated VKD3D_CONFIG=view_instancing,view_instancing_same_layer + TU_MULTIVIEW_SAME_LAYER=sysmem (GRAS_SU_CNTL.viewportindexincr=1) unlocking true single-IB stereo (+0.77 FPS warm / +1.24 minFps, blind PASS).Verified: Both branches compiled & tested ( 1,836/1,836 test_view_instancing + 0 VVL 1.4.350 errors; Mesa !NDEBUG + 6/6 freedreno meson test); live A750 +0.77 FPS warm / +1.24 minFps, blind PASS. | Live on Fork |
Tier 4 · Open-Source VR Ecosystem Fixes & Standalone CI Tools
Independent UEVR/UE4SS runtime fixes and standalone Steam Frame eye-tracking / headless SteamVR CI repos.
| Fork / Target | Live Branch & Proof Anchor | Scope & Verification | Status |
|---|---|---|---|
| jethac/UEVR 2 Small PR Branches | Filed on praydog/UEVR (PR #457, PR #458) — zero Turnip deps: (a) update safetyhook to cursey/safetyhook@f44cc070 (incl. #103 trap_threads race fix); (b) guard MSVC RTTI swapchain probe via VirtualQuery (fixes strlen AV on vkd3d-proton) and skip redundant D3D12 dummy-swapchain rehooks when Present/Present1 detours are intact.Verified: Both branches cross-compiled & linked cleanly ( UEVRBackend.dll, clang-cl 20) off upstream 4ee5c6b; verified across 100+ Proton 11 ARM64EC UE5 boots. | PRs Open (#457, #458) | |
| jethac/UEVR 2 Feature Branches | Filed on praydog/UEVR (PR #459, PR #460) — zero Turnip deps: (a) feat/openxr-rhlat adds D3D12 teardown fence quiesce + DLL_PROCESS_DETACH guard, UEVR_EYECOPY_CROP=1, UEVR_DISABLE_MIRROR=1, and opt-in UEVR_POSE_PREDICT=pipeline; (b) feat/cutblack-v5-gpu-hold adds strictly default-OFF GPU-side predicated black camera-cut frame hold (UEVR_CUTBLACK=gsel) with a universal UE4/UE5 AcknowledgedPawn gameplay view-target gate (34/34 held, +0.015 ms/f, 70/70 blind PASS).Verified: Both branches cross-compiled & linked cleanly ( UEVRBackend.dll, clang-cl 20) off upstream 4ee5c6b; cb81 70/70 blind review (10/10 controls incl. intentional black cin-31). | PRs Open (#459, #460) | |
| UE4SS-RE/RE-UE4SS GitHub PR / Issue | fix/fname-startup-proton-arm64ec | Repair UE4SS FName startup signature resolution for modern UE5 shipping builds running under Proton ARM64EC.Verified: Clean patch against upstream RE-UE4SS + verification across two UE5 shipping builds (25201480 & 26002268). | Ready to Extract |
| Standalone GitHub Repos Open-Source Release | gazed-v2 & steamvr-virtual-wearer | Publish standalone gazed-v2 (OpenXR eye-tracking SHM daemon) and steamvr-virtual-wearer (VW-HEAD-0 scripted headless SteamVR CI driver) so Mesa RFC reviewers can reproduce eye-tracked VRS & automated VR runs directly.Verified: Both already ship build-host.sh + host unit tests + aarch64 cross-builds (PASS). | Ready to Publish |