Commit Graph

1911 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
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
4a78970d85 Revert 33 oracle-only semantic tests merged this round
They model the instruction in Python and never run tools/rdna2spirv.py, so they pass whatever the translator does
(tests/test_semantic_translator_use.py, added this round, rejects them). PRs: #2335 #2754 #2759 #2761 #2788 #2793 #2797 #2800 #2803 #2804 #2814 #2816 #2819 #2824 #2825 #2829 #2834 #2835 #2837 #2840 #2845 #2850 #2854 #2856 #2867 #2868 #2877 #2883 #2889 #2892 #2895 #2896 #2897

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:06:12 -05:00
fbba125b20 Merge pull request #3324 from x2Tweek 2026-11-22 15:16:59 -05:00
a66a71ffd3 Merge pull request #3318 from pmilewsskiedu-gif 2026-11-22 15:16:55 -05:00
7891ed4da3 Merge pull request #3309 from kapitche 2026-11-22 15:16:51 -05:00
a5d95ef895 Merge pull request #3289 from jaybeebabageyus 2026-11-22 15:16:42 -05:00
4389de85e0 Merge pull request #3282 from bobcatchris 2026-11-22 15:16:38 -05:00
53a332ca51 Merge pull request #3261 from TheHoracio 2026-11-22 15:16:17 -05:00
467e417e09 Merge pull request #3231 from d7ommy
# Conflicts:
#	docs/design.md
2026-11-22 15:16:02 -05:00
2a787c6cee Merge pull request #3220 from smowlyy
# Conflicts:
#	docs/design.md
2026-11-22 15:15:55 -05:00
3f2fc71fea Merge pull request #3191 from Weslley Couto
# Conflicts:
#	docs/design.md
2026-11-22 15:15:35 -05:00
8834d075a1 Merge pull request #3150 from Jeremy Goldberg 2026-11-22 15:15:13 -05:00
0302cc21d6 Merge pull request #3141 from Vadson159 2026-11-22 15:15:05 -05:00
e932af2698 Merge pull request #3137 from kapitche
# Conflicts:
#	docs/design.md
2026-11-22 15:15:04 -05:00
79c4a1470c Merge pull request #3120 from Luiz Neves 2026-11-22 15:14:57 -05:00
a3892a127d Merge pull request #3117 from d7ommy
# Conflicts:
#	docs/design.md
2026-11-22 15:14:56 -05:00
f84b63cbb6 Merge pull request #3095 from SweatierKey 2026-11-22 15:14:46 -05:00
a1c4e479e7 Merge pull request #3091 from Etoile-Bleu 2026-11-22 15:14:45 -05:00
521ba3b1f6 Merge pull request #3070 from Vonsek 2026-11-22 15:14:33 -05:00
03290f1a2e Merge pull request #3057 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 15:14:26 -05:00
d5493d76f0 Merge pull request #3044 from Ritolino 2026-11-22 15:14:20 -05:00
73697f1edf Merge pull request #3041 from Tim Elery
# Conflicts:
#	docs/design.md
2026-11-22 15:14:19 -05:00
d0b036f078 Merge pull request #3040 from whoalin1 2026-11-22 15:14:17 -05:00
954f7129ba Merge pull request #3034 from Ritolino 2026-11-22 15:14:14 -05:00
fec8aa5211 Merge pull request #3032 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 15:14:14 -05:00
23a944ce8c Merge pull request #3031 from lumenpearson
# Conflicts:
#	docs/design.md
2026-11-22 15:14:12 -05:00
25f8966610 Merge pull request #3028 from Ritolino 2026-11-22 15:14:09 -05:00
60c94e16d5 Merge pull request #3022 from Ritolino 2026-11-22 15:14:07 -05:00
71e4b40038 Merge pull request #3007 from Kosmabb8 2026-11-22 15:14:00 -05:00
24b1fc2ce5 Merge pull request #3001 from JavierBlanco23 2026-11-22 15:13:56 -05:00
5ce98eac24 Merge pull request #2992 from tupacfan04 2026-11-22 15:13:52 -05:00
073bf19892 Merge pull request #2982 from eyyun 2026-11-22 15:13:48 -05:00
d929239267 Merge pull request #2978 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 15:13:46 -05:00
dee6dcabd3 Merge pull request #2971 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 15:13:41 -05:00
4516c8c401 Merge pull request #2940 from Kosmabb8 2026-11-22 15:13:23 -05:00
78f206b38b Merge pull request #2938 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 15:13:23 -05:00
36e7b3a778 Merge pull request #2933 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 15:13:19 -05:00
2946b75a62 Merge pull request #2932 from Mohamed-Leo 2026-11-22 15:13:18 -05:00
8120468bc3 Merge pull request #2929 from TheHoracio 2026-11-22 15:13:16 -05:00
03c40cdbf1 Merge pull request #2922 from kapitche
# Conflicts:
#	docs/design.md
2026-11-22 15:13:14 -05:00
c9250380aa Merge pull request #2915 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 15:13:09 -05:00
b822c8f40c Merge pull request #2901 from lumenpearson
# Conflicts:
#	docs/design.md
2026-11-22 15:13:00 -05:00
3f16fd9e32 Merge pull request #2897 from slopgobblercobbler 2026-11-22 15:12:57 -05:00
d2903c9b8e Merge pull request #2896 from slopgobblercobbler 2026-11-22 15:12:56 -05:00
c7d4df551d Merge pull request #2895 from slopgobblercobbler 2026-11-22 15:12:56 -05:00
1a4e870135 Merge pull request #2892 from slopgobblercobbler 2026-11-22 15:12:55 -05:00
85b2445bcc Merge pull request #2889 from slopgobblercobbler 2026-11-22 15:12:54 -05:00
cc7070842d Merge pull request #2885 from Kosmabb8 2026-11-22 15:12:51 -05:00
91ba270e12 Merge pull request #2883 from slopgobblercobbler 2026-11-22 15:12:50 -05:00