From 2983a71161e8d5320ea9e453dcb5d283ff257384 Mon Sep 17 00:00:00 2001 From: readmet3xt-lab <238408149+readmet3xt-lab@users.noreply.github.com> Date: Thu, 26 Nov 2026 19:11:27 +0530 Subject: [PATCH] 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 --- crates/victory-gpu/src/draw.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/victory-gpu/src/draw.rs b/crates/victory-gpu/src/draw.rs index 9f2bb07..cc62dd5 100644 --- a/crates/victory-gpu/src/draw.rs +++ b/crates/victory-gpu/src/draw.rs @@ -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.