Repository navigation
Turnip: keep the GPU heap on in gpu_heap = Automatic (blank text on Adreno 7xx) - #103
Merged
Merged
Conversation
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
…103, #187, #96) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. Settinggpu_heap = Onby hand fixes it.Cause: Turnip reports the GPU as e.g.
Adreno (TM) 735for an Adreno 732. The Automatic case ofvk_turnip_path_on()asksvk_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
gpu_heap = auto→ noguest heap ... GPU memoryline, every menu and dialogue blank.[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.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 (
BOTWRecompAndroidtag).