Preserve placed texture bytes for CPU row reads #157
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!157
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-157"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@rtho782 on GitHub · 2026-12-05 19:54 UTC · original
rtho782:fix/preserve-placed-row-bytes→main· +104 −20 · 2 files · 1 commits · merged 2026-12-05 20:42 UTCA Windows crash dump showed the title stopping at
0x14404D956while reading one row of eightu32s from a 13-wide loaded texture. The reader consumes the original placed bytes, including padding and its row terminator. Reconstructing that prefix from a GPU image can fail after the placement memory has been released.This change retains the prefix that the row reader can address while the placement is available. Its size is bounded by both the original allocation and four bytes per unit of texture width. A successful GPU resource-object creation invalidates the snapshot before publishing the object. Subsequent reads follow the existing reconstruction path.
Two synthetic regression tests exercise the production reader. One requests the 32-byte row after the original storage is overwritten and verifies that the bytes remain valid across handle release. The other requests a full row from a short placement containing an early terminator and verifies the returned length and contents. Both run without game assets or a GPU image.
Tested on Windows x64 with
cargo test --release --locked --workspace. The exact gameplay route from the original report is unknown.During a Series S gameplay replay, a locally instrumented build returned all 32 requested bytes from the retained placement and continued rendering. That request matches the width and row size from the original dump. The asset identity and exact route could not be verified.