Skip to content

Turnip: keep the GPU heap on in gpu_heap = Automatic (blank text on Adreno 7xx) - #103

Merged
mamcjr merged 1 commit into
mamcjr:mainfrom
todwang96:fix-turnip-gpu-heap-auto
Oct 29, 2026
Merged

mamcjr merged 1 commit into
mamcjr:mainfrom
todwang96:fix-turnip-gpu-heap-auto

Conversation

@todwang96

Copy link
Copy Markdown
Contributor

Problem

With gpu_heap = auto (the default) on an Adreno 7xx GPU using Turnip, the game shows no text at all: menus, dialogue, item names, the HUD clock — everything is blank. Setting gpu_heap = On by hand fixes it.

Cause: Turnip reports the GPU as e.g. Adreno (TM) 735 for an Adreno 732. The Automatic case of vk_turnip_path_on() asks vk_adreno_8xx(deviceName), which parses the number and takes 735 for a pre-8xx GPU, so the GPU heap stays off. With the heap not on the GPU, the text glyph buffer (~2.7 GB into the 3.12 GB guest heap) is outside the range a storage descriptor covers and the vertex shader reads zeros. Turnip supports the placed-heap path (VK_EXT_map_memory_placed + VK_KHR_map_memory2): with the heap placed, the glyphs read correctly and the text is all there.

Change

vk_turnip_path_on(): in the Automatic case, also return on when the heap can be placed on the GPU (g_vk.map_placed) and the driver is Turnip. vk_driver_is_turnip() is defined later in the file, so it gets a forward declaration. Nothing else changes: explicit On/Off keep their meaning, and other drivers or Turnip builds without the placed-heap path keep the same automatic choice as before.

Testing

  • Device 1: Xiaomi Pad 2410CRP4CC (SM7675), Android 16, Adreno 732.
    • Driver: Turnip v26.3.0-R6 (Mesa 26.3.0-devel, git-a995eaeda4) loaded through adrenotools.
    • Game: 1.9.0, Native mode, 30 fps, game files in place; title screen and Hateno Village.
    • Before: gpu_heap = auto → no guest heap ... GPU memory line, every menu and dialogue blank.
    • After: [vk] guest heap 3120 MB is GPU memory (placed at 340000000, memory type 1, flags 0xf, storage range 128 MB); draws reach global memory through windows; title screen (Chinese), the in-game HUD clock and the menus render; 30 fps cap unchanged, no crash.
  • Device 2: V2547A (SM8850), Android 17, Adreno 840, Turnip Gen8 through adrenotools: vk_adreno_8xx() is true there, so the automatic path is unaffected (checked the same log line still shows the heap placed).

No Nintendo files are included. Logcat lines quoted above are plain text from the run (BOTWRecompAndroid tag).

@mamcjr
mamcjr merged commit 4acbf40 into mamcjr:main Oct 29, 2026
mamcjr added a commit that referenced this pull request Oct 30, 2026
…p gpu_heap = auto on renamed Adreno 7xx)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
mamcjr added a commit that referenced this pull request Oct 31, 2026
…target reads back to Adreno 8xx (#129)

PR #103 widened vk_turnip_path_on itself, which also gates the in-place reads of draw targets: on an Adreno 750 under Turnip 0.2.5 striped the terrain and the title background, where the terrain decals read the G-buffer targets they write (a feedback loop checked on the Adreno 830 only). vk_turnip_heap_on keeps #103's heap on any Turnip that places it (the Adreno 7xx text); in-place reads and LRZ stay Automatic on Adreno 8xx only. The start screen's "Automatic (on/off for this GPU)" now follows each option's own choice, and the heap's text says what Automatic does, in all 12 languages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
mamcjr added a commit that referenced this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants