graphics: sample a copy of depth targets on hosts without feedback loops #1241

Closed
github-bot wants to merge 1 commit from gh-pr/1241/head into gh-pr/1241/base
Owner

@⁠TheCruZ on GitHub · 2026-10-08 19:37 UTC · original
pr/depth-copy-no-feedback-loop → main · +133 −15 · 4 files · 1 commits · closed without merging

Summary

Fixes the emulator exiting with depth attachment feedback loop is not supported by the host in Grand Theft Auto V (PPSA04263) on GPUs whose driver lacks the Vulkan feedback loop extensions (reported by a user of my fork with a Radeon RX 9060 XT).

Problem

Some GTA V draws sample the depth or stencil target they also write. Vulkan allows that only through VK_EXT_attachment_feedback_loop_layout and VK_EXT_attachment_feedback_loop_dynamic_state; when the host does not provide both, attachment_feedback_loop_enabled is false and AcquireRenderTargets exited on the first such draw.

Change

Without feedback loops, for each texture binding that samples aspects the draw also writes, AcquireRenderTargets copies the sampled mips, layers and aspects of the depth image into an image of its own (TextureCache::CopyDepthForFeedback, outside the render pass) and rebinds the texture and its mip views to that copy. The draw then reads the depth from before it ran, as translators without feedback loops do. The copy has the depth image's layout without guest memory (never registered or tracked), is kept until the depth image is deleted (released through a deferred operation, since queued work may still sample it), recreated if the depth image changes shape, and refreshed for every such draw. Hosts with feedback loops keep sampling the attachment as before.

Relation to #1187

#1187 handles hosts that have VK_EXT_attachment_feedback_loop_layout but not the dynamic-state extension, by baking the feedback loop flag into the pipeline, with exact feedback semantics. This PR covers hosts without feedback loop support (the path that still exits after #1187, e.g. when the layout extension is missing too), at the cost of sampling the pre-draw depth. The two can coexist: with #1187 merged, this path would only run when the host has no usable feedback loop at all.

Testing

  • Grand Theft Auto V (PPSA04263): played in my fork with this change on my RTX 3090, which has both extensions, so the existing path is unchanged there. The copy path is covered by the test below.
  • shader_recompiler_compute_tests: new CheckRasterizationWithoutFeedbackLoops runs the depth read/write draw of CheckRasterization(true) with feedback loops disabled and checks that the attachment is not put in the feedback layout and that the pixel shader samples a different image (the copy). Passes in --sampled-depth-resource-only and in the default run.
  • Tested on Windows 11 with AMD Ryzen 5900x and RTX 3090.

AI usage

AI (Claude Opus 5.5) was used to investigate the issue and to implement the change. I reviewed the code, understand it, tested it as described above, and wrote this description myself, in general fully tested the game while doing few missions and playing in-game with my GTA V fork, i will be bringing PRs here after test them enough.

