Commit Graph

513 Commits

Author SHA1 Message Date
81247c4966 Merge pull request #2515 from DanielDeGiorgio 2026-11-22 15:10:57 -05:00
bda3ae4b82 Merge pull request #2399 from AAyberkU 2026-11-22 15:10:41 -05:00
1bc49f49ce Merge pull request #2357 from Matheus Gomes 2026-11-22 15:10:36 -05:00
66ff7cb82a Merge pull request #2039 from Vonsek 2026-11-22 15:10:04 -05:00
c4eaab94c9 Merge pull request #1518 from Henrique Vinagre 2026-11-22 15:09:42 -05:00
94a6cba5e7 Merge pull request #1299 from Vonsek 2026-11-22 15:09:39 -05:00
58024a3a6f Merge pull request #896 from DiazE117 2026-11-22 15:09:38 -05:00
fb7b355e53 shader_stats: the stdout guard too, now that #2135 is merged
It was left out of this change while #2135 was open on the same file. With the guard added it leaves the
test's list of exceptions, which now holds only run_wine_tests.py.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ABh36DZ2sZNq3ChN6EZJs
2026-11-22 23:01:10 +03:00
15f5b2fbc0 Fix what the round-41 merges broke
- tests/semantic: BaseVertex/BaseInstance read 0 in the wave interpreter; the LDS MockGens follow
  SHADER-309 (lds_bound, lds_access, lds_atomic); abs emission tests load their operand, since
  SHADER-315 folds scalar ALU on constants.
- test_translate: the dynamic gather sampler is a loaded word, not s16 + 0 (SHADER-315 folds it).
- test_world_build: DDS downscale weights colours by alpha (62804d0d).
- test_fspx_shaders_stage: the fake disassembler writes the listing make_game now checks.
- xgameruntime_test: re-read the package id after clearing the LEONIDA_PACKAGE_ID override.
- docs: one row per topic again in design.md (72 topics) and README.md; one Other languages line;
  embedded_shaders.md keeps one copy of each bullet; animation.md links the heading anchor.
- tools/scripts: character_textures uses report_paths.same_report_path; stdout guard on six programs;
  LF write in vs_input_survey; the cl.exe fallback compiles winhttp_offline.cpp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:30:33 -05:00
54e13c51b7 Merge upstream main into the Wine timeout fix
Keep the per-test CTest environment and pass its subprocess the more restrictive deadline.
2026-11-22 16:27:39 -03:00
3eb80d77e3 Merge main into cov-d16fmt (#2039)
Conflicts:
	scripts/run_gpu_tests.py
	tests/semantic/regen_fixtures.py
	tests/test_shader_checks.py

AI-assisted.
2026-11-22 20:27:12 +01:00
a922e9edd4 tests: CPU value tests for 8/16-bit and 64/96/128-bit LDS accesses
Two wave32 GPU tests, cs_w32_lds_subdword (ds_write_b8/_b16 and their
_d16_hi forms, ds_read_u8/_i8/_u16/_i16) and cs_w32_lds_wide
(ds_write/ds_read _b64/_b96/_b128, ds_read2st64_b32), and a semantic
test that runs them in the SPIR-V interpreter against a byte-level LDS
model of the ISA rules, with three SPIR-V sabotages as negative
controls. These ops were checked only by lds_fuzz.py, which needs a GPU.

No translator change. RTX 4070 SUPER, driver 610.88: both dumps match.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:17:14 -06:00
676c6abae3 Merge main into coverage-gaps (#1299)
runtime/test/shaders/check.py
scripts/run_gpu_tests.py
tests/semantic/test_value_semantics.py

AI-assisted.
2026-11-22 19:52:12 +01:00
cc29f9be93 Restore the console code page after the LLVM build 2026-11-22 19:43:57 +01:00
2426df3d5e GPU tests: wire cs_fma_fused in run_gpu_tests and accept GLSL Fma split on RADV 2026-11-22 18:34:11 +00:00
47449d3e29 Merge pull request #2729 from itsRevela
# Conflicts:
#	docs/design.md
2026-11-22 13:17:24 -05:00
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
90c4ea6701 test: GPU fixtures for sub-dword MUBUF loads and GFX10_FORMAT_8_UINT (TEST-510)
The docs/design.md "Sub-dword MUBUF loads and GFX10_FORMAT_8_UINT" row was
CPU-checked only. Two single-thread compute fixtures in run_gpu_tests.py's
dump list now run the translated loads through Vulkan:

cs_buf_load_sub: buffer_load_ubyte/sbyte/ushort/sshort zero- and
sign-extended, the dword-crossing ushort at offset 3, and the RAW end check
by element size (a ubyte at 8 and a ushort at 7 of 8 bytes read 0; a
start-only check would read 0xeefe from the 0xee filler).

cs_buf_fmt8: tbuffer_load_format_x format:[BUF_FMT_8_UINT] at offsets 0..3,
one byte past the end, an INVALID V# format (0), and buffer_load_format_xyzw
with V# format 8_UINT and DST_SEL (X, 0, 1, 1), whose w is integer 1.

Both pass on an RTX 3070 Ti (driver 610.88); the expected words follow the
CPU test's byte table and rules. The row now says so; AMD hardware is still
unmeasured.
2026-11-22 12:02:47 -06: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
dd678a7681 Merge main into coverage-gaps (#1299)
Conflicts:
	tests/semantic/regen_fixtures.py

AI-assisted.
2026-11-22 18:29:28 +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