Commit Graph

658 Commits

Author SHA1 Message Date
77bac1a8e8 Merge pull request #4031 from 0xTehuti
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:35 -05:00
64f3dc1a6d Merge pull request #4020 from bbareth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:27 -05:00
938d360265 Merge pull request #3986 from nicolas
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:11 -05:00
bc29c6c953 Merge pull request #3970 from Jonathan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:02 -05:00
152acd7a79 Merge pull request #3920 from Leonida Proto
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:09:34 -05:00
54f96820d8 Merge pull request #3905 from João Ramos
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:26 -05:00
3baa73a913 Merge pull request #3899 from bbareth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:22 -05:00
51155bc63a Merge pull request #3890 from bbareth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:15 -05:00
e2ecb50cf1 Merge pull request #3855 from Oleg Makarov
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:56 -05:00
21c1d00b0f Merge pull request #3792 from Vonsek
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:29 -05:00
0f37a1f5cc Merge pull request #3785 from Emma
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:27 -05:00
b353e81bc7 Merge pull request #3354 from Matheus Gomes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:21 -05:00
05b6338fc4 Merge pull request #3338 from kapitche
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:18 -05:00
af1d6a744f Merge pull request #3004 from Moaaz Gewili
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
#	docs/testing.md
2026-11-22 23:06:38 -05:00
c11eec4e7c Merge pull request #2998 from kapitche
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:36 -05:00
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
da502d4e48 Merge main 7b7d73f8: keep both check imports (failure, run_readback)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 05:43:17 +02: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
df03a8ae38 run_gpu_tests: ps_live_width is a probe run by w64_graphics.py, not a test with no checker 2026-11-22 22:34:20 -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
1d4d4c6185 fix(tests): keep Wine fixture setup verdicts by occurrence
A later setup with the same listed name could hide a failed setup from a required consumer. Keep fixture verdicts keyed by the same test index as their dependencies.
2026-11-23 02:42:01 +01:00
6535919f47 vs_input_survey: a vertex-shader index entry without a string file is a one-line error 2026-11-22 20:32:28 -05:00
3c7b0403c3 Validate CTest working directory and output expression value types
Merge upstream main and reject malformed paths or output expressions before drive mapping. Preserve CTest's lists, the existing string form, and arbitrary values on properties the runner does not consume. Five new bad-value cases fail before the change. All 53 runner tests pass on Debian, and the reader accepts an actual CTest 3.31.6 JSON listing.

AI-assisted (Codex).
2026-11-22 22:19:42 -03: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
17eeb26109 Preserve guest scene results on redirected Windows streams
FIocker reported that a successful scene run under a CJK output path raised UnicodeEncodeError while printing report.json to a cp1252 pipe. Keep the stream encoding and escape only characters it cannot represent, including in failure diagnostics.

Reported-by: @FIocker (PR #3986, issuecomment-7087348910)
2026-11-22 16:15:56 -07:00
3ff2bfe819 Preserve CTest DEPENDS order in the Wine runner 2026-11-22 23:11:50 +00:00
bc425352cd scripts: robust recursive directory cleanup with readonly reset in build_llvm_mc.ps1 (BUILD-139)
When cleaning up temporary build and clone directories on Windows, files with
the ReadOnly attribute (such as git objects in the sparse clone) cause
PowerShell's Remove-Item to fail with an UnauthorizedAccessException or
IOException, leaving gigabytes of files behind in $Temp.

Implement Remove-DirectoryRobust:
1. Recursively strip ReadOnly attributes across all nested files and directories.
2. Retry Remove-Item with backoff for brief file handle locks.
3. Fall back to Windows cmd rmdir /s /q which handles read-only attribute trees natively.
4. Add unit test in tests/test_build_llvm_mc_cleanup.py verifying teardown of read-only hierarchies.
2026-11-22 23:59:52 +01:00
6d3b3f9f4e Handle malformed CTest skip codes in the Wine runner 2026-11-22 23:56:00 +01: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
fedc442476 Allow Tier 3 reference on any selected GPU
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-22 18:46:56 -04:00
5fec4f2827 Test a scripted 600-frame headless scene from a mapped guest 2026-11-22 15:43:53 -07:00
f8b4f03bb7 Add native Tier 3 inner coverage reference probe
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-22 18:43:12 -04: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
c3c1048f95 docs(contracts): split docs/design.md contract table into docs/contracts/*.json with generator 2026-11-23 02:27:42 +04:00
19c4a7b538 ci: add behavioral sabotage gate for changed semantic tests 2026-11-23 02:24:10 +04:00
22a86b1d57 scripts: add parallel preflight_pr.py mirroring fast CI checks 2026-11-23 02:24:10 +04: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
62bce63d1c Clean up failed Wine drive setup 2026-11-22 23:21:17 +01:00
72f5d2f0d7 audit_shader4_regs: list ds_nop in DS_HAS_DST to match tools/lane_masks.py 2026-11-22 22:21:01 +00:00
1741a03155 Reject broken quoted rows in shader_stats CSV 2026-11-22 23:18:32 +01:00