**@⁠TheCruZ** on GitHub · 2026-10-08 19:37 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241) `pr/depth-copy-no-feedback-loop` → `main` · +133 −15 · 4 files · 1 commits · closed without merging ## Summary Fixes the emulator exiting with `depth attachment feedback loop is not supported by the host` in Grand Theft Auto V (PPSA04263) on GPUs whose driver lacks the Vulkan feedback loop extensions (reported by a user of my fork with a Radeon RX 9060 XT). ## Problem Some GTA V draws sample the depth or stencil target they also write. Vulkan allows that only through `VK_EXT_attachment_feedback_loop_layout` and `VK_EXT_attachment_feedback_loop_dynamic_state`; when the host does not provide both, `attachment_feedback_loop_enabled` is false and `AcquireRenderTargets` exited on the first such draw. ## Change Without feedback loops, for each texture binding that samples aspects the draw also writes, `AcquireRenderTargets` copies the sampled mips, layers and aspects of the depth image into an image of its own (`TextureCache::CopyDepthForFeedback`, outside the render pass) and rebinds the texture and its mip views to that copy. The draw then reads the depth from before it ran, as translators without feedback loops do. The copy has the depth image's layout without guest memory (never registered or tracked), is kept until the depth image is deleted (released through a deferred operation, since queued work may still sample it), recreated if the depth image changes shape, and refreshed for every such draw. Hosts with feedback loops keep sampling the attachment as before. ## Relation to #1187 #1187 handles hosts that have `VK_EXT_attachment_feedback_loop_layout` but not the dynamic-state extension, by baking the feedback loop flag into the pipeline, with exact feedback semantics. This PR covers hosts without feedback loop support (the path that still exits after #1187, e.g. when the layout extension is missing too), at the cost of sampling the pre-draw depth. The two can coexist: with #1187 merged, this path would only run when the host has no usable feedback loop at all. ## Testing - Grand Theft Auto V (PPSA04263): played in my fork with this change on my RTX 3090, which has both extensions, so the existing path is unchanged there. The copy path is covered by the test below. - `shader_recompiler_compute_tests`: new `CheckRasterizationWithoutFeedbackLoops` runs the depth read/write draw of `CheckRasterization(true)` with feedback loops disabled and checks that the attachment is not put in the feedback layout and that the pixel shader samples a different image (the copy). Passes in `--sampled-depth-resource-only` and in the default run. - Tested on Windows 11 with AMD Ryzen 5900x and RTX 3090. ## AI usage AI (Claude Opus 5.5) was used to investigate the issue and to implement the change. I reviewed the code, understand it, tested it as described above, and wrote this description myself, in general fully tested the game while doing few missions and playing in-game with my [GTA V fork](https://github.com/TheCruZ/KytyPS5-GTA), i will be bringing PRs here after test them enough.
A user's Radeon RX 9060 XT exits with "depth attachment feedback loop is
not supported by the host" in GTA V (PPSA04263): a draw samples the depth
or stencil target it also writes, which Vulkan allows only through
VK_EXT_attachment_feedback_loop_layout and its dynamic-state extension,
and that driver does not provide both.

Without them, copy the sampled mips, layers and aspects of the depth image
into an image of its own outside the render pass and bind that copy to the
draw instead: the draw reads the depth from before it ran, as translators
without feedback loops do. The copy is kept until the depth image is
deleted and refreshed for every such draw. Hosts with feedback loops keep
sampling the attachment as before.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:49:34 +00:00
github-bot closed this pull request 2026-11-26 09:49:34 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-08 19:38 UTC · original

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eeb682d8-bd84-4fd6-9890-8016837f1e04
📥 Commits

Reviewing files that changed from the base of the PR and between 2f4b8a335d and 12170f35df.

📒 Files selected for processing (4)
  • src/graphics/host_gpu/renderer/cache/textureCache.cpp
  • src/graphics/host_gpu/renderer/cache/textureCache.h
  • src/graphics/host_gpu/renderer/renderDraw.cpp
  • tests/ShaderRecompilerComputeTests.cpp
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-08 19:38 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6067624868) <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- This is an auto-generated comment: rate limited by coderabbit.ai --> > [!WARNING] > ## Review limit reached > > You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. > > **Next included review available in 1 minute.** > > [Check out review usage here](https://app.coderabbit.ai/dashboard/review-capacity?orgId=d7cf2749-f181-4119-ba0c-ad79606afdfe). > > <details> > <summary>View limit details</summary> > > **Limit details:** You’ve used all 8 included reviews currently available. > > [Learn how review limits work](https://docs.coderabbit.ai/management/plans#rate-limits). > > **Review configuration:** > > <details> > <summary>⚙️ Run configuration</summary> > > - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml > - **Review profile**: CHILL > - **Plan**: Advanced > - **Run ID**: `eeb682d8-bd84-4fd6-9890-8016837f1e04` > > </details> > > <details> > <summary>📥 Commits</summary> > > Reviewing files that changed from the base of the PR and between 2f4b8a335d5e27a5153bdea670bd877a061e37b1 and 12170f35df224b2bb054e39a5576deeedc8f7a2d. > > </details> > > <details> > <summary>📒 Files selected for processing (4)</summary> > > * `src/graphics/host_gpu/renderer/cache/textureCache.cpp` > * `src/graphics/host_gpu/renderer/cache/textureCache.h` > * `src/graphics/host_gpu/renderer/renderDraw.cpp` > * `tests/ShaderRecompilerComputeTests.cpp` > > </details> > > </details> <!-- end of auto-generated comment: rate limited by coderabbit.ai --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=1241)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-10 02:03 UTC · original

