Proposal: shaders resolve GPU-selected buffer descriptors and report the pages they write #2541

Open
opened 2026-11-26 10:22:34 +00:00 by github-bot · 0 comments
Owner

@⁠Nawid3333 on GitHub · 2026-11-24 08:24 UTC · original

Tester logs of three games end at buffer descriptor is not a valid runtime value; GPU-selected access requires ... (raised at ResourceTracking.cpp:4319): GTA V #2277 (compute 0xe777d90ed493bd6c, pc 0x93c), Crimson Desert #2321 (0xfc0aa7b2901ca28e, pc 0x74) and Ghost of Yotei #2350 (0x6f900f448f996185, pc 0x470). Each shape today needs its own planner (#2501 for GTA V; I have a bounded-table one for the Crimson Desert store). Writable FLAT/GLOBAL is also refused at compile time (require GPU ownership tracking, ShaderInfoCollection.cpp:326).

Before I write code, would you accept this direction? #690 also decoded V#s at run time and was closed on 11-15 without a comment; if that approach was the reason, I'd rather know now.

  1. Reads: when no planner proves a V#, the shader decodes it at run time for every read shape and reads through the BDA page table, like the IndirectBuffer path already does for its list of shapes.
  2. Stores and atomics (and later writable FLAT/GLOBAL): the shader appends the pages it writes to a small report buffer. After the dispatch the host adds them to the buffer cache's GPU-modified ranges before it writes the labels the guest waits on. This changes when labels are published after such dispatches.

AnyPS5 handles these cases this way (GPU-side descriptor decode, written-page chunks); the code here would be my own. Each step would come with unit and compute tests that fail on main.

**@⁠Nawid3333** on GitHub · 2026-11-24 08:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2541) Tester logs of three games end at `buffer descriptor is not a valid runtime value; GPU-selected access requires ...` (raised at `ResourceTracking.cpp:4319`): GTA V #2277 (compute `0xe777d90ed493bd6c`, pc `0x93c`), Crimson Desert #2321 (`0xfc0aa7b2901ca28e`, pc `0x74`) and Ghost of Yotei #2350 (`0x6f900f448f996185`, pc `0x470`). Each shape today needs its own planner (#2501 for GTA V; I have a bounded-table one for the Crimson Desert store). Writable FLAT/GLOBAL is also refused at compile time (`require GPU ownership tracking`, `ShaderInfoCollection.cpp:326`). Before I write code, would you accept this direction? #690 also decoded V#s at run time and was closed on 11-15 without a comment; if that approach was the reason, I'd rather know now. 1. **Reads:** when no planner proves a V#, the shader decodes it at run time for every read shape and reads through the BDA page table, like the IndirectBuffer path already does for its list of shapes. 2. **Stores and atomics** (and later writable FLAT/GLOBAL): the shader appends the pages it writes to a small report buffer. After the dispatch the host adds them to the buffer cache's GPU-modified ranges before it writes the labels the guest waits on. This changes when labels are published after such dispatches. AnyPS5 handles these cases this way (GPU-side descriptor decode, written-page chunks); the code here would be my own. Each step would come with unit and compute tests that fail on main.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:22:34 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#2541
No description provided.