gpu: read scalar shader tables through the GPU-synchronized path #1713
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1713
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1713/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ReverendOzmund on GitHub · 2026-10-19 13:02 UTC · original
ReverendOzmund:fix/srt-sync-reads→main· +3 −0 · 1 files · 1 commits · closed without mergingThe SRT runtime only routed vector specialization reads through ReadShaderGuestMemory. Plain scalar table reads did not go through it, and a value that an earlier dispatch in the same submission wrote came back stale. GTA V's BVH node writer reads its class-A total from the tree header this way, got 0, wrote a node over the root, and the ray traversal looped forever.
Claude-Session: https://claude.ai/code/session_01SscrMzrvwrj17PJsfzqog9
@coderabbitai[bot] on GitHub · 2026-10-19 13:08 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
1fb182d3-7440-4a2d-b9af-fa70e4188cbc📥 Commits
Reviewing files that changed from the base of the PR and between
cd4eab9d65and418f60dacb.📒 Files selected for processing: 1
src/graphics/host_gpu/renderer/pipeline/pipelineCache.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
ProgramCache::Getnow assignsReadShaderGuestMemoryto the runtime’sread_memorycallback. Scalar table reads use the same guest-memory callback as specialization-memory reads.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
418f6Scalar shader-table reads now synchronize GPU-dirty data before reading guest memory, addressing the stale-value behavior. No actionable merge-blocking risk remains.
Pre-merge checks:
4 ·
1
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 helpto get the list of available commands.@ReverendOzmund on GitHub · 2026-10-19 13:10 UTC · original
closing this one, my bad. the stale read only happens with #1365's reader (TryReadBacking skips the gpu-dirty check), plain main reads that memory through the protected guest mapping, which syncs first. i'll post the actual fix as a suggestion on #1365 once i've tested it.
Pull request closed