Hi @⁠TheCruZ, great work on the GTA fork. I'm overlordxrz-source. I have #1187, which handles the other half of the feedback-loop exit: AMD drivers that have VK_EXT_attachment_feedback_loop_layout but not the dynamic-state extension. It complements your #1241, with no file overlap.

I saw you and Nmzik agreed he'd take fork commits with credit, so I don't want to duplicate that. Would you be OK with me sending a few of your small, self-contained ones that have no PR yet as separate upstream PRs, co-authored by you, with your measurements quoted? They are d8883d4b1 (LRU touch once per tick), dec15d520 (stencil associations without the full scan) and 8f092c828 (suballocate small BDA buffers). If you'd rather send them yourself or leave them to Nmzik, no problem at all, just say so.

One thing on the AMD "descriptor set does not fit a pool sized for it" exit in #829: the counts it prints are the default sizes, so LargePoolSizes didn't raise anything. Either that layout never reached RegisterLayout, or no type needs more than default/4. Logging the vk::Result and the registered counts in Allocate might narrow it down. Happy to test or rebase anything that would help.

AI-assisted: yes.

**@⁠overlordxrz-source** on GitHub · 2026-10-10 02:03 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6092495664) Hi @⁠TheCruZ, great work on the GTA fork. I'm overlordxrz-source. I have #1187, which handles the other half of the feedback-loop exit: AMD drivers that have VK_EXT_attachment_feedback_loop_layout but not the dynamic-state extension. It complements your #1241, with no file overlap. I saw you and Nmzik agreed he'd take fork commits with credit, so I don't want to duplicate that. Would you be OK with me sending a few of your small, self-contained ones that have no PR yet as separate upstream PRs, co-authored by you, with your measurements quoted? They are d8883d4b1 (LRU touch once per tick), dec15d520 (stencil associations without the full scan) and 8f092c828 (suballocate small BDA buffers). If you'd rather send them yourself or leave them to Nmzik, no problem at all, just say so. One thing on the AMD "descriptor set does not fit a pool sized for it" exit in #829: the counts it prints are the default sizes, so LargePoolSizes didn't raise anything. Either that layout never reached RegisterLayout, or no type needs more than default/4. Logging the vk::Result and the registered counts in Allocate might narrow it down. Happy to test or rebase anything that would help. AI-assisted: yes.
Author
Owner

@⁠TheCruZ on GitHub · 2026-10-10 10:32 UTC · original · edited 2026-10-10 10:34 UTC

@⁠overlordxrz-source yeah feel free to pr any of my changes to the repo with any modification that you want, we need to speed the things up, a lot of forks with great fixes but a bottleneck to merge al together

@⁠Nmzik i was think in that they other day, I'm not sure the level of control that gives GitHub to every branch but would be nice that you create 2 stages branchs i think where under request people can request access to modify those on granted they can directly merge all his changes to stage1, the Game there will have a lot of Bugs, but people can test his games with stage1 and directly remove(not modify to track it) a commit without intervention, all with pullrequests no direct changes to prevent multi dev removing work of each other, stage2 will be filled with pullrequests that are at stage1 for more than 5 days doing cherry picks in order to keep more stable ones, since stage1 has the commit and the revert commits those are omited in the migration, in stage2 we repeat the process for main but changes can't be added stage2 only reverted, if any dev does anything wrong first get a warning second is removed from the access, a discord Channel to talk about the stages, fixes and removals with help a lot to sync that
This can make that all parallel work from all devs get commited simultaneously without need to review every single commit and test on all games since devs are doing his tests with his games already

