Textures: SW_4KB_S for all uncompressed dictionary textures; volumes untiled in 3D #270
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/holdmysocks--SixNG!270
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/270/head"
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?
@holdmysocks on GitHub · 2026-11-25 13:17 UTC · original
holdmysocks:six-1-8byte→master· +53 −23 · 5 files · 6 commits · merged 2026-11-25 14:23 UTCFollow-up to PR 263 (merged).
After PRs 257 and 263, the remaining uncompressed texture-dictionary textures were still read as 16×16-element tiles: single-mip 1- and 8-byte textures, and volumes, which were read as plain 2D images.
Change
TexInfo.dimensionholds the header byte at +0x3E: 1 = 2D or array, 2 = cube, 3 = volume. Its meaning was read off the headers of every array, cube and volume in textures.rpf. It is serde-defaulted for old JSON.uncompressed_layoutnow covers every uncompressed texture:with_slices, so mip 0 is slice 0.gfx10::equation_3dgains the 4-byte pattern X0 Y0 Z0 Y1 X1 Z1 Y2 X2 Z2 Y3 (8×16×8 bricks). The bulk stores have no 4-byte volumes, so they are unaffected. The ttpf test that rejects unmeasured sizes now uses a 1-byte format.Checks on the install
mip0_linearwith maximum error 0. Read as a 2D image it was nowhere near the identity. The 256×16 RGBA16 float identity LUT is exact within half-float rounding. For 8-byte textures of up to 16 rows, 16×16 tiles and SW_4KB_S give the same addresses.cargo check --workspace --all-targetsandcargo test -p sixng-core -p sixng-gui --releasepass.