Repository navigation
d3d12: a placed BC image the title has not filled shares a zero image without host copies too (RT-PLACED-DEFER-STAGED) - #2020
Conversation
…copies too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…checks kept) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr
|
Merged current |
|
Data from profile M (RTX 4070 Laptop 8 GB, NVIDIA 621.40), with this PR plus #1851 (
That's two variables at once (this PR and host copies off), and other settings differed (value-wait timeout, device type), so I don't claim the drop for this PR alone. |
|
Merge test on an 8 GB laptop (profile M), asked by DadaCap. Main ec91d69 was merged without conflict, in one tree together with #2166. AI-assisted (Claude Code, Claude Opus 5.5).
|
RT-PLACED-DEFER-STAGED, claimed in #1608. Follow-up of #1827 (mine).
What
With host image copies, a CPU-fillable, typed BC texture the title places (device slot 133) samples a shared zero image until a CPU write or GPU command gives it a backing. Without host copies (a device without
VK_EXT_host_image_copy, or #1851's switch)create_texturenever took that path, so each such image was backed when it was made. This lets it take the same path: the staged upload #1827 added fills the private image, and the first shader submission clears what nothing has filled. The shared zero image, which host copies fill, is cleared the same way there. Devices with host copies are unchanged. Other formats and typeless images stay eager, and the zero-image cache keeps its 256 MiB limit.Measured
RTX 5080 16 GB, NVIDIA 621.24, Windows 11, host copies off, the memory probe (
LEONIDA_MEM_PROBE=10) in the world phase of a tree with other open pull requests merged; one run each:Limits of that comparison: the two runs are at different points, and the second tree also had texture eviction, memory priorities and #1896. The first row is what this change acts on; I do not claim the whole second row for it. World frames also got faster (about 55 to 63 s to about 13 s with a diagnostic dump on in both), which I can't attribute to this change alone.
Tests
On this commit, RTX 5080, VS 18 RelWithDebInfo:
d3d12_existing_heap,d3d12_xmem_placed,d3d12_m2_texturedandd3d12_vulkan_devicepass.d3d12_existing_heapnow runs its shared-BC check on the device without host copies and requires the image to be unbound until its first use; it fails there without the shim change (checked by reverting it). No other GPU was used, and the wholectestset was not run.AI-assisted (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code