VIctory e29391f, 13185f5 and 4fc9d70, by hand

16-bit interpolations write the half op_sel picks, with omod and clamp; the
device says whether it was removed; detiling ends with its staging buffer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 01:12:28 -06:00
1 parent adb608af1f
commit 38410b88ab
4 files changed
+157 -2

No files matched your search

+5 -1
View File
@@ -1243,7 +1243,11 @@ impl Staging {
let (mip, slice) = (i as u32 % self.mips, i as u32 / self.mips);
let f = footprint.Footprint;
let pitch = f.RowPitch as usize;
let len = pitch * rows as usize * f.Depth as usize;
// The last row of the last subresource is not padded to its pitch
// (VIctory 4fc9d70): to the end of the buffer at most, where a
// block of the pool goes on with another texture's.
let len = (pitch * rows as usize * f.Depth as usize)
.min(self.bytes.saturating_sub(footprint.Offset) as usize);
// SAFETY: the subresource's part of the mapped staging buffer.
let linear = unsafe {
std::slice::from_raw_parts_mut(self.data.add(footprint.Offset as usize), len)