Commit Graph

620 Commits

Author SHA1 Message Date
5987f76295 Merge pull request #2909 from Jolymmiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:23 -05:00
7a1e3193ea Merge pull request #2717 from Wasler
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:01 -05:00
3732d3976c Merge pull request #2646 from Dandasma
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:49 -05:00
726cb9c697 Merge pull request #2494 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:05:43 -05:00
2a7d93ebb7 Merge pull request #2220 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:25 -05:00
dcd6063eeb Merge pull request #1760 from Luiz Neves
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:04 -05:00
6509ca2ce1 Merge pull request #1492 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:00 -05:00
2eb5669566 Merge pull request #837 from DANISBR1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:04:57 -05:00
db34711519 Merge pull request #580 from SirAmong
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:04:53 -05:00
7b7d73f890 run_gpu_tests: ps_m2_literal belongs to d3d12_m2_textured_test
#2887 added the fixture to the M2 build; with no entry in OTHER_HARNESS the GPU suite reported it as
"no checker defined".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:35:23 -05:00
be8570ace1 Merge remote-tracking branch 'origin/main' into triage-r43
# Conflicts:
#	docs/runtime_imports.md
#	runtime/CMakeLists.txt
#	runtime/shims/xgameruntime.cpp
#	runtime/test/xmem_test.cpp
#	tools/rdna2spirv.py
2026-11-22 22:12:50 -05:00
71d8f86853 Translator: v_permlane16/x16 FI=0 and BOUND_CTRL for source lanes off in EXEC (SHADER-74)
op_sel:[FI, BOUND_CTRL] decides what a lane gets when the lane it reads is off in EXEC (or absent from a
workgroup smaller than the wave): FI=1 reads its value, FI=0 keeps the destination (BOUND_CTRL=0) or writes 0
(BOUND_CTRL=1). Measured on RDNA2 (issue #374). The activity of the source lane is shuffled with absent lanes
redirected first, as ds_lane_read does, and the old destination is a plain load, as dst() does.
cs_w32_permlane_fi (GPU) and test_permlane_fi (CPU); the shuffle-count and destination-select controls of
test_valu_permlane16 follow the extra activity shuffle on the FI=0 path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:37:38 -05:00
6fedabb12d first_look.ps1: rebuild gta6rt.exe when it is older than the runtime sources
It built the loader only when runtime\build\gta6rt.exe was missing, so after a pull the day-one dry run used the
old binary and its shim to-do list described the old shim table, with no error. A loader older than any file under
runtime\src, runtime\shims or runtime\CMakeLists.txt is now rebuilt first (the copy on this machine was two days
behind main). tests/test_first_look_rebuild.py covers both cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:19:13 -05:00
e58a605118 GPU test cs_global_mem_ext: global/buffer atomics, 8/16-bit global stores, d16 loads
global_atomic_*, global_atomic_*_x2, buffer_atomic_*_x2 and the 8/16-bit
global stores and d16 loads were merged with semantic tests only.
cs_global_mem_ext.asm, laid out like cs_global_neg_offset (40 groups, one
thread, heap offsets as addresses), seeds a heap and stores eight words;
check.py (GLOBAL_OFFSET) and run_gpu_tests.py expect them.

tests/semantic/test_global_mem_ext_fixture.py runs the fixture on the
CPU against values computed in the test and checks both runners expect
the same words. test_shader_checks.py's fake harness answers every
GLOBAL_OFFSET entry.
2026-11-22 20:53:26 -03:00
d2e989c46e Merge main into valu-int-misc (#1492)
runtime/test/shaders/check.py
scripts/run_gpu_tests.py
tests/semantic/regen_fixtures.py
tests/semantic/test_value_semantics.py

AI-assisted.
2026-11-22 23:49:26 +01:00
1291a6878c GPU tests: raw barycentrics under perspective (ps_persp_bary, vs_persp)
The raw-barycentric tests draw with vs_ids, where clip w = 1 at every vertex, so nothing checked that the raw
i/j (and the attributes) follow perspective-correct weights. vs_persp draws one triangle at screen (5,8),
(57,16), (21,55) with clip w = 1, 2, 4 and per-vertex attr0; ps_persp_bary is ps_bary's code drawn with it.
check.py's bary_persp_problem compares every pixel with CPU weights p_k = (l_k / w_k) / sum(l_m / w_m) from the
screen-space weights l_k, checks that pixels outside stay clear, and requires the affine weights to differ by
more than 100x the tolerance on every judged pixel, so a NoPerspective regression can't pass. run_gpu_tests.py
uses the same reference (PIXEL_VS, DRAWN_WITH). Suggested by Vonsek in #794.

On main it runs the native BaryCoordKHR path (it skips without VK_KHR_fragment_shader_barycentric, like
ps_bary); any barycentric fallback that lands (#804) is exercised by it too. Checked on an RX 5700 XT (RADV)
through a GS fallback: passes at wave32 and wave64; with NoPerspective on the fallback's input, all 1149
covered pixels fail while the interpolated attributes still match. New tests/test_bary_persp_oracle.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:37:21 -06:00
f02e952272 CI: a macOS (Apple Silicon) job for the runtime on MoltenVK and the Python suites
runtime.yml gets a macos job on macos-26: Homebrew's MoltenVK, Vulkan headers and
loader, llvm-mc, SPIRV-Tools and glslang; the runtime built through sccache; ctest
and run_gpu_tests.py on MoltenVK. ci.yml gets macos-python: the standard-library
loop, the semantic suite alongside it, and the pytest files with Homebrew's llvm-mc.

The hosted runner's Metal device is Apple Paravirtual device (family Mac2), which
MoltenVK runs on; KosmicKrisp finds no device there. macos-15 can't build the
runtime (Xcode 16's libc++ has no floating-point std::from_chars).

The two tests that fail on MoltenVK today, also on an M3 Max, are listed with the
pull requests that fix them (xdxr_build_check: #2423, ps_ssharp: #1845);
scripts/ci_expected_failures.py fails the step on any other failure and notes an
expected one that passes.
2026-11-23 02:21:52 +04:00
ed91cd250a Tests: GPU checks for v_med3_f32/f16 with a NaN in S2 or in two operands
ps_fnan_med3 puts its NaN in S0 only, so no GPU test reached the cases
ps_fnan_med3_s2 (f32) and ps_f16_fnan_med3 (f16), with inputs read from
memory at run time and words derived from the measured rule in
docs/design.md (with any NaN operand, med3 is min3 with the NaNs
ignored). The all-NaN case is left out: its payload is not modelled.

Registered in check.py and run_gpu_tests.py; the semantic fixtures and
GpuFixtures tests run them through the interpreter, where the
translator before #2029 fails them (undefined FClamp on a NaN).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:18:01 +01:00
6da1c717fc Merge main into hw-mad-u32-u16 (#2494)
docs/design.md
tests/semantic/regen_fixtures.py

AI-assisted.
2026-11-22 23:15:36 +01:00
cd30309409 Merge main into gpu-vopc-int (#2220)
tests/semantic/regen_fixtures.py

AI-assisted.
2026-11-22 23:12:43 +01:00
35616ce677 build_runtime.ps1: fall back to native cmake + ninja on PATH
# Conflicts:
#	scripts/build_runtime.ps1
#	tests/test_build_runtime_fallback.py
2026-11-23 00:04:40 +02:00
1a193dbf9c Merge pull request #3825 from haizenc 2026-11-22 17:04:05 -05:00
8a109eb7c5 Merge pull request #3792 from Vonsek 2026-11-22 17:03:50 -05:00
5816b2404d Merge pull request #3786 from DanielDeGiorgio 2026-11-22 17:03:47 -05:00
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
d9129f7a10 build_runtime.ps1: build vk_sampler_test in the cl.exe fallback 2026-11-22 23:50:40 +02:00
ba02066af9 fix(tests): honor CTest fixture setup in the Wine runner
A required Wine test can pass before its CTest fixture setup has run. Schedule the named setup tests first and withhold consumers when setup fails so the required-test result reflects whether the fixture was usable.
2026-11-22 22:39:40 +01:00
99fb9e372a TEST-837: Require fresh GPU test readbacks 2026-11-22 22:36:56 +01: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