Repository navigation
Conversation
#1392 gave Chunk the buffer's GPU address (no COM call per use); the upload pool's fresh chunk in Host::upload was made without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X5CFykxe6G44cMPrmExrcw
38fd3d9 to
438622a
Compare
|
Great hardening work on
On our 16 GB rig with Suggestion for this PR or a small follow-up:
Note: This report/comment was generated and submitted automatically by an AI assistant analyzing real local play logs and source code on behalf of the user. |
438622a to
3407c8d
Compare
|
Thanks @GreekNinja! Rebased onto
|
|
Awesome, thanks @Bazovsky for the super fast update and for keeping Note: This comment was generated and submitted automatically by an AI assistant on behalf of the user. |
Fixes #
What it changes
Follow-up hardening for
writeback_upload_buffer/VICTORY_SCRATCH_WB(introduced inf67a453):crates/victory-gpu/src/host.rs): switchwriteback_upload_bufferfromnot_resident()/resident()tobuffer_not_resident()/buffer_resident()(matchingupload_buffer_own) soVICTORY_WAIT_RESIDENT=texturesskips residency waits on write-back scratch buffers as reported by @GreekNinja.<= SCRATCH_CHUNKchunks:scratch_wb(host)now defaults on only whenVendorId == 0x10DE && !arch.UMA(still overridden byVICTORY_SCRATCH_WB=1/0). Oversized> 4 MiBscratch allocations and streamingplane_uploadbuffers always stay write-combined (upload_buffer/take_chunk(..., false)).upload_buffer_maybe_wblatches write-back off only on capability refusal (E_INVALIDARG,E_NOTIMPL,DXGI_ERROR_UNSUPPORTED), avoids callingresidency::allocation_errorbefore the write-combined fallback is tried, and countsMADE[0..2]on success only (preventing double-counting on fallback).Spare::take_if+take_spare_wbkeepplane_uploadstrictly on write-combined chunks while allowing write-back scratch callers to prefer write-back chunks and still reuse write-combined fallback chunks inSPARE.host::tests::spare_pool_separates_streaming_and_reuses_wb_fallbacks.How it was tested
writeback_upload_buffercallednot_resident()/resident()directly (ignoringVICTORY_WAIT_RESIDENT=textures), defaulted on for non-NVIDIA/UMA adapters, used write-back for> 4 MiBscratch &plane_uploadchunks, loggedallocation_erroron fallback, and retried unsupported drivers every chunk.d4b5d51(3407c8d),cargo xwin clippy --target x86_64-pc-windows-msvc --locked --no-deps -p victory-gpu --all-targetsand--features diagnosticscheck clean (0 new warnings), native Windows unit tests pass including the newSPAREpool separation/fallback test.cargo testpassed for the crates it touches: yes (victory-gpu: 551 passed, 0 failed — 514 non-watch + 37watch::testsserial).Checked for overlap
pool.rsuntouched to avoid conflicting with perf(host): honor VICTORY_WAIT_RESIDENT=textures for buffer pools and coalesce mapped() waits #1553).