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).
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>
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).
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.
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.
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.
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.
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
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.