Repository navigation
CI: perf/agc-device-local-mirrors - #1
Closed
EagleBearerYS wants to merge 1 commit into
Closed
EagleBearerYS wants to merge 1 commit into
EagleBearerYS wants to merge 1 commit into
Conversation
Address-based shaders map every readable registered GPU range. Past the host import budget (APS5_HOST_IMPORT_MIB) each further releasable range is served by a heap mirror: a persistent copy that the CPU fills and refreshes block by block and the GPU reads. Heap mirrors were Buffers with the default host properties, which prefer host-cached memory, so they landed in the system-memory heap that the imports already fill. On a 16 GB PC that heap's VK_EXT_memory_budget budget is 7,237 MiB, and the imports alone can take 6 GiB of it. Resident Evil Village (PPSA01556) needed 1.2-1.4 GiB of heap mirrors in its first scene load, and pool allocations then failed with VK_ERROR_OUT_OF_DEVICE_MEMORY. A heap mirror is now placed in DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT memory when the first memory type with those flags lies in the largest device-local heap (resizable BAR, or a unified heap). That heap's budget must keep APS5_DEVICE_MIRROR_RESERVE_MIB (default 1024) free beyond the mirror, which leaves room for textures. Otherwise the mirror stays in host memory as before. The CPU writes a heap mirror and reads back only the ranges a build writes through descriptors (takeHeapReferences, WriteBack). Image mirrors keep host memory: a writable one's shadow is read back whole when it is made. APS5_NO_DEVICE_MIRRORS=1 restores host memory for heap mirrors too.
Owner
Author
|
Closing: the change is parked (boykopovar/AnyPS5 boykopovar#4446 covers it); the branch stays. |
EagleBearerYS
pushed a commit
that referenced
this pull request
Oct 14, 2026
fix(libkernel): convert local time with the host time zone
EagleBearerYS
pushed a commit
that referenced
this pull request
Oct 18, 2026
…stages Since boykopovar#3878 every vertex program that exports a position also writes gl_ClipDistance for the all-zero position distance. The tessellation stages generated for rect lists declared only gl_Position in gl_in, so their input interface no longer matched the vertex outputs; on MoltenVK the control stage then reads all-zero positions and every rect-list draw stops with "rect-list requires finite nondegenerate axis-aligned positions" (reported in #1). The control and evaluation stages now declare the vertex program's gl_ClipDistance array in their per-vertex blocks and forward it. The generated fourth corner gets the clip distances interpolated with the same weights as its position, so the all-zero position clip keeps working for rect lists. Validation accepts gl_ClipDistance as a tessellation input and as a tessellation-control output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXdkh9PHBCPqGcGQPeikAe
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.
Fork-internal PR, only to run the Build workflow (Windows and Linux, full test suite) before an upstream PR. Not for review.