mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1487] RT-COMPUTE-SPILL-DIAG: add compute root spills and startup diagnostics #1516
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1516
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1487
Author: @fuegon7
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/compute-root-spill-xmem-diagnostics📝 Commits (1)
76ab849Add compute root spill support and diagnostics📊 Changes
6 files changed (+227 additions, -41 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+21 -14)📝
runtime/shims/d3d12_com.cpp(+131 -24)📝
runtime/shims/d3d12_com.h(+4 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+5 -1)📝
runtime/shims/d3d12_xs_device.cpp(+13 -1)📝
runtime/shims/xmem.cpp(+53 -1)📄 Description
Claimed in the coordination issue as: RT-COMPUTE-SPILL-DIAG
Depends on: none
Fixes: none
What and why
Implements the measured compute root-argument layout for parameters beyond the inline s4..s31 window. Spill arguments are packed in root order into a host-visible upload buffer; each dispatch snapshots its values and puts the buffer GPU address in s0:s1. Graphics root signatures that exceed their measured layout remain rejected.
Adds focused diagnostics around compute pipeline matching/creation and large XMem physical-page allocation/mapping, to make early retail startup failures easier to localize.
Observed on a retail startup run: the 99,776-page XMem allocation and mapping succeeded; compute PSO #36 for bvh/ReloadTriangles was created successfully and execution reached ExecuteCommandLists. The title then raised an access violation reading 0x100000000. Six CreatePipelineState calls also failed because their vertex shader hashes had no translated-shader match. These observations do not establish the cause of the crash, and this PR is not presented as a confirmed fix for it. The spill dispatch path still needs validation against a game shader that actually spills.
No game files, translated shaders, or raw logs are included.
Tested
git diff --check passed. Build.bat and the test suites were not run here; the contributor will run Build.bat locally. The retail startup run reached ExecuteCommandLists and reproduced the access violation described above; it is diagnostic evidence, not a successful launch or correctness test.
GPUs tested: NVIDIA GeForce RTX 3070 Ti, Windows 11; driver version was not recorded. System: Intel Core i7-12700K, 32 GB RAM. No GPU correctness tests were run.
AI-assisted: yes
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.