d3d12: answer the console marker and capture entries #541
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/541"
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?
Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-29T21:08:23Z.
What
The command-list and command-queue function tables now answer the marker and capture entries instead of falling through to the failure stub: list slots 59/60 (
InsertGpuMarker,InsertTimingMarker), queue slots 11–15 (markers, begin/end event) and 20–22 (capture entries).The marker blob is decoded from its header word — size, type, metadata and timestamp — with ANSI and UTF-16 names, bounds-checked; unknown shapes fall back to the opcode so begin/end ranges stay paired. Each recorded command keeps the innermost marker name, and the device-lost report prints it, which turns a bare draw or dispatch into
… in "<title name>". Capture entries answerE_NOTIMPLonce with a log line.Tests
pix_markerscalls each vtable entry with fabricated handles and checks the recorded names and capture results. Failing first: with the two list slots left as before, the slot test reports the wrong target.The D3D12 unit binary passes under Wine (CPU only). No GPU or present gate was run, so a real marker range in a launch is still unverified; the entries are intentionally no-ops to the GPU.