Bakes take what is due now first; textures that change unnoticed are looked at each frame; placed textures over unlike targets said
VICTORY_RECHECK_SOON=0: after four frames, as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
8d79927a80
commit
7130d521d7
2 files changed
+52
-8
No files matched your search
@@ -1430,6 +1430,30 @@ pub(crate) fn alias_of(this: This) -> Option<This> {
|
||||
&& o.desc.flags & DEPTH == 0
|
||||
&& target_format(o.desc.format) == o.desc.format
|
||||
&& element(o.desc.format).is_some_and(|e| e.1 == 1 && Some(e) == element(r.desc.format));
|
||||
if !same && r.desc.sample_count <= 1 {
|
||||
// What shaders wrote there is on the card in the other texture; this
|
||||
// one is filled from title memory, which they never reached. Each
|
||||
// kind of pair is said once.
|
||||
static SAID: std::sync::Mutex<std::collections::BTreeSet<[u32; 6]>> =
|
||||
std::sync::Mutex::new(std::collections::BTreeSet::new());
|
||||
let pair = [
|
||||
r.desc.width as u32,
|
||||
r.desc.height,
|
||||
r.desc.format,
|
||||
o.desc.width as u32,
|
||||
o.desc.height,
|
||||
o.desc.format,
|
||||
];
|
||||
let mut said = SAID.lock().unwrap_or_else(|e| e.into_inner());
|
||||
if said.len() < 64 && said.insert(pair) {
|
||||
tracing::warn!(
|
||||
view = ?this,
|
||||
texture = ?other,
|
||||
"a placed texture lies where a texture the host writes does, and is not like it (width, height, format of each): {pair:?}, levels {} and {}, layers {} and {}",
|
||||
r.desc.mip_levels, o.desc.mip_levels, r.desc.depth_or_array_size, o.desc.depth_or_array_size
|
||||
);
|
||||
}
|
||||
}
|
||||
same.then_some(other)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user