Commit Graph

487 Commits

Author SHA1 Message Date
4ac33f7e88 Merge pull request #2648 from skankhunt42 2026-11-22 13:16:47 -05:00
7fe2918ac8 Merge pull request #2607 from Vonsek 2026-11-22 13:16:31 -05:00
33662439f2 Merge pull request #2576 from DanielDeGiorgio 2026-11-22 13:16:18 -05:00
c478142d4e Merge pull request #2543 from DanielDeGiorgio 2026-11-22 13:16:03 -05:00
40055efb95 Merge pull request #2531 from Vonsek
# Conflicts:
#	docs/design.md
2026-11-22 13:15:58 -05:00
2fbbd93b57 Merge pull request #2529 from DanielDeGiorgio 2026-11-22 13:15:56 -05:00
41d2530e5e Merge pull request #2526 from DanielDeGiorgio 2026-11-22 13:15:55 -05:00
2212eadd1b Merge pull request #2520 from Dominik 2026-11-22 13:15:53 -05:00
8e2937e0a3 Merge pull request #2515 from DanielDeGiorgio 2026-11-22 13:15:51 -05:00
cd658b588e Merge pull request #2497 from DanielDeGiorgio 2026-11-22 13:15:44 -05:00
663e9212d1 Merge pull request #2492 from bbareth 2026-11-22 13:15:42 -05:00
d097528984 Merge pull request #2479 from bbareth 2026-11-22 13:15:36 -05:00
d2288ab497 Merge pull request #2465 from bbareth 2026-11-22 13:15:30 -05:00
c64494b9fe Merge pull request #2411 from TurboSosiska304 2026-11-22 13:15:07 -05:00
45e4a2e370 Merge pull request #2404 from S1m0ne1997 2026-11-22 13:15:04 -05:00
c4bee344ef Merge pull request #2399 from AAyberkU 2026-11-22 13:14:44 -05:00
151c372ee1 Merge pull request #2395 from Matheus Gomes 2026-11-22 13:14:40 -05:00
0dd29b21c7 Merge pull request #2344 from Alex Arenas 2026-11-22 13:14:03 -05:00
fbd598c2d0 Merge pull request #2187 from Vonsek 2026-11-22 13:13:12 -05:00
407a53923e Merge pull request #2048 from whoalin1
# Conflicts:
#	docs/testing.md
2026-11-22 13:12:54 -05:00
51d954a2cd Merge pull request #436 from S1m0ne1997 2026-11-22 13:12:27 -05:00
64184fc835 Merge main into sdwa-dword-hi16 (#2187)
Conflicts:
	tests/semantic/test_value_semantics.py

AI-assisted.
2026-11-22 18:53:24 +01:00
90f399e953 Runtime: warn loudly (or fail) when CMake finds no Vulkan headers
Without Vulkan headers everything under if(TARGET Vulkan::Headers) is left
out: the D3D12 COM objects, the Vulkan D3D12 device in gta6rt
(LEONIDA_D3D12=vulkan) and most of ctest. The only output was a STATUS line
naming four test tools, so a build whose VULKAN_SDK never reached CMake ran
45 of 125 tests and reported "100% tests passed".

- runtime/cmake/vulkan_headers_missing.cmake: a WARNING that names what is
  left out and that CMakeCache.txt keeps the failed lookup.
- LEONIDA_REQUIRE_VULKAN=ON turns it into a configure error; both CI
  configures pass it, and scripts/build_runtime.ps1 does when VULKAN_SDK is set.
- tests/test_cmake_vulkan_missing.py runs the module with cmake -P and checks
  that CMakeLists.txt and CI use it; docs/testing.md gets a troubleshooting row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:41:47 +01:00
8534220f5f Keep stderr in first_look dry-run reports 2026-11-22 18:39:42 +01:00
29b1ba10d9 Tests: GPU test for 16-bit float v_cmpx compares (all 16 f16 predicates, e32 and e64)
Two pixel tests, ps_vcmpx_f16 (e32) and ps_vcmpx_f16_e64 (swapped operands),
on the operand pairs of ps_vcmp_f16: the EXEC result of each predicate, VCC
kept, and EXEC only ANDed. Words derived by hand in the headers; semantic
fixture and test added.

AI-assisted.
2026-11-22 18:37:20 +01:00
5b08d8f9dc Return the loader exit status from first_look 2026-11-22 18:32:36 +01:00
e1c0a58a67 Reject colliding carve_all output directories 2026-11-22 18:25:21 +01:00
6bbc893ea2 Tests: GPU test for 16-bit float VOPC compares (all 16 f16 predicates, e32 and e64)
Two pixel tests, ps_vcmp_f16 (e32, VCC) and ps_vcmp_f16_e64 (SGPR destination,
swapped operands), with NaN, +-0, +-inf, f16 denormals and junk high halves.
Words derived by hand in the headers; semantic fixture and test added.

AI-assisted.
2026-11-22 18:24:00 +01:00
6065382540 Continue metadata conversion after unreadable blobs 2026-11-22 18:23:35 +01:00
67f27e391f Stop carve_all when the carver fails 2026-11-22 18:22:14 +01:00
22bc8d44fa build_runtime.ps1: the cl.exe fallback compiles shims/file_system.cpp (BUILD-680)
main.cpp calls rt::fs::configure (GAME: paths), but the direct-cl.exe
fallback (VS Build Tools without the CMake component) left
shims/file_system.cpp out of the launcher's sources, so gta6rt failed to
link (LNK2019/LNK1120, found by @Ingenioeren). Added to $files.

test_build_runtime_fallback: every .cpp in CMake's add_executable(gta6rt
...) must be in the fallback's launcher list, so the two can't drift apart
again (fails before this change on shims\file_system.cpp).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:20:07 +00:00
7db5591f2f Preserve Unicode paths in the Windows LLVM builder 2026-11-22 18:19:27 +01:00
8ff14b1400 Preserve Unicode paths in the Windows runtime build wrapper (BUILD-681) 2026-11-22 18:14:53 +01:00
1c7fed849d bench_wave64: report harness launch failures cleanly 2026-11-22 18:14:52 +01:00
2e4c86c2d2 run_wine_tests: reject malformed CTest inventories before launching 2026-11-22 18:11:11 +01:00
f7d73c3b03 audit_shader4_regs: count only real listings toward the limit 2026-11-22 18:07:44 +01:00
97afefdebc Merge remote-tracking branch 'origin/main' into shader-33-vs-inputs
# Conflicts:
#	tests/test_shader_checks.py
2026-11-22 18:06:20 +01:00
a012fe0c1f SHADER-337: GPU test of image_sample_o, image_sample_b_o and image_gather4_l_o with texel offsets
ps_texoff_forms runs the three forms on vk_texture_test's texture with ps_texoff's per-pixel offset (all 64 pairs in
-4..3). check.py and run_gpu_tests.py judge it with texoff_words(..., "ps_texoff_forms"); unit tests check that a
dropped or swapped offset fails. 4096/4096 pixels exact on an RTX 4090 and on a gfx1036 iGPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:56:02 +01:00
a1343528f7 scripts, viewer: a redirected stdout no longer dies on a path outside the code page
Under `python -I` on Windows a redirected stdout is strict ANSI, so printing a path with a character outside the
code page raised UnicodeEncodeError. tools/ guards against it at the start of every __main__ block and
tests/test_tool_stdout_encoding.py enforces that, but only for tools/. viewer/serve.py died before it started
serving and scripts/audit_shader4_regs.py exited 1 after writing its report; bench_wave64.py and run_gpu_tests.py
print the same kind of output unguarded. All four get the guard, and the check now covers scripts/ and viewer/.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ABh36DZ2sZNq3ChN6EZJs
2026-11-22 19:55:36 +03:00
da3f01cee7 gpu tests: skip a fixture whose wave size the device cannot pin
cs_barrier_loop is a wave32 fixture (subgroup_size 32 in index.json): its
expected words are four waves of 32 lanes. run_gpu_tests.py pinned the size
through VKC_SUBGROUP_SIZE but, unlike check.py, judged the dump when
vk_compute_test reported "compute subgroup size: 32 not available" and ran it
at 64 lanes anyway. A device with 64..64 compute subgroups (GCN3/GCN4 on RADV)
therefore reported a failure that is really an unpinnable wave size: 139/180
passed with 1 failed, where check.py reported 0 failed on the same work folder.

