Textures: untile single-mip 2/4-byte textures as SW_4KB_S #257
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!257
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/257/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 11:49 UTC · original
holdmysocks:six-deswizzle→master· +23 −13 · 3 files · 1 commits · merged 2026-11-25 12:11 UTCSingle-mip textures with 2- or 4-byte elements are stored in Gfx10 SW_4KB_S blocks.
mip0_linearuntiled them as 16×16-element tiles, so they decoded with stripes and scrambled blocks in PNG export, DDS export and the viewer. Affected textures include R16 height maps, RGBA8 tint palettes and shore profiles, and BGRA8 tiles.Change
mip0_linearuntiles single-mip, uncompressed, 2/4-byte textures withgfx10::Layout(SW_4KB_S).Checks on the install
cargo check --workspace --all-targetsandcargo test -p sixng-core -p sixng-gui --releasepass.The 13 textures where SW_4KB_S is not the smoothest layout
Each was compared side by side as decoded before this change (16×16 tiles) and after (SW_4KB_S).
lightanimintensity0000blue_noise_64rope_anim_deg_twinkle_02rope_anim_twinkle_01iriscausticsdirwindnoisevolumecurlnoise,curlnoisecpuocean_sim_gaussian_noiseshore_wave_placement_set1×2 (levels, minigame pack)watersystemheightmap×2 (levels, minigame pack)In short, 4 are constant tiles, 4 are pure noise where no layout looks better, and 3 look correct with this change.
rope_anim_twinkle_01is regular either way.iriscausticsdiris the only one that looks off, and it was off before too.