[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111803":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":12,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":11,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":16,"compositeScore":17,"rankGlobal":8,"rankLanguage":8,"license":8,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":11,"lastSyncTime":26,"discoverSource":27},111803,"turnip-adreno722-duo","sherft2607\u002Fturnip-adreno722-duo","sherft2607",null,"Python",71,2,1,0,9,13,7,45.23,false,"main",true,[],"2026-10-26 03:39:58","2026-11-23 06:51:23","# Turnip Vulkan Driver for Retroid Pocket Duo (Adreno 722)\n\nCustom, hardware-verified Mesa Freedreno (Turnip) Vulkan driver engineered specifically for the Retroid Pocket Duo (Qualcomm Adreno 722 GPU).\n\n---\n\n## Target Hardware and Identity\n\n* Device: Retroid Pocket Duo\n* Chipset: Qualcomm Dragonwing Q7790 (CQ7790S)\n* Platform \u002F SoC ID: sun \u002F SoC ID 732 (Codename: kera)\n* GPU Model: Qualcomm Adreno (TM) 722\n* GPU Chip ID: 0x43020100 (1124204800)\n* Kernel Driver: msm_kgsl (adreno_gpu_core_gen7_17_0, gpurev 0x00071100)\n* Operating System: Android 16 (API Level 36)\n\n---\n\n## Hardware Ground Truth\n\nParameters extracted and verified from physical Retroid Pocket Duo hardware via ADB kernel device trees, msm_kgsl.ko, vendor driver blobs, and stock_vkjson.json:\n\n| Hardware Parameter | Value | Source \u002F Verification |\n| :--- | :--- | :--- |\n| On-Chip GMEM | 1 MiB (0x100000) | Kernel core structure; queried directly via KGSL at runtime |\n| Highest Bank Bit | 15 (0xf) | Device tree, verified against kernel RB_NC_MODE_CNTL = 0x814 (bits 2:1 = hbb - 13) |\n| Compute Shared Memory | 32 KiB (32768 bytes) | Verified against OEM blob maxComputeSharedMemorySize; corrects community 64 KiB over-allocation |\n| Subgroup Size | 64 | OEM blob reports subgroupSize = 64 |\n| CCU Geometry | num_ccu = 1, tile_align_h = 16 | Upstream Mesa FD722 geometry, verified via vendor blob command-stream traces |\n| Async Compute (LPAC) | Disabled | Blob-trace analysis: GPUProps(has_lpac = False), overriding generic a7xx_base |\n| UBWC Configuration | Mode 4.0, 32-byte min access | Device tree (qcom,ubwc-mode = 4, qcom,min-access-length = 0x20) |\n| Hardware Magic Registers | Dedicated a722_raw_magic_regs | 37-entry table extracted from 116 Qualcomm blob traces, correcting 12 inherited A730 registers |\n\n---\n\n## Performance and Compatibility\n\n### 1. Eden (Nintendo Switch)\n* Mario Kart 8 Deluxe: Locked 55 to 60 FPS in 1080p docked mode, locked 60 FPS in 720p handheld mode with zero stability crashes.\n* Display Pipeline: Android 16 IMapper5 stable-C SP-HAL gralloc backend (Patch 15), eliminating the 30 FPS swapchain limitation.\n* Frequency Lock: Patch 17 gates the KGSL governor via KGSL_PROP_PWRCTRL while queues are active, keeping the GPU at peak operating frequency during emulation.\n* In-Race Item Roulette Note: Static 2D HUD components (minimap, coin counter, lap counter, position rank, and item container outline) and 3D geometry render cleanly. The internal spinning item texture inside the top-left circle is currently undergoing subpass investigation.\n\n### 2. Cemu (Nintendo Wii U)\n* The Legend of Zelda: The Wind Waker HD: Solid 30 FPS rendering with zero vertical purple or black grid artifacts, resolved by setting the correct UBWC highest bank bit (15).\n\n### 3. Azahar (Nintendo 3DS)\n* The Legend of Zelda: Ocarina of Time 3D: Locked 30 FPS at 4x native resolution with 1080p high-resolution custom texture packs enabled.\n\n---\n\n## Architecture and Patch Stack\n\nBuilt on upstream Mesa 27.0.0-devel pinned to commit 74920caaa0be, using Android NDK r29 targeting Platform SDK 36.\n\n* Patches 01 & 15: u_gralloc UBWC detection and Android 16 IMapper5 SP-HAL loader.\n* Patch 16: UBWC-compressed swapchain framebuffers.\n* Patch 17: KGSL governor lock (KGSL_PROP_PWRCTRL) and autotune bandwidth tuning.\n* Patches 30-37: Turnip-Z engine (mutable-format UBWC, optimized texture sampling, sysmem rendering).\n* Patch 56 (56-fd722-blob.py): Dedicated Adreno 722 magic register table and has_lpac = False from vendor blob analysis.\n* Patch 57 (57-fd722-duo.py): Duo hardware profile enforcement (highest_bank_bit = 15, cs_shared_mem_size = 32 KiB, num_ccu = 1, tile_align_h = 16). Builds fail automatically if drifted values are detected.\n\n---\n\n## Installation\n\n1. Navigate to the Releases section of this repository.\n2. Download Turnip-Duo-v5.1.zip (or latest recommended release).\n3. Open your emulator of choice (Eden, Cemu, Azahar).\n4. Navigate to GPU Driver Manager and install the .adpkg.zip package.\n\n---\n\n## Recommended Device Configuration\n\n* Retroid Pocket Duo System Settings: Performance Mode set to Performance or Extreme; Fan Mode set to Sport or Smart to prevent thermal throttling.\n* Eden Settings: Graphics Accuracy set to Normal, VSync Mailbox \u002F FIFO Relaxed, Window Adapting Filter set to Bilinear.\n\n---\n\n## Credits and Licenses\n\n* Mesa Freedreno Project: Mesa graphics development team.\n* Base Patch Set: vauzi (sw branch).\n* Adreno 722 Hardware Profiling and Validation: sherft2607, validated on retail Retroid Pocket Duo hardware.\n","这是一个为 Retroid Pocket Duo 掌机（搭载高通 Adreno 722 GPU）定制优化的 Vulkan 图形驱动，基于 Mesa Freedreno 项目中的 Turnip 驱动。项目通过硬件实测校准关键参数（如 GMEM 大小、UBWC 配置、子组尺寸、CCU 几何结构等），修复上游驱动对 Adreno 722 的误识别与资源分配错误，并集成内核级频率锁定与 gralloc 后端补丁，显著提升 Nintendo Switch\u002FWii U\u002F3DS 等模拟器的 Vulkan 渲染稳定性与帧率表现。适用于 Android 16（API 36）平台上的嵌入式 Vulkan 图形加速场景，尤其面向掌机模拟器用户和移动 Vulkan 底层驱动开发者。","2026-11-24 04:41:49","CREATED_QUERY"]