shader: own handle for buffer size queries #134

Closed
GaiuLulius wants to merge 0 commits from upstream-pr/134 into main
GaiuLulius commented 2026-11-28 02:38:21 +00:00 (Migrated from github.com)

Imported from uiliannn/VItoriaBr. Originally posted by GaiuLulius on 2026-11-28T02:38:21Z.


Port of Marvisak/VIctory#2122 by @imjustprism.

🇧🇷 Português

Garante que a consulta de tamanho de buffers (getDimensions em s_load lido como dados) utilize um handle DXIL próprio e independente de acessos de memória.
No driver da AMD para RDNA 4 (ex: RX 9070 XT, amdxc64.dll), o compilador de shaders causava falha interna de segmentação quando um mesmo handle alimentava simultaneamente uma consulta de tamanho de buffer raw e uma instrução de carga/armazenamento.
Ao separar os caches de handles para consultas de tamanho, cada query recebe um handle exclusivo.

🇺🇸 English

Queries buffer sizes through a dedicated, independent DXIL handle instead of sharing it with memory accesses.
On AMD's RDNA 4 driver (e.g. RX 9070 XT, amdxc64.dll), the shader compiler suffered an internal fault when a single handle fed both a raw buffer size query and a memory load/store instruction.
By separating handle caches for buffer size queries, each query takes a handle of its own.

Co-authored-by: imjustprism [email protected]

AI-assisted (Hermes Agent, local analysis on VItoriaBr and upstream VIctory diffs).

<!-- greyfinch-sync:uiliannn/VItoriaBr:issue:5535877599 --> Imported from [uiliannn/VItoriaBr](https://github.com/uiliannn/VitoriaBr2.0/pull/134). Originally posted by [GaiuLulius](https://github.com/GaiuLulius) on 2026-11-28T02:38:21Z. --- Port of Marvisak/VIctory#2122 by @imjustprism. ## 🇧🇷 Português Garante que a consulta de tamanho de buffers (`getDimensions` em `s_load` lido como dados) utilize um handle DXIL próprio e independente de acessos de memória. No driver da AMD para RDNA 4 (ex: RX 9070 XT, `amdxc64.dll`), o compilador de shaders causava falha interna de segmentação quando um mesmo handle alimentava simultaneamente uma consulta de tamanho de buffer raw e uma instrução de carga/armazenamento. Ao separar os caches de handles para consultas de tamanho, cada query recebe um handle exclusivo. ## 🇺🇸 English Queries buffer sizes through a dedicated, independent DXIL handle instead of sharing it with memory accesses. On AMD's RDNA 4 driver (e.g. RX 9070 XT, `amdxc64.dll`), the shader compiler suffered an internal fault when a single handle fed both a raw buffer size query and a memory load/store instruction. By separating handle caches for buffer size queries, each query takes a handle of its own. Co-authored-by: imjustprism <69634294+[email protected]> AI-assisted (Hermes Agent, local analysis on VItoriaBr and upstream VIctory diffs).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
uiliannn/VItoriaBr!134
No description provided.