Repository navigation
GPU: sample deferred character material textures - #49
Artking175 wants to merge 4 commits into
Conversation
Recognize the two deferred character shader variants that read texture indices from the material record at table 0, dword 688. The packed variant reads two extra indices. Keep this under the existing opt-in material texture demand path.
|
I repeated the two shader checks on RayTime main The local probe's synthetic fixture read all nine packed fields from a GPU-written record whose CPU copy stayed zero. It distinguished a title texture with no retained native resource from a descriptor rewritten before observation. The fixture passed on RTX 2060 and WARP, and a variant that allowed tracing to reschedule uploads failed the queue assertion. The full GPU suite on the probe build reported 241 passed, 0 failed, 4 ignored. The next evidence needed is a matching game draw and its material record. |
|
I followed up with a game run on the RTX 2060 (Windows 10, driver 531.41, Agility 1.614.1, Series X with RT off). RayTime With demand on, the GPU read slots 37484 and 37485 from byte offsets 8 and 16. Both were re-enqueued at frame 2099 and still had no retained native resource at observation frame 2261, despite 4096/4096 visible bytes and no overlapping claim. Slot 37486 was also queued and null at that observation. At the corresponding capture offset in the control run, all three had native resources. In the demand run, red patches appeared on the shoulders and sleeves near the window, while most of the outfit remained dark. The separate runs differ in camera and streaming timing, and the captures do not establish which draw or texture contributed those patches. The renderer reported VRAM pressure in all three runs. At the last demand-run queue sample it reported 8,450 slots deferred by the VRAM budget out of 8,471 queued. This is a queue-wide count. I'd add a bounded, trace-only upload outcome for the requested slots, correlated by slot and descriptor write number. In particular, distinguish a budget deferral, a stale or unmapped view, a mirror error, and an SRV actually installed. A small fixture that verifies the tracing leaves the queue unchanged would preserve the property checked by the earlier probe. This would show whether promotion helps the missing slots reach a native SRV under pressure. |
# Conflicts: # crates/victory-gpu/src/descriptor/host.rs
|
This branch now includes the material GPU readback and a bounded upload outcome trace, merged with RayTime main Set RTX 2060, Windows 10, Agility 1.614.1 and Rust 1.98.1: all 10 tests matched by |
Extend the existing opt-in material texture demand path to the two deferred character pixel shaders seen in the dark-prologue investigation.
Both shaders read texture indices from the material record in SRV table 0, dword 688. The record byte offset comes from user data word 14. The regular variant reads offsets 0–24 at four-byte intervals, and the packed variant also reads offsets 28 and 32. Those words feed the resource-heap descriptor loads after the guest's five-bit shift. The two shader hashes currently miss the sampler's allowlist.
The new test checks the index extraction and the readable byte ranges for both variants, including a record that is large enough for the regular variant and too short for the packed one. The feature still requires
VICTORY_MATERIAL_TEXTURE_DEMAND=1.Validation
The shader commands appeared in a capture from the affected scene. The specific material attached to the clothing, texture residency, and the in-game visual effect remain to be measured.