Bake sources: views over host-written textures are not failures

The 6 to 18 bake sources a run still said were "not brought up to date:
no upload was recorded" (runs of 2026-11-26 18:02-18:51) were all views
the title places, as R9G9B9E5, in the memory of R32_UINT textures the host
writes (1280x720 and 2304x576 lighting tables, resource::alias_of).
`readable` brings those up to date by a copy on the host, not by an
upload, so no staging buffer was made. They are now copied (on the bake's
list) and published like other textures the host writes, and counted as
current or published. Real failures still say why.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
readmet3xt-labandClaude Opus 5.5 committed 2026-11-26 19:11:27 +05:30
1 parent 02b255d25b
commit 2983a71161
1 file changed
+13
+13
View File
@@ -2523,6 +2523,19 @@ impl State {
bake_source_failed(index, &view, "the host has no copy of it (refused)");
continue;
};
// A view placed in the memory of a texture the host writes, in
// another format (`crate::resource::alias_of`): `readable`
// copies that texture's texels into it on the host, no upload.
// (Lighting tables read as R9G9B9E5: 6 to 13 sources a run were
// counted as failed for want of an upload.)
if crate::resource::alias_of(resource).is_some() {
readable(list, ResourceType::Srv, &view);
n[if shown { 2 } else { 5 }] += 1;
if !shown {
sync.publish.push((index, handle, key));
}
continue;
}
if !crate::texture::title_written(texture) || crate::texture::host_wrote(resource as usize) {
// A texture the host renders to, writes or copied into: its
// contents are the host's own; the slot only has to show it.