Commit Graph

4696 Commits

Author SHA1 Message Date
3a4ffa4504 local: graphics stage layout experiment (s8), CB diagnostics 2026-11-23 16:21:40 -06:00
c48a663a82 d3d12/spirv_f16_halves: fix linker fast-path, Private decorations, and device location budget
Fixes four bugs in --f16-interp-fallback per-pipeline linking:
1. link_f16_halves() no longer skips patching on its fast path when static
   VS/PS half locations exceed top_location or when an unused VS static half
   collides with a raw PS input location.
2. Demoting an unused VS static half Output variable to Private now strips
   all interface-only decorations (NoPerspective, Flat, Patch, Centroid,
   Sample, Invariant, Location, Component), avoiding invalid SPIR-V.
3. keep_ps_locs now preserves raw PS input locations (ps_raw_locs) when
   picking relocation slots.
4. CreateGraphicsPipelineState now runs link_f16_halves() when only VS
   declares f16_halves and derives top_location from the physical device's
   min(maxVertexOutputComponents, maxFragmentInputComponents) instead of
   hardcoding 29.

Adds regression tests (cases 6-10) and interface-only decoration validation
in runtime/test/spirv_f16_halves_test.cpp.

AI-assisted (Antigravity).
2026-11-23 23:18:39 +01:00
0c5c0b40ad Keep the ground builder callable for collision regressions 2026-11-23 16:17:36 -06:00
2f48417d49 fix: refuse a mesh PSO whose workgroup memory is over maxMeshSharedMemorySize 2026-11-23 23:16:12 +01:00
29bd7a11a6 gameinput: the device info has its GameInputLabel members
gameinput_abi.h left out the labels of the public v0 layout. In
GameInputControllerAxisInfo and GameInputControllerButtonInfo a label
sits at offset 4, in what is otherwise padding, so the sizes matched
while isContinuous, restValue, legacyDInputIndex and rawReportIndex were
four bytes early. GameInputGamepadInfo and GameInputUiNavigationInfo are
tables of 14 and 21 labels; they were declared empty, and the pointers
in GameInputDeviceInfo led to one-byte members, so a title reading a
label read whatever followed.

The header declares the enum, the two tables and the two label members
and pins each offset that moved. fill_info gives every control the Xbox
label of its position on every pad, since every pad is presented as an
Xbox One pad.

