docs(shader): record the measured cube-T# store formats #16491
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16491"
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?
Imported from boykopovar/AnyPS5. Originally posted by brumskysb on 2026-11-06T22:07:18Z.
What
Records the remaining store formats of the "2D accesses through a cube T#" entry. Its gap clause read "Other formats, and Crimson Desert's own 256x256 tiled descriptor, are not measured"; four more formats are now measured, and the tiled descriptor stays unmeasured with the entry still saying so.
On gfx1036 (driver 31.0.22044.1), stores of
8_8_8_8_UNORM(56),8_8_8_8_SNORM(57),16_16_FLOAT(29) and32_SINT(21) through a cube T# land on the T#'sBASE_ARRAYface and change no other byte of the 64 KiB backing, atBASE_ARRAY0 and 6. Two observations go in with them, both taken from the same runs:dmask:0x1store writes the components indmaskand zeroes the rest of the texel rather than leaving them —8_8_8_8_UNORMtexel 1 reads0x00000004on a0xcdbacking, G/B/A zero;32_SINTstores0x3f800000for a value of1.0, the register dword unchanged, so no conversion happens on the store path.Evidence (scripts, every dump, the full step record): https://gist.github.com/brumskysb/0f2d44c209a50bfbfd23f2a1ac451e86
Tested
gfx1036, driver 31.0.22044.1, Windows 11 build 26300. Harnesstools/hw-oracle, wave32, 64 rows per dispatch, 8x8 image at a 256-byte row pitch, T# type nibble 11 (Cube),DEPTH11.BASE_ARRAY0, the same six atBASE_ARRAY6, and a determinism repeat.16_16_16_16_FLOATtexels — with 0 dwords outside the face and 0 face dwords untouched, at both base arrays.8_8_8_8_UNORMre-run from scratch (16 fresh dispatches), 16,384 dwords, 0 differ. The 32_FLOAT control repeats identically too.Notes
Corrected after review, before merge. An independent read of this entry found the first version overreached: "a 32-bit store is raw" was disprovable by this same sentence's own
8_8_8_8_UNORMresult, thedmaskclaim was demonstrated for two formats atBASE_ARRAY0 only,wave32was unstated after a preceding sentence that says "wave32 and wave64", and the console exclusion was missing. The sentence now states the32_SINTfinding as the observation it is and scopes the rest to what was measured.The entry is 3,274 characters, over the 1,000-character guideline, so the
debt-lengthwarning is expected. The growth is +457 on an entry that was already 2,817 inmain; nothing was trimmed to fit, and no measured condition was removed. Splitting this entry is a separate question from closing its gap clause.Two model errors were caught by the measurement and are recorded in the gist rather than hidden:
32_SINTdoes not convert on the store path, and an 8-byte texel makes the face span 128 dwords, not 64.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attached to this PR)