upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-27 15:04:12 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-27 15:04:12 -0500
commitf80377682590988d7df180a5485abdb19faa1f2f (patch)
treefe5b3871199c7d4acabc5c135bf585b1cafda5c1 /runtime/src/xma2_decoder.cpp
parent9c31718bc2b5be680a9021cefa1cc858012915d7 (diff)
Descriptor sizes: a slot that shows nothing reads as one texel, not 65,536 (LEONIDA_NULL_VIEW_SIZE=0: as before)
Where a program computes a texture's size from its descriptor's dwords, the translator fills the fields from the host view's dimensions less one (Lower::descriptor_data). A slot that shows nothing (a null view: a texture not there yet, a view the host refused) reports no texels and no levels, and 0 - 1 filled every bit: 65,536 texels each way, sixteen levels and a type field of all ones. The console's empty descriptor holds 0 in those fields, which reads as one texel and one level. Each count is now taken as at least 1 before the one is taken off. A view that shows a texture reads as before. After brcly/TuxBox 0a5ebfa (Apache-2.0), which found the same in its own translator ("a null view reports a width and height of zero, which wrapped to 65536") and checks it on the card. LEONIDA_NULL_VIEW_SIZE=0 gives the fields as before; it is read by the translator, so it is part of the shader cache key. What it changes in the title is not known: a program that divides by such a size or walks its levels did so with the wrong numbers. Test: emit::size_tests::the_size_of_a_null_texture_is_one_texel (the hardware card and WARP both report nothing for a null view: 1 x 1 now, 65,536 x 65,536 with the switch off; a texture of 5 x 3 unchanged); the test host gains View::NullTexture. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions