Commit Graph

2880 Commits

Author SHA1 Message Date
aa2988cc55 rdna2spirv: typed buffer loads read the format's byte size from one table
buffer_load_format with a run-time V# format picked the element size twice per load through a select chain over
all of FORMATS (dwords spanned, and the bounds-check size): about 150 of the ~390 instructions a load cost. The sizes
are now one Private constant array, %fmt_size_tab (128 entries, 0 for a code FORMATS does not decode), read once
per use; a tbuffer's fixed format still folds at translate time. Same results: an unknown format loads one dword
and bounds-checks 4 bytes, as before.

indirect_diffuse_lighting's ScreenProbes_ActivateProbes (3,281 such loads, the module NVIDIA's compiler failed on):
52.4 MB / 2.50 M ids -> 29.8 MB / 1.43 M ids under --wave64-emulate, 43.8 -> 29.4 MB native; passes spirv-val.
spirv_mini_interp reads OpConstantComposite and Private variables so the semantic tests run through the table.
Typed-buffer, image and d16 tests (383), the shader checks and both GPU suites (164/210, 195/210 W64) pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:08:57 -05:00
4c52ce27a6 Seven fixes from an outside contributor (sent as patches, applied without the author's name)
- rdna2spirv: declare each packed vertex input register once; a register whose elements disagree on the component
  type is refused (SHADER-644).
- runtime: a title's VirtualAlloc drops the console's MEM_GRAPHICS / MEM_TITLE type bits the host rejects (RT-217).
- runtime: XPersistentLocalStorageImpl is served from <overlay>\persistent with the package's 2048 MB quota
  (RT-219; layout from the public docs, not measured in a caller).
- runtime: G:\ names the package and T:\ a scratch folder in the overlay; paths under the configured folders and
  every path with no folders configured stay host paths (RT-218).
- winhttp_offline: header blocks and timeouts the host WinHTTP rejects are rejected the same way.
- cfg_structure.run: a limit of zero or less runs no blocks.
- shader_meta: an s_movk_i32 with a register operand and a float immediate beyond float32 are left unknown instead
  of raising.

Each comes with a test that fails on the old code. Conflicts with main resolved here (internal_dir() hides T:'s
folder; both file_system_test blocks kept).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:55:46 -05:00
dac28e6b19 Fix what the round-42 merges broke (tests and docs)
- shader_disasm: prune stale listings against every input, not the --skip-existing remainder (a resumed run
  deleted every listing it had just reused).
- progress_dashboard: a drive-letter path is never inside the repository off Windows (it printed user names);
  its own read_text helper is read_utf8, so the encoding check does not take it for pathlib's.
- Translator tests follow this round's rules: desc_lookup's BroadcastFirst in the typed-load condition walker;
  resinfo sizes are 0 past the last level and a 2D depth word is 0 (SHADER-388); SHADER-315 constant folding in
  the perm and i16 tests; #2089's structured wave64 emulation.
- test_semantic_translator_use: 57 oracle-only files merged before it are DEBT; test_spirv_tools_required is
  allowed (CI meta-test).
- Test fixes: image_fuzz fake writes the programs, preflight follows c506d00c's loader hint rule, feature_scan
  reads the first line of a pytest-decorated message, w64_graphics wording.
- docs: rows merged again in design.md, README.md, d3d12_vulkan.md; GameInput table rebuilt from #3172's rows;
  orphan rows in models.md and embedded_shaders.md; repeated bullets; anchors; a flag not on main.
- Repo rules: stdout guard on 14 programs; LF writes; csv lineterminator in bink_play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:14:54 -05:00
037e165bb2 Revert "Merge pull request #3006 from p3n1cillin"
This reverts commit 2657f443e2, reversing
changes made to 16572f2c03.
2026-11-22 16:14:22 -05:00
a66a71ffd3 Merge pull request #3318 from pmilewsskiedu-gif 2026-11-22 15:16:55 -05:00
3ce110a6af Merge pull request #3316 from shdann 2026-11-22 15:16:54 -05:00
7891ed4da3 Merge pull request #3309 from kapitche 2026-11-22 15:16:51 -05:00
ea508e6839 Merge pull request #3307 from Vonsek 2026-11-22 15:16:51 -05:00
58ac10b671 Merge pull request #3297 from kapitche 2026-11-22 15:16:47 -05:00
4389de85e0 Merge pull request #3282 from bobcatchris 2026-11-22 15:16:38 -05:00
924b6d56ba Merge pull request #3278 from jaybeebabageyus 2026-11-22 15:16:25 -05:00
e936b4a79f Merge pull request #3277 from kapitche 2026-11-22 15:16:25 -05:00
608f33552d Merge pull request #3273 from AwkGrep256 2026-11-22 15:16:23 -05:00
1f5a7c0fd0 Merge pull request #3272 from kotorvr 2026-11-22 15:16:23 -05:00
3218515c47 Merge pull request #3269 from shdann 2026-11-22 15:16:21 -05:00
9736662609 Merge pull request #3267 from kapitche 2026-11-22 15:16:21 -05:00
ee5f0ee5f5 Merge pull request #3264 from kapitche 2026-11-22 15:16:18 -05:00
2b53a241b1 Merge pull request #3262 from Kacper Serewis 2026-11-22 15:16:17 -05:00
5d8b04502a Merge pull request #3258 from HAMADA 2026-11-22 15:16:16 -05:00
e3b3a7367a Merge pull request #3257 from zGLados 2026-11-22 15:16:15 -05:00
f6d93ef060 Merge pull request #3249 from Jeremy Goldberg 2026-11-22 15:16:11 -05:00
9f27f18167 Merge pull request #3244 from HAMADA 2026-11-22 15:16:08 -05:00
e257e50a36 Merge pull request #3241 from bobcatchris 2026-11-22 15:16:06 -05:00
4c0e42b222 Merge pull request #3238 from HAMADA 2026-11-22 15:16:04 -05:00
7469979110 Merge pull request #3237 from shdann 2026-11-22 15:16:04 -05:00
467e417e09 Merge pull request #3231 from d7ommy
# Conflicts:
#	docs/design.md
2026-11-22 15:16:02 -05:00
b02467732a Merge pull request #3226 from jaybeebabageyus 2026-11-22 15:15:58 -05:00
d9e126b69f Merge pull request #3221 from Marco Luzzaro 2026-11-22 15:15:55 -05:00
2a787c6cee Merge pull request #3220 from smowlyy
# Conflicts:
#	docs/design.md
2026-11-22 15:15:55 -05:00
f0fa753a44 Merge pull request #3219 from bobcatchris 2026-11-22 15:15:51 -05:00
ba718cc685 Merge pull request #3218 from CLHelper
# Conflicts:
#	docs/design.md
2026-11-22 15:15:51 -05:00
d17c0975d2 Merge pull request #3215 from Leo Leahy 2026-11-22 15:15:47 -05:00
008b999657 Merge pull request #3213 from Leo Leahy 2026-11-22 15:15:46 -05:00
89fd6f2521 Merge pull request #3211 from sds-228 2026-11-22 15:15:44 -05:00
b71409cb64 Merge pull request #3207 from Kam471 2026-11-22 15:15:42 -05:00
d79b94edad Merge pull request #3205 from wxrrry 2026-11-22 15:15:41 -05:00
0f1bfb3ad8 Merge pull request #3200 from tibzejoker 2026-11-22 15:15:39 -05:00
af571fc8fb Merge pull request #3198 from bobcatchris 2026-11-22 15:15:38 -05:00
3f2fc71fea Merge pull request #3191 from Weslley Couto
# Conflicts:
#	docs/design.md
2026-11-22 15:15:35 -05:00
663a238009 Merge pull request #3185 from Marco Luzzaro 2026-11-22 15:15:31 -05:00
ed1b429be3 Merge pull request #3184 from Tayar 2026-11-22 15:15:31 -05:00
9b7f4f2829 Merge pull request #3181 from Leo Leahy 2026-11-22 15:15:29 -05:00
80d6e66cf6 Merge pull request #3179 from Leo Leahy 2026-11-22 15:15:29 -05:00
38c7a49562 Merge pull request #3178 from Leo Leahy 2026-11-22 15:15:28 -05:00
ee03e8695a Merge pull request #3177 from Leo Leahy 2026-11-22 15:15:28 -05:00
993dff588f Merge pull request #3176 from Marco Luzzaro 2026-11-22 15:15:27 -05:00
e5748d7384 Merge pull request #3173 from Marco Luzzaro 2026-11-22 15:15:26 -05:00
30757f16b6 Merge pull request #3171 from Marco Luzzaro 2026-11-22 15:15:24 -05:00
95e38c4e13 Merge pull request #3161 from Marco Luzzaro 2026-11-22 15:15:18 -05:00
61f9354713 Merge pull request #3160 from sds-228 2026-11-22 15:15:18 -05:00