Streaming, copy queue, texture pools and a shader cache that survives rebuilds
Textures and staging cut from 64 MB blocks; a kept view per page section and page lists read again until the title has filled them in; the GPU side told when streamed bytes land; results fetched over the copy queue (VICTORY_RELAY_COPY=1); the write-watch journal behind a reader-writer lock; the shader cache keyed by the translator's sources and `victory shaders`; helper lanes as in upstream 1733 (VICTORY_HELPER_OWN). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
204047cb5c
commit
dd3307943c
20 files changed
+1629
-232
No files matched your search
@@ -1687,6 +1687,27 @@ fn host_texture(
|
||||
Type: D3D12_HEAP_TYPE_DEFAULT,
|
||||
..Default::default()
|
||||
};
|
||||
// A texture the title fills, whose every subresource is uploaded before
|
||||
// anything reads it: cut from a block (what the piece held before shows
|
||||
// in no texel).
|
||||
if fills(desc)
|
||||
&& d.sample_count <= 1
|
||||
&& clear_value.is_none()
|
||||
&& texture_layout(desc).is_some_and(|t| !t.planes[0].layout.desc.swizzle.xor())
|
||||
// SAFETY: the description has the host layout, as below.
|
||||
&& let Some(t) = unsafe {
|
||||
crate::pool::texture(
|
||||
&host.device,
|
||||
(&raw const d).cast(),
|
||||
D3D12_RESOURCE_STATES(crate::host::legal_for(d.flags, crate::host::texture_state(state)) as i32),
|
||||
)
|
||||
}
|
||||
{
|
||||
crate::host::name(&t, || {
|
||||
format!("texture {}x{} f{} flags {:#x} (in a block)", d.width, d.height, d.format, d.flags)
|
||||
});
|
||||
return Some(t);
|
||||
}
|
||||
let mut texture: Option<ID3D12Resource> = None;
|
||||
// SAFETY: the description has the host layout (checked size, same
|
||||
// fields); the out pointer is ours.
|
||||
|
||||
Reference in new issue
Block a user