upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/test_tex_headers.py
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 16:55:04 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 16:55:04 -0500
commitdf92abca8ee2a8f9093efea7fcaa4dadc3ddaebc (patch)
tree97ef8f95544fe263049d3f7360823f16100de209 /tests/test_tex_headers.py
parent49a0b69fcdb80db1f2a44ce7ca0ab8dfdec1e403 (diff)
parente5a7c8942678b323f655939c81f5d8855d20c248 (diff)
Merge main e5a7c8942 into shadow-aliased-guard (#1867)
One conflict, runtime/README.md: this branch rewrote the LEONIDA_SHADOW_ALIAS_MS row, main (#2163) added the LEONIDA_SHADOW_KEEP row after it. Both rows kept; the keep row's "aliased" now reads "aliased while they can't be guarded at every address", since aliased pages are no longer copied without a sign of a write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_tex_headers.py')
-rw-r--r--tests/test_tex_headers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_tex_headers.py b/tests/test_tex_headers.py
index 836f55ca2..2b0af6f29 100644
--- a/tests/test_tex_headers.py
+++ b/tests/test_tex_headers.py
@@ -102,6 +102,12 @@ class TestGFX10FormatMapping(unittest.TestCase):
102 with self.assertRaises(ValueError): 102 with self.assertRaises(ValueError):
103 tex_headers.dxgi_to_gfx10(99999) 103 tex_headers.dxgi_to_gfx10(99999)
104 104
105 def test_shared_exponent_format_is_indexed_and_sized(self):
106 # dds_png decodes DXGI 67; without these entries the indexer drops it and tex_export --png never sees it.
107 self.assertEqual(tex_headers.DXGI[67], "R9G9B9E5_SHAREDEXP")
108 self.assertEqual(tex_headers.FMT_INFO[67], (4, 1))
109 self.assertEqual(tex_headers.calc_mip_level_bytes(3, 2, fmt=67), 24)
110
105 def test_dxgi_dict_integrity(self): 111 def test_dxgi_dict_integrity(self):
106 for dxgi_id, name in tex_headers.DXGI.items(): 112 for dxgi_id, name in tex_headers.DXGI.items():
107 self.assertIsInstance(dxgi_id, int) 113 self.assertIsInstance(dxgi_id, int)