Vehicles with black bodywork or missing panels: root views read across a 4 MiB line (from VIda) #41
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/41"
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 ReTerryDavis/ReVIctory. Originally posted by staticman256 on 2026-12-04T08:45:11Z.
Vehicles with black bodywork or missing panels: root views read across a 4 MiB line (from VIda)
The README lists under known issues: "Some cars and trucks can still lose their painted
body at certain angles and look black." A cause of that was found by MTrv0 in
VIctory-AMD-UM (e923457) and is carried in VIda by
Zelbrad (471c423). It is brought onto current
mainhere.Based on
mainat249f2aa. 2 files, +94 -9.What was wrong
Title memory outside buffer objects is copied in windows named by 4 MiB cells. A root view
is bound without a length, so its window ended at its cell's line. The vehicles' paint
programs bind such views shortly before a line (560 bytes to 51 KB before it in MTrv0's
run), and on the console the read simply goes on into the next bytes. Here zeros were read:
bodies black in places, doors and hoods gone.
What is changed
shadow.rs:find_rootandfind_root_withare added for root views that a shaderonly reads (root constant buffers and shader resource views). Outside buffer objects, an
address with less than the reach left in its cell is given a window over the line: the
last
reachbytes of the cell and the firstreachof the next (ask_window), not thetwo cells whole. Everything else is passed to
find/find_withas before.looseis given the reach as a fifth parameter; its other callers pass 0. Root unordered views
keep
find, so what shaders write is still copied back from the copy they wrote.draw.rs: the two lookups for read-only root views (root_viewand the root SRVslot) are made through
find_root_with/find_root.a_root_view_near_a_cell_line_gets_a_window_over_it).The same VIda commit holds a second fix (a texture slot the title rewrites every frame
keeps its first due frame). It is left out here: the tested car was right without it.
Switches
VICTORY_ROOT_REACH_KB(1024 unset; rounded up to 64 KiB, at most 4096;0: as before).1024 is what MTrv0's
play.ps1and VIda's launcher are run with; 256 is the default inMTrv0's code.
What to look for in a log
Tested
RX 9070 XT, Windows 11, diag build started from
play.ps1(FSR 4 performance with framegeneration, no ray tracing). The runs were made with a build that also held VIda's second
fix behind a switch; with that switch off the code that ran is the code of this PR.
changed as the car was damaged.
reach_kb=1024, and no device loss was logged.VICTORY_ROOT_REACH_KB=0, the black panels were back.been opened, and other deformations of the car were shown right: a fault seen for a long
time before.
--all-targets, with and without the diagnostics feature, and arelease check, for
victory-gpuandvictory-shaderon249f2aa: no warnings.Not tested
starts near) was not measured.
Claude Fable 5.2/High
Imported from ReTerryDavis/ReVIctory. Originally posted by Ace-Zer0x77 on 2026-12-04T11:19:50Z.
Tested on
previctory-v0.5.0-next(81bafbf, based on249f2aa) with an RX 9070 XT (Series X @ 1440p and Series S @ 1080p, 30/40 FPS caps with FSR + Frame Gen):View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.