**@⁠TheCruZ** on GitHub · 2026-10-10 10:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6096595120) · edited 2026-10-10 10:34 UTC @⁠overlordxrz-source yeah feel free to pr any of my changes to the repo with any modification that you want, we need to speed the things up, a lot of forks with great fixes but a bottleneck to merge al together @⁠Nmzik i was think in that they other day, I'm not sure the level of control that gives GitHub to every branch but would be nice that you create 2 stages branchs i think where under request people can request access to modify those on granted they can directly merge all his changes to stage1, the Game there will have a lot of Bugs, but people can test his games with stage1 and directly remove(not modify to track it) a commit without intervention, all with pullrequests no direct changes to prevent multi dev removing work of each other, stage2 will be filled with pullrequests that are at stage1 for more than 5 days doing cherry picks in order to keep more stable ones, since stage1 has the commit and the revert commits those are omited in the migration, in stage2 we repeat the process for main but changes can't be added stage2 only reverted, if any dev does anything wrong first get a warning second is removed from the access, a discord Channel to talk about the stages, fixes and removals with help a lot to sync that This can make that all parallel work from all devs get commited simultaneously without need to review every single commit and test on all games since devs are doing his tests with his games already
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-10 22:41 UTC · original

@⁠TheCruZ thank you, that's really generous. Heads-up on what I'm filing from your fork, each as its own PR on current main, with you as co-author and your measurements quoted as yours:

  • dec15d520: find stencil associations without scanning every image. Adapted to main's new AssociateStencil(), which rebuilds the stencil plane.
  • 8f092c828: suballocate small guest buffers with device addresses. Applies unchanged.

I'm holding d8883d4b1 (LRU touch once per tick) for now, given the new README rule. I'm also leaving out everything you already have open (#925, #931 and your #1220–#1259 PRs), and the big perf rewrites. PRs: #1388 and #1389. If you'd rather any of these go through you or Nmzik instead, say so and I'll close mine.

AI-assisted: yes.

**@⁠overlordxrz-source** on GitHub · 2026-10-10 22:41 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6102957025) @⁠TheCruZ thank you, that's really generous. Heads-up on what I'm filing from your fork, each as its own PR on current main, with you as co-author and your measurements quoted as yours: - dec15d520: find stencil associations without scanning every image. Adapted to main's new `AssociateStencil()`, which rebuilds the stencil plane. - 8f092c828: suballocate small guest buffers with device addresses. Applies unchanged. I'm holding d8883d4b1 (LRU touch once per tick) for now, given the new README rule. I'm also leaving out everything you already have open (#925, #931 and your #1220–#1259 PRs), and the big perf rewrites. PRs: #1388 and #1389. If you'd rather any of these go through you or Nmzik instead, say so and I'll close mine. AI-assisted: yes.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-11 03:57 UTC · original

@⁠TheCruZ I saw you closed this one. Was there a reason, like a problem you found or a plan to do it differently? If not, I'd like to re-propose it on current main with you as co-author. The exit is still there on main (renderDraw.cpp:539), it's the open #1123 stop on Arc, and mikeb1031 and TotoWood both confirmed your v7 fixes it. It applies to main without changes and merges cleanly with #1187, #1388 and #1389. If you'd rather it not go in, or plan to resend it yourself, I'll leave it.

I'd also send a4733f06a (linear-image readback on by default) for the vehicle damage in #971/#979, with your measurements quoted. Tell me if you'd rather it stay opt-in.

AI-assisted: yes.

