d3d12 checks: read a root CBV at every 16-byte offset under the launcher's settings #282
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/282"
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 NickStallman on 2026-11-26T22:54:12Z.
Refs #251. Nothing checked the read that
force_raw_va_cbv(5c5677b) fixes.root-cbv-windowbinds only at multiples of 256, and the launcher test checks the variable, not a read.root_cbv_guest.cpp --offsetsbinds one root CBV at each 16-byte step from 0 to 256 and compares 24 words at each offset. On a mismatch it names the wrong offsets.root-cbv-offsetscase intools/check_d3d12_regressions.py.tuxbox.py checkruns every case, and the controls start with vkd3d-proton's defaults, where NVIDIA reads only 5 of the 17 offsets correctly. So this case takes its variables fromconfigure_console_cbv, the functiontuxbox.py runcalls: the constant-buffer layer or the Proton build feature, plusforce_raw_va_cbv. The other cases are unchanged.CONTRIBUTING.mdnow says so.Lanes doesn't exercise this: Lanes starts through
Host.run, which sets neither the layer nor the setting, so it is a D3D12 control. #271 adds an explicit--cbv-mode stock|launcherswitch to the same runner. If that lands first, this case can use its launcher mode in place of its own per-case setting, and I'll rebase onto it.Measured (RTX 5090, driver 620.70.10, GE-Proton11-14, vkd3d-proton v3.1-83):
force_raw_va_cbv)force_raw_va_cbvline removed fromconsole_cbv.pyThe case fails on NVIDIA if 5c5677b's setting is removed.
Checks (on
e76ff6a):python -m unittest discover -s tests -q: OK. Four new tests cover the receipt,launcher_cbvon both the layer and the fork routes, the settings reaching only this case, and the setup-failure path.python tuxbox.py check --adapter 1002:13c0 --proton … --prefix … --windows-dxc …passed, 120 gates, includingroot-cbv-offsets(17/17).root-cbv-offsets(17/17).Not covered: root CBVs in a graphics or mesh pipeline, and table CBVs.
🤖 Generated with Claude Code