Repository navigation
Conversation
Give placed unordered texture views (2D, array and 3D) a host unordered-access texture at their placed address (reusing an existing compatible target at that address when present), mirror them immediately when written into shader-visible heaps, and keep TARGETS_AT intact when placed shader views carry target flags so cross-format placed SRVs alias the shader-written texels on the GPU.
|
I tested 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 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). |
… (#82), core/VRAM scaling (#49/#38/#42/#45/#47), scatter batching (#108), prelude textures (#80), and shader/UAV fixes Integrates 15 upstream PRs orthogonal to Issue #2's default speed-switch measurements: - GPU culling & compute cap: - Marvisak/VIctory#1731: real host D3D12 occlusion queries (wired into read_backs for both sync execute and async VICTORY_RELAY/LATE_WAIT flights) - fxceless/victory-fork#82: hardware depth-bounds test pass-through in pipelines and command lists - fxceless/victory-fork#66: lower default compute shader loop cap (4096 -> 256) - CPU multicore, streaming & memory/VRAM scaling: - fxceless/victory-fork#49: scale shadow, pipeline (keeping VICTORY_PIPELINE_THREADS override), and DirectStorage workers with CPU cores - fxceless/victory-fork#38: default-on parallel host-copy refreshes on >=4 logical CPUs (VICTORY_WIDE_REFRESH=0 opts out) - fxceless/victory-fork#108: batch adjacent zero-page unmaps in XMemMapPhysicalPagesScatter - fxceless/victory-fork#67: release directly indexed buffer ranges with their heap - fxceless/victory-fork#42, #45, #47: auto-scale card buffers, texture staging/floor, and snapshot/scratch/list pools from VRAM and RAM - Rendering smoothness & correctness: - fxceless/victory-fork#80: upload dirty title textures in HostList::prelude - fxceless/victory-fork#114: mirror placed unordered texture views onto host textures - fxceless/victory-fork#121: preserve VGPR slots observed by relative reads - fxceless/victory-fork#122: recompute ISG1 input usage and barycentrics flag after bitcode opt - fxceless/victory-fork#112: fix DXIL signature ordering for packed semantics Verified: - cargo xtask policy --staged: 21 files ok - cargo clippy --workspace --all-features --lib --tests -- -D warnings: 0 warnings - cargo test --workspace: 0 failures (140 victory-gpu incl. host occlusion query + depth-bounds tests; 226/226 victory-shader) - Live 2560x1440 run (RTX 4080, VICTORY_RELAY=2 + VICTORY_INPLACE=1): reached 3D world (frame 1285), 77 in-place windows (364 MB, 0 refused), 0.0 ms texture remap waits, 0 crashes, 0 D3D12 errors Fixes #10
|
Linux/NVIDIA integration test of The new Runtime evidence:
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 (comment). No game data, images, or raw crash logs attached. |
|
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, but The fix restores the cached resource to The regression failed on the PR head and passed with the fix on Windows. The full |
|
I tested the 2D placed-UAV path against the texture readback now on
The opt-in test is available as a single commit on top of that merge. Run This 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. |
…less#114) XAsyncComplete held the call's `done` lock while the title's provider ran OP_CLEANUP. A cleanup that waits for a worker thread which is itself completing the same call (it took the call before the cleanup removed it) deadlocked: the worker blocks on `done`. The first completion now claims the call with an atomic flag and runs unlocked; the status is still published after the cleanup, while the block is valid, and `done` is set only for the waiters. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
From avatarmanz/VIctory-7900XTX PR fxceless#114 (secure-silicon), re-implemented on this tree, which also lacked its prerequisite (VIctory 4243a96: the kind of a view picked from the heap). The face network keeps its 16-bit halves in R16_UINT views held in descriptor tables and reads and writes them with `_d16` typed accesses. The translator took all d16 data as f16 through a float path: an integer's bits taken as a float are a denormal, whose f16 is 0, so the network's results were all zero, a face at rest. - victory-shader: the word of the table of strides (SLOT_STRIDES) now holds the stride in its low 30 bits (VIEW_STRIDE_BITS) and the view's kind in the top two (VIEW_INTEGER, VIEW_SIGNED). `integer_view` reads that word for a view picked from the heap and for a view in a table (`slot_word(src, tables)`); d16 typed loads of an integer view keep the low 16 bits, d16 typed stores zero- or sign-extend them. Other views: f16 <-> f32 as before. (The handle stays a float one, whose bits the drivers pass.) - victory-gpu: `view_kind` / `stride_word` give the word for a view; title slots get it when the title writes them (note_buffer), and the dynamic slots of a table made afresh in `State::tables` get it through `HostHeap::dynamic_word` (they had no word before). The table may live in a GPU upload heap (VICTORY_TABLES_ON_CARD): only written, never read on the CPU. Tests: emit::memory_tests::d16_reads_of_an_integer_view_in_a_table_keep_ their_bits (GPU and WARP: an R16_UINT view in a table read with buffer_load_format_d16_x; all zeros without the change, the halves with it), descriptor::tests::a_fresh_table_writes_its_slots_words_of_the_table_ of_strides, descriptor::host::tests::integer_typed_buffer_views_are_ marked_in_the_table_of_strides. Programs with d16 typed accesses to views in tables now bind the table of strides, so they ask for the heap pass (once a frame), as programs that pick views from the heap already do. Every shader is translated anew (the translator changed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
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