**@⁠overlordxrz-source** on GitHub · 2026-10-11 03:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6105223575) @⁠TheCruZ I saw you closed this one. Was there a reason, like a problem you found or a plan to do it differently? If not, I'd like to re-propose it on current main with you as co-author. The exit is still there on main (renderDraw.cpp:539), it's the open #1123 stop on Arc, and mikeb1031 and TotoWood both confirmed your v7 fixes it. It applies to main without changes and merges cleanly with #1187, #1388 and #1389. If you'd rather it not go in, or plan to resend it yourself, I'll leave it. I'd also send a4733f06a (linear-image readback on by default) for the vehicle damage in #971/#979, with your measurements quoted. Tell me if you'd rather it stay opt-in. AI-assisted: yes.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-11 07:57 UTC · original

Thanks for reopening, @⁠TheCruZ. For @⁠Nmzik's convenience: I checked this head against current main together with #1187, #1388 and #1389. It merges cleanly with each of them and with all three stacked, and the changed TUs (textureCache.cpp, renderDraw.cpp) compile for x86_64 on every combination. With #1187 merged, the copy path here only runs on hosts that lack VK_EXT_attachment_feedback_loop_layout entirely, so the two cover different GPUs: this one for Arc B580 (#1123) and the RX 9060 XT report, #1187 for AMD drivers with the layout extension but no dynamic state. AI-assisted: yes.

**@⁠overlordxrz-source** on GitHub · 2026-10-11 07:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6106899417) Thanks for reopening, @⁠TheCruZ. For @⁠Nmzik's convenience: I checked this head against current main together with #1187, #1388 and #1389. It merges cleanly with each of them and with all three stacked, and the changed TUs (textureCache.cpp, renderDraw.cpp) compile for x86_64 on every combination. With #1187 merged, the copy path here only runs on hosts that lack VK_EXT_attachment_feedback_loop_layout entirely, so the two cover different GPUs: this one for Arc B580 (#1123) and the RX 9060 XT report, #1187 for AMD drivers with the layout extension but no dynamic state. AI-assisted: yes.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-11 15:21 UTC · original

@⁠TheCruZ ported your 840a5442 as #1421 (authorship kept, credited), since it fixes the #829 car-entry crash on its own. Shout if you'd rather file it yourself and I'll close mine.

**@⁠overlordxrz-source** on GitHub · 2026-10-11 15:21 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6110534174) @⁠TheCruZ ported your 840a5442 as #1421 (authorship kept, credited), since it fixes the #829 car-entry crash on its own. Shout if you'd rather file it yourself and I'll close mine.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-11 15:43 UTC · original

Correction to my earlier note: #1388 and this PR both add a TextureCache member on the same line of textureCache.h, so they conflicted. I've pushed a commit to #1388 that moves its member; they now merge cleanly in either order. Sorry for the noise.

**@⁠overlordxrz-source** on GitHub · 2026-10-11 15:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6110729395) Correction to my earlier note: #1388 and this PR both add a TextureCache member on the same line of textureCache.h, so they conflicted. I've pushed a commit to #1388 that moves its member; they now merge cleanly in either order. Sorry for the noise.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-12 05:23 UTC · original

Hey @⁠TheCruZ, thanks again for being OK with us porting your fork commits. Before we touch anything I went through the fork against main and your PRs, so we don't step on what you're already filing. These ones aren't in any upstream PR yet:

