Commit Graph

580 Commits

Author SHA1 Message Date
7c0cd1ba6a Merge pull request #3669 from WALID1618Y 2026-11-22 17:03:19 -05:00
53ce9b6c7f Merge pull request #3554 from ezbyDev 2026-11-22 17:02:40 -05:00
fbacc54b1f Merge pull request #3515 from Catskan 2026-11-22 17:02:26 -05:00
7fd5e7614f Merge pull request #3455 from Sebastião
# Conflicts:
#	docs/design.md
2026-11-22 17:02:07 -05:00
eab0ac15ef Merge pull request #3442 from Vonsek 2026-11-22 17:02:03 -05:00
7c403b8602 Merge pull request #3423 from Shrey Ratna 2026-11-22 17:01:56 -05:00
d5000c56e4 Merge pull request #3363 from romainveurrier 2026-11-22 17:01:41 -05:00
f040a95422 Merge pull request #3354 from Matheus Gomes 2026-11-22 17:01:38 -05:00
1ae8cd443f Merge pull request #3353 from Vonsek 2026-11-22 17:01:38 -05:00
d2baed39b4 Merge pull request #3344 from DanielDeGiorgio 2026-11-22 17:01:32 -05:00
fdeed20d1c Merge pull request #3338 from kapitche 2026-11-22 17:01:30 -05:00
9631e2c8de Merge pull request #3333 from DanielDeGiorgio 2026-11-22 17:01:28 -05:00
6fde08a9bd Merge pull request #3076 from Eng-Meshari 2026-11-22 17:00:32 -05:00
8860b36ebf Merge pull request #3004 from Moaaz Gewili
# Conflicts:
#	docs/design.md
#	docs/testing.md
2026-11-22 17:00:22 -05:00
5bed65414b Merge pull request #2965 from Vonsek 2026-11-22 17:00:15 -05:00
4ec7c06c69 Merge pull request #2697 from Vonsek 2026-11-22 16:59:35 -05:00
0ec32fe027 Merge pull request #1938 from undeadhuman37 2026-11-22 16:58:55 -05:00
09941b8cf5 vs_input_survey: classify ds_ordered_count as returning, drop redundant ds_store, expand RBW tests 2026-11-22 22:32:13 +01:00
9d1225a288 vs_input_survey: fix read-before-write operand classification for dual-dst, v_cmp, lists, stores, and atomics 2026-11-22 22:16:14 +01: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
b2d00d240f Document the report BOM and use system PowerShell in its test 2026-11-22 22:09:15 +01:00
ef083e1b45 Accept empty carve data areas in coverage reports 2026-11-22 22:08:12 +01:00
8e28bd70bf Merge main into gpu-far-branch (#2697)
docs/design.md
runtime/test/shaders/check.py
scripts/run_gpu_tests.py

AI-assisted.
2026-11-22 21:57:04 +01:00
fc3bda5cd7 scripts: start _build.cmd with cmd /s /c ""path"" so & and ^ survive
build_runtime.ps1 and build_llvm_mc.ps1 started the generated batch with
`cmd.exe /c "path"`. cmd.exe drops those quotes when the path holds a
special character such as & or ^, then runs only the part before it, so a
checkout (build_runtime) or -Temp/%TEMP% (build_llvm_mc) in a folder like
`a & b` failed at once with "C:\...\a is not recognized". With /s and a
second pair of quotes, cmd.exe strips only the outer pair.

tests/test_build_batch_launch.py takes each script's launch line as written
and runs it on a stub batch in folders named plain, `a & b`, `a&b`, `x^y`,
`sp (x)` and `東京 & co`: the stub must run and its exit code (0 and 7) must
come back. It also checks that the old form fails there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:53:58 +01:00
01763ffeeb Merge main into image-sample-c (#2965)
tools/rdna2spirv.py

AI-assisted.
2026-11-22 21:53:14 +01:00
c9ab456da2 build_llvm_mc: check out libc, which LLVM 23 needs to configure
LLVM 23's llvm/CMakeLists.txt stops with "LLVM libc is not found" when the
sparse checkout leaves out libc. Add it to the checkout, and to a source a
failed LLVM 23 run of the old script left in -Temp, so the same -Temp works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:45:17 +01:00
0db72c42a5 fix(tests): require full Mandelbrot readback in the GPU suite
The oracle accepts arbitrary square frames, so an empty or one-pixel readback passed a draw that was expected to produce 4096 pixels.
2026-11-22 21:32:26 +01:00
95f822d11b Add gdk_runtime_calls: list the runtime classes and slots an image calls through xgameruntime.lib
A title linked with xgameruntime.lib imports no GDK function: each thunk asks
QueryApiImpl (through a helper) for a class and interface, calls one vtable
slot and releases the object. tools/gdk_runtime_calls.py finds those thunks in
a PE without running it: the helper a known id's lea feeds, every call to it,
the class id in rcx and the interface id in rdx (unknown ids reported as such,
calls whose ids it can't read listed) and each slot called up to Release (CFG
dispatch, call [r+disp8/disp32], any vtable register, register copies
followed), scoped by .pdata or a byte window. Slots are named from
tools/gdk_runtime_classes.json (ids, inheritance and method order of
xgameruntime-docs, GPL-3.0, facts only; made by
tools/gen_gdk_runtime_classes.py). The report flags classes
runtime/shims/xgameruntime.cpp serves, estimates argument counts, says whether
anything in the image reaches each thunk, and lists known ids no thunk uses.
Text by default, --json, --out DIR.

Measured on the package: XCurl.dll and the four classes read by hand in
libHttpClient.GDK.dll match the slots in docs/runtime_imports.md.
libHttpClient holds the ids of 23 of the 24 documented classes (not
XGameActivationImpl's) and thunks for all 23, but is incrementally linked and
references only 15 of its 404 thunks (XThreadingImpl, XErrorImpl); the
module table now says so instead of "24 of 24, five called through thunks".
scripts/first_look.ps1 runs the tool on the executable, and the day-one
checklist in docs/design.md points at its report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:28:05 +00:00
6e083c17d9 rdna2spirv, run_gpu_tests: folders outside the ANSI code page reach the native tools
On Windows, spirv-as, spirv-val and the GPU test programs read their command line in the ANSI code page, so a folder
name with a character outside it (a Cyrillic or CJK user name, as under %TEMP%) reached them as '?' and every shader
failed with "file does not exist": run_gpu_tests.py's default work folder broke for such users, and so did
make_game.py's shaders stage under such a work folder.

- assemble_spirv pipes the .spvasm into `spirv-as -` and runs both tools in the output folder with the staging file's
  bare name, so no path reaches them.
- run_gpu_tests.py runs the suite in the work folder's 8.3 short name when its path doesn't fit the code page, and
  stops with one error line when the volume keeps no short names.
- tests/test_native_tool_paths.py: 8 tests with a private-use character in the folder name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:57:30 +05:30
056661d125 xgameruntime: serve XUserImpl (offline local user) through QueryApiImpl
A GDK title links the XUser* functions statically (xgameruntime.lib); each
thunk asks QueryApiImpl for XUserImpl and calls one slot with the function's
arguments after `this` (docs/runtime_imports.md). QueryApiImpl refused the
class, so XUserAddAsync, the call a title makes at boot before nearly
anything else, could not succeed.

runtime/shims/xgameruntime_user.cpp serves it, in its own file so the other
class PRs touching xgameruntime.cpp only meet it at one line:

- ids and slot order from xgameruntime-docs (facts only), signatures, enum
  values and E_GAMEUSER_* codes from the public GDK reference;
- IXUserImpl..IXUserImpl6 answer with one 50-slot vtable, IXUserGamertagImpl
  (XUserGetGamertag) with a second;
- one offline user, always signed in: XUserAddAsync (silent or not;
  AllowGuests with AddDefaultUserSilently is E_INVALIDARG), fixed ids,
  FindUserById/ByLocalId, Duplicate/Close/Compare, not a guest, adult, every
  privilege, ResolvePrivilegeWithUi, AddByIdWithUi, IsStoreUser, change-event
  tokens; gamertag from LEONIDA_GAMERTAG, "Player" otherwise;
- tokens, gamer picture, MSA tokens and resolve-issue fail synchronously
  before starting; no sign-out deferral; private and PC-only slots log once.

xgameruntime_user_test (40 checks) drives every served slot; a second ctest
run checks LEONIDA_GAMERTAG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:21:21 +01:00
0808dfa96e Tests for SHADER-328: constant SGPR offsets in SMEM loads, CPU and GPU
The 64-bit fold itself landed with #1948. This adds what #1938 still carries:
two semantic tests (a constant sOFF of -4 is out of bounds, not a 32-bit
wrap; a constant sOFF of 2^20 is not sign-extended) and the GPU fixture
cs_smem_sconst_off. Its run-time sOFF is now in range (4): an out-of-range
run-time sOFF made llvmpipe do the guarded load and segfault (review on

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:17:58 +03:00
a66a71ffd3 Merge pull request #3318 from pmilewsskiedu-gif 2026-11-22 15:16:55 -05:00
b9ed33b241 Merge pull request #3263 from Dominik 2026-11-22 15:16:18 -05:00
94d402f410 Merge pull request #3250 from desamodeth 2026-11-22 15:16:11 -05:00
35f28b2f18 Merge pull request #3247 from Kam471 2026-11-22 15:16:09 -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
1a6ec4a7bd Merge pull request #3214 from Leo Leahy 2026-11-22 15:15:46 -05:00
220b786966 Merge pull request #3195 from Max Hurst 2026-11-22 15:15:37 -05:00
0ef8a7f9a0 Merge pull request #3076 from Eng-Meshari 2026-11-22 15:14:36 -05:00
83047c2ea4 Merge pull request #3074 from Wasler
# Conflicts:
#	docs/design.md
2026-11-22 15:14:36 -05:00
012907537b Merge pull request #3029 from frnandoooo 2026-11-22 15:14:10 -05:00
6443233376 Merge pull request #2975 from frnandoooo 2026-11-22 15:13:44 -05:00
ee44e79112 Merge pull request #2953 from Vonsek 2026-11-22 15:13:32 -05:00
b84de36e63 fix(tools): count partitioned wave64 benchmark segments
Large translated shaders dispatch through inner switches, so their segment diagnostics were missing from benchmark output.
2026-11-22 21:13:08 +01:00
507657c285 fix(ci): reject malformed commands and properties in CTest listings
Validate test rows before mapping a Wine prefix. Accept a missing command for an unbuilt target, while rejecting invalid arguments or property records before launching any tests.
2026-11-22 17:12:32 -03:00
f9ccf445f1 fix(no-game-data): read the PE signature wherever e_lfanew points 2026-11-22 23:11:01 +03:00
81247c4966 Merge pull request #2515 from DanielDeGiorgio 2026-11-22 15:10:57 -05:00
fba76833e3 Write metadata conversion failure reports as UTF-8 2026-11-22 21:10:52 +01:00
bda3ae4b82 Merge pull request #2399 from AAyberkU 2026-11-22 15:10:41 -05:00