Commit Graph

4826 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
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
58e5ba3c83 Fix what the round-42 merges broke (build and shader checks)
- replay_cpu_bench: Draw::vertex_buffers is a fixed array by input slot since D3D-289; set slots 0 and 1.
- test_shader_checks: TOTAL counts the standalone cs_fmt_d16_xyz / cs_heap_init dumps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:31:33 -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
3ce110a6af Merge pull request #3316 from shdann 2026-11-22 15:16:54 -05:00
e16aa5fd32 Merge pull request #3314 from Shrey Ratna 2026-11-22 15:16:53 -05:00
7e1f64311d Merge pull request #3312 from klarnet2009 2026-11-22 15:16:52 -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
e4142cb3d6 Merge pull request #3296 from Mulkku 2026-11-22 15:16:47 -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
a20ebe99d0 Merge pull request #3281 from kapitche 2026-11-22 15:16:37 -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
e8cc0152c3 Merge pull request #3271 from kapitche 2026-11-22 15:16:22 -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
6f01e2d6ea Merge pull request #3265 from wxrrry 2026-11-22 15:16:19 -05:00
ee5f0ee5f5 Merge pull request #3264 from kapitche 2026-11-22 15:16:18 -05:00
b9ed33b241 Merge pull request #3263 from Dominik 2026-11-22 15:16:18 -05:00
2b53a241b1 Merge pull request #3262 from Kacper Serewis 2026-11-22 15:16:17 -05:00
53a332ca51 Merge pull request #3261 from TheHoracio 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
94d402f410 Merge pull request #3250 from desamodeth 2026-11-22 15:16:11 -05:00
f6d93ef060 Merge pull request #3249 from Jeremy Goldberg 2026-11-22 15:16:11 -05:00
35f28b2f18 Merge pull request #3247 from Kam471 2026-11-22 15:16:09 -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
fea373d6c4 Merge pull request #3223 from Marco Luzzaro 2026-11-22 15:15:56 -05:00
1057331f91 Merge pull request #3222 from desamodeth 2026-11-22 15:15:56 -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
1a6ec4a7bd Merge pull request #3214 from Leo Leahy 2026-11-22 15:15:46 -05:00
008b999657 Merge pull request #3213 from Leo Leahy 2026-11-22 15:15:46 -05:00