Small and self-contained

  • b5a4c947c shader: decode GPU-selected formatted loads from one window (the 70 s → 7 s pipeline for cs 0xfa8b1616). It applies to main as-is, but the shader is only reached with #1257/#1258. Fold it into #1258, or want us to file it after?
  • a4733f06a read back linear images by default (wheels, #971/#888). You weren't sure about turning it on for every game, so I'll leave that call to you.
  • 04abd479f + 2c8b9ddf5 V_FRACT F32/F16/F64 clamp (the F64 one is At0mC3's). Heads-up: #1212 with the same idea was closed.
  • e81661f3b tessellation on by default (after #1245)
  • ba0f01cc8 descriptor pool for oversized sets (AMD crash). Looks like it belongs with #1257.

Perf series (yours to shape, I'd rather not touch these)

  • GPU pipeline threads / resolve / readbacks: e68140e23, 6101f2da6, 47f13b286, 7d19adea6
  • BDA sync and long sessions: 6bb856a91, 3bba1f44e, baa4dbbb2, 31ed3c634
  • Bindless/permutations (on top of #1257): 96e9010ca, ed4da8708
  • Others: d14bf3e61, b90947f9f, 6bf52ec7d, b8ef7162f, plus the small ones (661ee5430, 450bc5890, b19caa460, c0c4f52a3, b2e6c7050, a3ae8b84b, 0bff4ac5c)

Which ones do you want to file yourself, and which would you like us to port (with you as author)? I have b5a4c947c ready as a patch with you as author, but I'm holding it until you say so.

**@⁠overlordxrz-source** on GitHub · 2026-10-12 05:23 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6118282452) Hey @⁠TheCruZ, thanks again for being OK with us porting your fork commits. Before we touch anything I went through the fork against main and your PRs, so we don't step on what you're already filing. These ones aren't in any upstream PR yet: **Small and self-contained** - `b5a4c947c` shader: decode GPU-selected formatted loads from one window (the 70 s → 7 s pipeline for cs 0xfa8b1616). It applies to main as-is, but the shader is only reached with #1257/#1258. Fold it into #1258, or want us to file it after? - `a4733f06a` read back linear images by default (wheels, #971/#888). You weren't sure about turning it on for every game, so I'll leave that call to you. - `04abd479f` + `2c8b9ddf5` V_FRACT F32/F16/F64 clamp (the F64 one is At0mC3's). Heads-up: #1212 with the same idea was closed. - `e81661f3b` tessellation on by default (after #1245) - `ba0f01cc8` descriptor pool for oversized sets (AMD crash). Looks like it belongs with #1257. **Perf series (yours to shape, I'd rather not touch these)** - GPU pipeline threads / resolve / readbacks: `e68140e23`, `6101f2da6`, `47f13b286`, `7d19adea6` - BDA sync and long sessions: `6bb856a91`, `3bba1f44e`, `baa4dbbb2`, `31ed3c634` - Bindless/permutations (on top of #1257): `96e9010ca`, `ed4da8708` - Others: `d14bf3e61`, `b90947f9f`, `6bf52ec7d`, `b8ef7162f`, plus the small ones (`661ee5430`, `450bc5890`, `b19caa460`, `c0c4f52a3`, `b2e6c7050`, `a3ae8b84b`, `0bff4ac5c`) Which ones do you want to file yourself, and which would you like us to port (with you as author)? I have `b5a4c947c` ready as a patch with you as author, but I'm holding it until you say so.
Author
Owner

@⁠TheCruZ on GitHub · 2026-10-12 09:18 UTC · original

Hey @⁠TheCruZ, thanks again for being OK with us porting your fork commits. Before we touch anything I went through the fork against main and your PRs, so we don't step on what you're already filing. These ones aren't in any upstream PR yet:

Small and self-contained

Perf series (yours to shape, I'd rather not touch these)

  • GPU pipeline threads / resolve / readbacks: e68140e23, 6101f2da6, 47f13b286, 7d19adea6
  • BDA sync and long sessions: 6bb856a91, 3bba1f44e, baa4dbbb2, 31ed3c634
  • Bindless/permutations (on top of graphics: bind GPU-indexed T# tables as sampled image arrays #1257): 96e9010ca, ed4da8708
  • Others: d14bf3e61, b90947f9f, 6bf52ec7d, b8ef7162f, plus the small ones (661ee5430, 450bc5890, b19caa460, c0c4f52a3, b2e6c7050, a3ae8b84b, 0bff4ac5c)

Which ones do you want to file yourself, and which would you like us to port (with you as author)? I have b5a4c947c ready as a patch with you as author, but I'm holding it until you say so.

To be right, i have created the PRs just to make them visible, you can port any of the changes from my fork to kytyPS5 upstream and close any of my PRs by yourself while i'm as a author/coauthor, taking care of all the PRs is a bit complicated for me due the constant changes of upstream, in my fork i have it sync with upstream to don't have conflicts if you want

And about things like "read back linear images", to be right for GTAV is just needed then i think that is a need on the emulator it self, other thing is that causes a bug on some specific game that we fix later or we just allow to disable it for the specific game etc then yeah i would enable for the emulator itself but i only tested it on GTAV

**@⁠TheCruZ** on GitHub · 2026-10-12 09:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1241#issuecomment-6121334418) > Hey @⁠TheCruZ, thanks again for being OK with us porting your fork commits. Before we touch anything I went through the fork against main and your PRs, so we don't step on what you're already filing. These ones aren't in any upstream PR yet: > > **Small and self-contained** > > * `b5a4c947c` shader: decode GPU-selected formatted loads from one window (the 70 s → 7 s pipeline for cs 0xfa8b1616). It applies to main as-is, but the shader is only reached with [graphics: bind GPU-indexed T# tables as sampled image arrays #1257](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1257)/[shader: run GTA V's ray tracing dispatches #1258](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1258). Fold it into [shader: run GTA V's ray tracing dispatches #1258](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1258), or want us to file it after? > * `a4733f06a` read back linear images by default (wheels, [[GAME STATUS]: Grand Theft Auto V : Car gameplay broken #971](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/971)/[[GAME STATUS]: Grand Theft Auto V - In the open world #888](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/888)). You weren't sure about turning it on for every game, so I'll leave that call to you. > * `04abd479f` + `2c8b9ddf5` V_FRACT F32/F16/F64 clamp (the F64 one is At0mC3's). Heads-up: [shader: keep V_FRACT results below 1.0 #1212](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1212) with the same idea was closed. > * `e81661f3b` tessellation on by default (after [shader: translate GTA V's tessellated tree trunks #1245](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1245)) > * `ba0f01cc8` descriptor pool for oversized sets (AMD crash). Looks like it belongs with [graphics: bind GPU-indexed T# tables as sampled image arrays #1257](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1257). > > **Perf series (yours to shape, I'd rather not touch these)** > > * GPU pipeline threads / resolve / readbacks: `e68140e23`, `6101f2da6`, `47f13b286`, `7d19adea6` > * BDA sync and long sessions: `6bb856a91`, `3bba1f44e`, `baa4dbbb2`, `31ed3c634` > * Bindless/permutations (on top of [graphics: bind GPU-indexed T# tables as sampled image arrays #1257](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1257)): `96e9010ca`, `ed4da8708` > * Others: `d14bf3e61`, `b90947f9f`, `6bf52ec7d`, `b8ef7162f`, plus the small ones (`661ee5430`, `450bc5890`, `b19caa460`, `c0c4f52a3`, `b2e6c7050`, `a3ae8b84b`, `0bff4ac5c`) > > Which ones do you want to file yourself, and which would you like us to port (with you as author)? I have `b5a4c947c` ready as a patch with you as author, but I'm holding it until you say so. To be right, i have created the PRs just to make them visible, you can port any of the changes from my fork to kytyPS5 upstream and close any of my PRs by yourself while i'm as a author/coauthor, taking care of all the PRs is a bit complicated for me due the constant changes of upstream, in my fork i have it sync with upstream to don't have conflicts if you want And about things like "read back linear images", to be right for GTAV is just needed then i think that is a need on the emulator it self, other thing is that causes a bug on some specific game that we fix later or we just allow to disable it for the specific game etc then yeah i would enable for the emulator itself but i only tested it on GTAV

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.