GPU: mirror placed unordered texture views onto host textures #114
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!114
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-114"
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?
@Kaivyyy on GitHub · 2026-11-24 21:35 UTC · original
Kaivyyy:gpu/placed-uav-textures→main· +314 −12 · 3 files · 1 commits · openSummary
resource::uav_texture_atfor placed unordered texture views (View::Placed(true, ...)wheredimension != BUFFER): reuses a compatible unordered-access texture already recorded inTARGETS_ATat that address when present, or creates a placedALLOW_UNORDERED_ACCESStexture starting inD3D12_RESOURCE_STATE_UNORDERED_ACCESS(normalizing mismatched resource vs. UAV formats such asR9G9B9E5_SHAREDEXPviewed asR32_UINT) and records it inTARGETS_AT.descriptor::host::placed_textureandmakeinstead of dropping them withplaced unordered texture view not mirrored, and mirror them when written into shader-visible view heaps (View::is_bufferreturnsfalsefor placed unordered textures, matching texture-object UAVs) so shaders indexingResourceDescriptorHeapdirectly see them as well.View::Placed(false, ...)) beforetexture_atso they never overwriteTARGETS_ATand continue to GPU-copy texels fromTARGETS_ATviaresource::alias_of/texture::alias.Addresses
WARN victory_gpu::descriptor::host: placed unordered texture view not mirroredin #26.Testing
descriptor::host::tests::placed_unordered_texture_view_mirrors_and_aliases_to_shader_view, covering 3D placed UAV mirroring on a shader-visible heap, reuse of existingTARGETS_ATresources, and GPU texel aliasing from anR32_UINTplaced UAV into anR9G9B9E5_SHAREDEXPplaced SRV.cargo test -p victory-gpu --locked -- descriptorcargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo xtask policy@SkillIssueXO on GitHub · 2026-11-24 21:48 UTC · original
I tested
d5c277eon an RTX 5070 Ti (621.24), Series X profile, with default renderer switches andVICTORY_DUMP_TARGETS=1for the selected captures. The placed-UAV mirror/alias GPU test passed locally. The game reached Antonia’s dialogue, where the dark interior and missing wall/ceiling surfaces were still reproducible.At frame 1900, the openings visible in the presented image were already visible in the 2560×1440 opaque depth and material targets. The main depth target was verified against the opaque draws in the same frame’s ops trace. It had stencil
0x08set on 3,568,377 / 3,686,400 pixels (96.8%). At frame 2150 that was 3,684,729 / 3,686,400 (99.95%). The indoor marker survives on this run. The aggregate counts leave its per-surface accuracy open.This was a PR-head verification of the remaining symptom. The run used no shader skips and no Relay. AI-assisted capture analysis (Codex, with Claude Code source review).
@ThomasHFWright on GitHub · 2026-11-24 21:57 UTC · original
Linux/NVIDIA integration test of
d5c277eon4e17478b+ #20 (14a1f07) + #98 (e8cad1e). RTX 5090 / Linux NVIDIA 620.73.4 / GE-Proton11-14. All title and GPU tests offline.The new
placed_unordered_texture_view_mirrors_and_aliases_to_shader_viewtest passes here. Complete GPU suite: 119 passed, 2 known vkd3d pipeline-library failures, 3 ignored (two ignored tests are local diagnostics). Diagnostic build, workspace all-target/all-feature Clippy with-D warnings, and native asset policy pass. The full workspace before adding this PR had 501 passes and 6 existing compatibility failures; only the affected GPU suite was rerun after adding it.Runtime evidence:
placed unordered texture view not mirrored dimension=3once.0452fc2d2e2fc4c3; the next marker remains zero. 893/893 dumped SPIR-V modules validate for Vulkan 1.3 with scalar block layout.55679a0547649d0b; the next marker remains zero. 1461/1461 dumped modules validate. The missing placed-UAV warning remains absent.The final captures are still story-card/blank output, and sampled intermediate targets do not establish recognizable world geometry. This verifies the added texture path and removes the observed warning, but does not demonstrate a crash fix or normal world visuals. Capture readbacks and warm caches change timing, so the longer second run is not a stability claim. The timeout/marker instrumentation is local, opt-in diagnostic code; timestamps locate an interval rather than proving the cause of corruption. Normal shaders, loop limit 256, no shader skips.
Heap-clamp findings and baseline details: #98. No game data, images, or raw crash logs attached.
@ryotdev on GitHub · 2026-11-25 01:11 UTC · original
I found an address-reuse case where the SRV loses its source. On
d5c277e, I created a placed UAV and its paired SRV, used the same address for a temporary target with a different width, then released that target. Looking up the original UAV returned its cached resource, butalias_ofreturnedNonefor the paired SRV.The fix restores the cached resource to
TARGETS_ATwhen its entry is vacant. The regression also repeats the lookup while the temporary target is alive and verifies that it keeps its own SRV alias. Fix and regression testThe regression failed on the PR head and passed with the fix on Windows. The full
victory-gpulibrary suite passed 112 tests with one ignored, including the existing placed-UAV texel-readback test. The asset-policy check passed. AI-assisted. The effect on game lighting is unmeasured.@BradRoland on GitHub · 2026-11-25 22:13 UTC · original
I tested the 2D placed-UAV path against the texture readback now on
main. The synthetic resource was a 256×256 R32_FLOAT texture with one mip and a sentinel in title memory. The test creates the placed UAV, mirrors its descriptor, records a GPU clear to 4.0 through that descriptor, submits the list, and checks each texel in its tiled CPU layout withVICTORY_TEXTURE_BACK=1.9c184b39c184b3+d5c277eThe opt-in test is available as a single commit on top of that merge. Run
cargo test -p victory-gpu --locked --features diagnostics placed_water_feedback -- --ignored --nocapture. SetVICTORY_D3D12_WARP=1for software or leave it unset for hardware. Test source and commitThis exercises the 2D view type seen in #26 and a format used by the water readback. The game report does not identify that particular texture's format. Gameplay impact remains unverified.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.