Reuse check.py's unpinned_subgroup_skip for cs_barrier_loop only. The other
pinned dumps are still judged at the device's own width, which is how cs_store
and the cs_w32_* fixtures keep being tested on a 64-only device (skipping all
of them cost 12 passes: 128/180).

RX 570 (gfx803, RADV Mesa 26.2.6, Vulkan 1.4.354), commit 4947579:
run_gpu_tests 139/180 passed, 41 skipped, 0 failed; check.py 0 failed.
2026-11-22 19:54:22 +03:00
33456ca4e7 fix(test): enable shaderFloat64 for compute SPIR-V that declares it
Use the existing SPIR-V capability scan to request the feature before creating the Vulkan device, or report an unsupported-device skip. Add a synthetic compute case that checks both words of a binary64 result.
2026-11-22 13:53:56 -03:00
0ec464b0e1 GPU tests: bind the --pc-tail-ubo block, so 128-byte push-constant devices run the tests
With LEONIDA_PC_TAIL_UBO=1, build.py and run_gpu_tests.py translate with --pc-tail-ubo, and the test
programs (vk_compute_test, vk_store_test, vk_harness, vk_texture_test, vk_sampler_test, vk_bindless_test)
declare and push 128 bytes and, when a stage declares set 1, bind the tail block there
(runtime/test/vk_pc_tail.h: a host-visible buffer with one slot per dispatch or draw, bound as a dynamic
uniform buffer). vk_harness refuses --mesh-compute with the flag (exit 77): mesh_compute_vs.py's vertex
shader still reads its address from push constants. Without the variable nothing changes.

Step 2 of the uniform-buffer tail claimed in #1902.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:48:05 +02:00
ae21dddaa6 Merge pull request #2290 from 1TrickOmen 2026-11-22 11:43:51 -05:00
72758b9c5b Merge pull request #2270 from Tim Elery
# Conflicts:
#	docs/design.md
2026-11-22 11:43:39 -05:00
ee376e5723 scripts/bench_wave64.py: match Linux Mesa RADV (*amd*,*radeon*) in VK_LOADER_DRIVERS_SELECT
Use a comma-separated glob list (*amd*,*radeon*) for the AMD configurations in scripts/bench_wave64.py so the Vulkan Loader selects Linux Mesa RADV (radeon_icd.x86_64.json) in addition to Windows AMD (amd-vulkan64.json) and AMDVLK (amd_icd64.json).

Addresses @ddm-j's finding in #2300.
2026-11-22 17:43:25 +01:00
693b8c63af Merge pull request #2209 from Vonsek 2026-11-22 11:42:51 -05:00
4c973398ab Merge pull request #2208 from Vonsek 2026-11-22 11:42:50 -05:00
94d7bfddae Merge pull request #2184 from AvantBras 2026-11-22 11:42:34 -05:00
318bbb0cac Merge pull request #2172 from Vonsek 2026-11-22 11:42:28 -05:00
d5f6eaf6f4 Merge pull request #2154 from Vonsek 2026-11-22 11:42:19 -05:00