Repository navigation
Conversation
The host removes the device for a constant buffer view of more than 65,536 bytes. The title's view heap holds larger sizes in slots it does not use, and the size went to the host as it was.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Independent Windows 11 result on an RTX 4070 (driver 32.0.16.1664), Series X mode, pinned In a synthetic D3D12 WARP probe with the debug layer, the same aligned, 1,228,032-byte backing allocation left the device at AI-assisted capture and log analysis. No title data attached. |
|
In-title result for this, on an RTX 2080 (
It is one session, so it shows that such a view does turn up in the title and that the device stays, not how often the old build would have ended. AI-assisted (Claude Code); counts and log lines only, nothing from the game attached. |
|
Independent test run on commit
AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report. |
|
Ran the game with this (1d2f476) on an RTX 4080, Windows 11, Series X profile, default settings. 5.5 min from boot into the opening cutscene. No device loss, no |
…, #188) Integrates selected runtime, GPU, and shader fixes from FulGerNet/macca-cl (cd81e89, GPL-3.0-or-later) plus remaining clean upstream PRs on top of origin/main (da435f1): From FulGerNet/macca-cl: - console_insn.rs: mwaitx yields (std::thread::yield_now) instead of spinning with pause so waiting threads do not starve video/audio/pipeline workers. - texture.rs: mark view-aliased textures (Bink intro video frames) so they hash on every refresh rather than every 8th frame. - pipeline/make.rs: VICTORY_PIPELINE_THREADS override, 3/4 core default (2-8), early prewarm at THREAD_PRIORITY_LOWEST and draw-requested at NORMAL. - pipeline/library.rs: per-writer atomic cache staging files (+2 tests). - shader_cache.rs & emit/{mod,shader}.rs: key translated shader cache by translation_limits() (host_max_wave + view_heap_limit) and wave/strict env options (+test), plus DXIL validator warning pass (VICTORY_DXIL_STRICT=1). - emit/{mod,lower}.rs: last-resort wave-wide compute fallback on 32-lane hosts before WaveSize(64) (VICTORY_WAVE_WIDE=0 disables), plus mixed flat and interpolated input row lowering (+test). - draw.rs, list.rs, queue.rs: host heap COM-pointer tracking (ABA guard), root-signature invalidation, recycled transient table submission guard, and initial pipeline bind on list creation (+3 tests). - kernel.rs & xgame.rs: CP_ACP ANSI path encoding for GetModuleFileNameA and XLaunchNewGame (+test). From upstream PRs: - fxceless/victory-fork#25: uniform control-flow immediate samplers (+test). - fxceless/victory-fork#24: cap constant buffer views at 64 KiB (+test). - fxceless/victory-fork#23: gameinput reading history 32 -> 256. - Marvisak/VIctory#1623: inline GFX10 instruction words (+from_word helper). - Marvisak/VIctory#188: SSE2 16-byte TLS scan at startup. Verified on Windows 11, RTX 4080 16 GB (Wave32), Ryzen 7 7800X3D, 32 GB RAM: - cargo xtask policy --staged: 22 files ok - cargo clippy --workspace --all-features --lib --tests -- -D warnings: clean - cargo test --workspace: 0 failures (215/215 victory-shader passed) - Live 2560x1440 diag run (VICTORY_DISPLAY_MODE=2560x1440): smooth Bink intro video at 30.0 fps (33.3 ms/frame, 12.7 MB/frame texture streaming, 0.4 ms GPU, 0 dropped draws) -> UI Text Size setup screen (25.4-30.0 fps, 7.1 GB private, 552 MB VRAM), 0 crashes (crashes.log empty). Fixes #6 Fixes #8
|
Confirmed on an RTX 3080 10 GB (Windows 11, driver 621.14). Without this change the device is removed with |
|
The evidence in this thread is unusually strong: four cards with before/after runs, and the debug layer naming the oversized view, so the cause looks settled. One small test thing: in Written with an AI assistant (Claude). |
|
Test report on current Without this change,
Run B, the two lines in order: Note for anyone reading run A's kind of log: the list of the last 64 views in the "buffer views of the heap were made" error did not contain the oversized view (its largest
Not shown: runs A and C each ran once at default settings. All three trees also carried a local diagnostics-only counter of mine (it reads the lists' copy steps and does not touch descriptor views). Frame rate in run C's last five minutes: median 4.6 fps in 5-second readings (diagnostics build). AI-assisted (Claude Code): runs, log reading and this text. Counts and log lines only, nothing from the game attached. |
…celess#24/fxceless#104), null CBVs (fxceless#304), tables at list cuts (fxceless#742), heap entries (fxceless#589), barriers (fxceless#787), depth-stencil UAV barriers (fxceless#214), windows ending at recorded writes (fxceless#663), sRGB views (fxceless#644), wide accesses across pages (fxceless#846), view-guard costs (fxceless#812/fxceless#853), the fill latch (fxceless#860), pipeline waits (fxceless#709), robustness; opt-in fxceless#868/fxceless#845
… scan Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… main added since) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fix I described in #5, as a PR on
1684989. The same change is Marvisak/VIctory#1640 (the code is the same there).A constant buffer view of more than 65,536 bytes removes the host device (
0x887A0001). The size from the title's descriptor went toCreateConstantBufferViewas it was. The heap keeps old contents in slots the title doesn't use, and a view is made for each. In two runs on an RTX 2080 that ended that way, the last 64 views (yourthe host device went while buffer views of the heap were madelist) included constant buffer views of 969,472 and 896,256 bytes. This caps them at 64 KiB, which is all a shader can index.Test.
an_oversized_constant_buffer_view_leaves_the_device_alivemakes both sizes throughmakeand one throughconstant_at, and checks the device after each. Without the cap it fails at the first ("a view of 969472 bytes"); with it, it passes.cargo test -p victory-gpu --libon an RTX 2080: 111 passed, 1 ignored.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean.Not shown: I haven't run the title with this yet, and a third run with the same removal had no oversized view in its list, so it may not be the only cause. A probe on the same card shows that a view not on a 256-byte address, or of a size that isn't a multiple of 256, also removes the device;
makealready guards against both.AI-assisted (Claude Code); counts and log lines only, nothing from the game attached.