gameinput_test reads the tables by the public header's byte offsets, so
the shim's own header cannot agree with itself.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 23:15:46 +01:00
0c7ec65c0e local: apply #9419 (present dump) as a patch 2026-11-23 16:11:49 -06:00
c9ea508420 local: descriptor write-through and table mirror for title-backed heaps; diagnostics 2026-11-23 16:10:47 -06:00
de17f980ae vk_bindless_test: validate SPIR-V framing via read_spirv_words before Vulkan init 2026-11-24 06:09:24 +08:00
d578b4806e Tests: GPU coverage for ds_wrxchg*_rtn_b64, ds_or_rtn_b64, ds_min_f32 and ds_max_rtn_f32
docs/design.md marks the 64-bit LDS exchanges not GPU-verified, and
cs_lds_atomics_ext.asm (#9494) leaves ds_or_b64 and the f32 min/max
forms out. cs_lds_xchg64_ext.asm runs one lane through
ds_wrxchg_rtn_b64 (both dwords left and the returned pair),
ds_wrxchg2_rtn_b64 at offsets 0/2 (four old and four new dwords),
ds_wrxchg2st64_rtn_b64 at offsets 1/2 (512-byte steps), ds_or_rtn_b64,
ds_min_f32 with a quiet NaN in memory and ds_max_rtn_f32 ordering -0.0
below +0.0. The eight expected words are derived in its header from
the rows. Registered in check.py and run_gpu_tests.py next to
cs_lds_b64_cmpst; the wrxchg row notes the GPU check (the min/max and
bitwise b64 rows get theirs in #9494, to keep the two PRs apart).
2026-11-23 14:09:15 -08:00
98a688ece4 Merge PR #9607 2026-11-23 17:09:05 -05:00
db333b7fa7 Merge PR #9606 2026-11-23 17:09:03 -05:00
330aec8969 Merge PR #9605 2026-11-23 17:09:01 -05:00
8ecc6a4eb9 Merge PR #9602 2026-11-23 17:08:56 -05:00
805a88b7f3 Merge PR #9598 2026-11-23 17:08:50 -05:00
bca17fcf82 Merge PR #9590 2026-11-23 17:08:37 -05:00
652e85ac4e check_device_filter_tools: skip only when there is no Vulkan loader, driver or device
The preflight took any nonzero vk_descriptor_bench --list-devices exit
as "no device" and skipped, so an unexpected failure of the tool was
reported as a skip. It now skips only for a missing loader, a
vkCreateInstance that gives VK_ERROR_INCOMPATIBLE_DRIVER, or an empty
device list, and fails for any other exit. Found by
matheusfermiano-source.
2026-11-23 17:08:30 -05:00
93b2551f8d Merge PR #9576 2026-11-23 17:08:14 -05:00
f5bcc679d0 Merge PR #9575 2026-11-23 17:08:12 -05:00
4226afe625 Merge PR #9572 2026-11-23 17:08:07 -05:00
98d99cfca0 Merge PR #9570 2026-11-23 17:08:03 -05:00
ca9f9856bb Merge PR #9569 2026-11-23 17:08:01 -05:00
dea8ce204d Merge PR #9567 2026-11-23 17:07:57 -05:00
14773047f5 Merge PR #9566 2026-11-23 17:07:56 -05:00
9272c0e015 Merge PR #9565 2026-11-23 17:07:54 -05:00
ad6e5d6bbe gta6rt: --init/--run stop with a clear message on a host without AVX
The game runs AVX code from its TLS callbacks on, so a CPU or OS without
AVX (a QEMU qemu64 guest) died with a bare 0xC000001D. Check CPUID.1
AVX/OSXSAVE and XCR0 YMM state first, print one line and exit 4 (3 is
LEONIDA_UNIMPLEMENTED=stop). --dry-run is unchanged and
LEONIDA_SKIP_CPU_CHECK=1 skips the check.

AI-assisted.
2026-11-23 23:07:51 +01:00
f6998eb578 Validate Wave64 graphics results before saving references 2026-11-23 17:07:32 -05:00
ff41d844bf Merge PR #9558 2026-11-23 17:07:32 -05:00
dbb79106ce Merge PR #9555 2026-11-23 17:07:25 -05:00
d892ec96c9 Merge PR #9554 2026-11-23 17:07:24 -05:00
2be1e08271 Merge PR #9549 2026-11-23 17:07:14 -05:00
af98770ba1 Match DXGI error precedence for mixed resize flags 2026-11-23 22:07:12 +00:00
5b12f22dfc Merge PR #9547 2026-11-23 17:07:10 -05:00
d85f6d4ced Merge PR #9536 2026-11-23 17:06:55 -05:00
3d1387b3b9 Merge PR #9531 2026-11-23 17:06:48 -05:00
1b722bc682 Merge PR #9525 2026-11-23 17:06:39 -05:00
a7d211723a Merge PR #9521 2026-11-23 17:06:35 -05:00
35dbc0f8dd Merge PR #9515 2026-11-23 17:06:27 -05:00
2a99db7d64 Merge PR #9505 2026-11-23 17:06:10 -05:00
6996cf0fc5 Merge PR #9502 2026-11-23 17:06:06 -05:00
9c2dc0a26c Merge PR #9499 2026-11-23 17:06:01 -05:00
2eeaae7a04 runtime/CMakeLists.txt: relax CTest timeouts for api_ref_state and d3d12_queue_wait under parallel runs 2026-11-24 04:05:36 +06:00
c89b413448 Finish a pending presenter capture before reusing its staging buffer 2026-11-23 22:05:11 +00:00
433edaa450 check_d3d12_trace: stop the runner's fixture on timeout
Through a runner such as Wine, subprocess.run(timeout=120) killed only the
launcher; the fixture kept running and, holding the output pipes, kept the
check waiting past its limit. On POSIX with a runner, start the run in a
session of its own, kill the group on timeout, and fail with one line.
2026-11-23 17:03:34 -05:00
bafefcaf36 check_d3d12_trace: report a missing runner or a timeout, and stop Wine's children
The d3d12_trace CTest runs d3d12_gcl8_test through CMAKE_CROSSCOMPILING_EMULATOR
(Wine, or UMU-Proton's wine) on a Linux cross build. A runner or fixture that
cannot be started ended the check with a FileNotFoundError traceback, and the
120 s timeout with a TimeoutExpired traceback after killing only the immediate
launcher, so the fixture and Wine's helpers kept running after the test.

Start the fixture in a session of its own, kill the whole group on timeout
(or on any other exit from the wait), and report both cases in one line.

tests/test_check_d3d12_trace.py covers both with synthetic stand-in programs
(no Wine, GPU or game files); three of its five tests fail on main.
2026-11-23 17:02:56 -05:00
721526af3d d3d12: FORMAT_SUPPORT answers the depth-plane view formats and comparison sampling as the host does
CheckFeatureSupport(FORMAT_SUPPORT) answered DXGI_ERROR_UNSUPPORTED for
R24_UNORM_X8_TYPELESS, X24_TYPELESS_G8_UINT, R32_FLOAT_X8X24_TYPELESS and
X32_TYPELESS_G8X24_UINT: they have no image of their own, so the Vulkan
lookups found nothing, although CreateShaderResourceView takes them on
depth-stencil textures. The host (RTX 5070 Ti and WARP) reports them as
sampled 2D and cube textures with mips, the depth plane also filtered.
SHADER_SAMPLE_COMPARISON and SHADER_GATHER_COMPARISON were never set, while
the host sets them on R32_FLOAT, R16_UNORM and the two depth-plane formats,
the formats an engine checks before using a comparison sampler on a shadow
map. 1D and multisample loads stay out, as for the depth formats.

d3d12_depth_view_format_support_test compares the HRESULT and the view bits
of 19 formats with the default adapter (PROBE_WARP=1: WARP): 6 differ on
main, 0 with this change, on both.

AI-assisted: yes
2026-11-23 16:00:07 -06:00
3afcab2a8b d3d12: enforce cross-device ownership checks on queue, fence, and bundle paths 2026-11-23 23:00:06 +01:00
0d3dd7d24a xgameruntime: XPackageGetUserLocale skips commented-out resources and allows spaces around '='
package_locales() searched MicrosoftGame.Config for the literal text
"Language=", so a <Resource> inside an XML comment counted as declared and a
real `Language = "en-US"` did not. It now drops comments first and reads each
<Resource> tag's attributes with optional whitespace around '=', taking only an
attribute named exactly Language on an element named exactly Resource.
2026-11-23 18:59:59 -03:00
dcc59b2c76 Preserve UTF-8 content package mount paths on Windows 2026-11-24 08:57:30 +11:00
72e90d8ce5 Build the sandbox ground grid on first walk or drive 2026-11-23 15:56:54 -06:00
54ec9044a0 Exercise the UTF-8 mount path through the GDK byte-buffer APIs 2026-11-24 08:55:13 +11:00