Repository navigation
shader: lower more Ampere forms used by Pokemon Pokopia's compute shaders - #413
Conversation
…ders I tested Pokopia on the Steam Deck and the game was rejecting several shaders, and photos came out black. I made the translator accept more forms of some instructions (LEA, SHF, UIADD3, DEPBAR and USHF). With this, almost all of Pokopia's shaders stopped being rejected and the tests pass. The photo is still black, but that should be a separate issue. Assisted-by: Claude Opus 5.5 (debugging and code)
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
This PR is included in a test batch together with 34 other PRs, built for Linux and Windows (PGO). Game testing is underway; results will be posted here. It conflicted with #456 and #443 in |
…th async copies The batch merge of Eglantine-Community#413 and Eglantine-Community#465 left uses_async_copy unused, which GCC's -Werror rejects and broke the non-PGO Linux builds. The barrier is only needed when the program issues LDGSTS copies, as in Eglantine-Community#465.
…r-GPU-written pages (Eglantine-Community#413) * vulkan: skip the buffer cache lock for dirty checks on pages the GPU never wrote The split's front asks MustFlushRegion before each macro DMA read; it waited for the buffer cache mutex the back holds through each draw (8% of the front in Ocarina). Every GPU-modified range also marks its pages GPU-written (bits that never clear), so pages without the bit are answered without the lock. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 6247fd5) * video_core: answer the lock-free flush check from nx2.h and test it Move the GPU-written page walk behind MustFlushRegion's lock-free answer into Tegra::Nx2MayBeGpuWritten next to the bitmap it reads. A range past the bitmap, or one that wraps, now answers true and takes the lock: Nx2MarkGpuWritten clamps to the bitmap, so those pages were never marked. Test the page boundaries, the bitmap end and clearing. --------- Co-authored-by: Frizti <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…r-GPU-written pages The split's front asks MustFlushRegion before each macro DMA read and waited for the buffer cache mutex the back holds through each draw (8% of the front in Ocarina, Lichii's measurement; this tree's profile showed ~280 ms a second of front waits before macro DMA reads). Every range the buffer cache adds to gpu_modified_ranges also marks its pages in g_nx2_gpu_written_pages under the same lock (Switch 2 titles), so pages without the bit are answered without the lock. Ranges past the bitmap take the lock as before. Ported from Lichii 2b70fc5 (Eglantine-Community#413, Frizti and Zortos) without its test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Taken from zortos293/Lichii Eglantine-Community#413 (2b70fc5, Zortos/Frizti), the helper only (not its MustFlushRegion change): the stale-upload skip ported next (Lichii Eglantine-Community#463) uses it to keep the upload of pages the buffer cache wrote on the GPU. Assisted-by: Claude Opus 5.5
I tested Pokopia on the Steam Deck and the game was rejecting several shaders, and photos came out black. I made the translator accept more forms of some instructions (LEA, SHF, UIADD3, DEPBAR and USHF). With this, almost all of Pokopia's shaders stopped being rejected and the tests pass. The photo is still black, but that should be a separate issue.
Assisted-by: Claude Opus 5.5 (debugging and code)
Summary by CodeRabbit
Bug Fixes
Tests