startup-runtime: decode BCPack DirectStorage requests instead of zero-filling #1132

Closed
opened 2026-11-24 01:45:27 +00:00 by denn0x · 2 comments
denn0x commented 2026-11-24 01:45:27 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T01:45:27Z.


Problem

The DirectStorage stand-in completes BCPack requests with zero-filled destinations, so those textures are blank.
The repository already has BCPack prefix and mip-tail research (tests/bcpack_check.py); the stand-in does not use it.

Done when

BCPack requests are decoded (or a measured subset is), covered by a source-built fixture, and the shortcut log line
is removed for the decoded cases.

Context: docs/startup-runtime.md (#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572712448 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1139). Originally posted by [denn0x](https://github.com/denn0x) on 2026-11-24T01:45:27Z. --- ## Problem The DirectStorage stand-in completes BCPack requests with zero-filled destinations, so those textures are blank. The repository already has BCPack prefix and mip-tail research (`tests/bcpack_check.py`); the stand-in does not use it. ## Done when BCPack requests are decoded (or a measured subset is), covered by a source-built fixture, and the shortcut log line is removed for the decoded cases. Context: `docs/startup-runtime.md` (#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:50:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:36:05Z.


I’m tracing the existing BCPack format evidence against the startup queue. I’ll publish a byte-exact queue fixture for any independently established form, with a malformed-input control. In the meantime, source-built encoder/decoder pairs with a pinned revision, license and expected block bytes would help extend the covered forms.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120303921 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1139#issuecomment-7120303921). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T02:36:05Z. --- I’m tracing the existing BCPack format evidence against the startup queue. I’ll publish a byte-exact queue fixture for any independently established form, with a malformed-input control. In the meantime, source-built encoder/decoder pairs with a pinned revision, license and expected block bytes would help extend the covered forms.
R0Y00 commented 2026-11-24 11:02:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T10:08:58Z.


#1336 is on main at 8d1c18cf. The queue now writes decoded BC1 and BC7 bytes and records “bcpack decoded” for those requests. The source-built Release tests cover exact bytes, including BC7 modes 1 and 6, unchanged output on a wrong destination size, and a valid request after the failure. That meets this issue's measured-subset criterion. Unhandled formats still use the documented fallback. The observed loading failures remain open in #1198.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7128382188 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1139#issuecomment-7128382188). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T10:08:58Z. --- #1336 is on main at 8d1c18cf. The queue now writes decoded BC1 and BC7 bytes and records “bcpack decoded” for those requests. The source-built Release tests cover exact bytes, including BC7 modes 1 and 6, unchanged output on a wrong destination size, and a valid request after the failure. That meets this issue's measured-subset criterion. Unhandled formats still use the documented fallback. The observed loading failures remain open in #1198.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#1132
No description provided.