Commit Graph

5744 Commits

Author SHA1 Message Date
1c81bbae24 docs: count the shaders that truncate a pointer's high dword (25,865 of 26,503)
tools/ptr_truncation_census.py runs rdna2spirv.translate() up to its shader_meta.collect call, writes no SPIR-V,
and records every base pair shader_meta's truncates_high / ptr32_lo rule looks at: the access (descriptor-table
load, scalar load, global_*), the low and the high half. Over package 1.0.2.1 every truncated pointer is the base
of a 4/8/16-dword descriptor load from a user SGPR (86,036 in 25,865 shaders, at most 5 per shader); no global_*
or 1-2 dword s_load base is truncated. docs/d3d12_vulkan.md replaces "some"/"many" with those counts.

Controls from the same pass: 26,503 shaders per stage as docs/design.md, user_sgpr_census.py on its index gives
section 3.5's 9,830 / 1,660 / 2,364 / 7,977, and 204 sampled shaders match a full translate's build_meta.

Co-Authored-By: Claude Opus <noreply@anthropic.com>
2026-11-22 15:04:28 -07:00
0285ea86a8 rdna2spirv: implement 6 remaining 32-bit image_atomic_* ops 2026-11-22 19:04:17 -03:00
07032412c8 spirv_stores: bound the walk through array types; the GPU test honours LEONIDA_VK_VALIDATION=0
A malformed module whose array type names itself made the element walk spin
inside CreateGraphicsPipelineState; it now stops after 16 levels, with a case in
spirv_stores_test. d3d12_stores_atomics_test turns the validation layer on for
itself only when the variable is unset. The docs say how the 1,018 of 1,038
figure is counted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:04:06 +00:00
a36506022f d3d12: the runtime's own Vulkan device enables fragmentStoresAndAtomics; a PSO that needs it elsewhere is refused
create_vulkan_device_standalone never enabled fragmentStoresAndAtomics or
vertexPipelineStoresAndAtomics, so a pixel shader with a writable storage
image (an image atomic: 1,018 corpus pixel shaders) broke
VUID-RuntimeSpirv-NonWritable-06340 while CreateGraphicsPipelineState
answered S_OK.

The device enables both where the GPU has them. A graphics PSO whose stage
declares writable storage (src/spirv_stores.h reads the declarations) on a
device without the feature is refused with E_NOTIMPL and a log line.

spirv_stores_test checks the rule on hand-built SPIR-V; d3d12_stores_atomics_test
checks the refusal and the standalone device under the validation layer.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:04:06 +00:00
1f7ce1abcd Merge pull request #3824 from Kacper Serewis 2026-11-22 17:04:04 -05:00
a5269a38af chore(shader): merge upstream main into binary64 conversion
Keep the targeted regression and the intervening upstream changes together for review.
2026-11-22 23:04:03 +01:00
7a4b7e647e Merge pull request #3821 from Kacper Serewis 2026-11-22 17:04:03 -05:00
68394781ab Merge pull request #3818 from YaBulochka
# Conflicts:
#	docs/design.md
2026-11-22 17:04:02 -05:00
d8ae33962d Merge pull request #3817 from Rayhan Robin
# Conflicts:
#	docs/design.md
2026-11-22 17:04:00 -05:00
897df1d3ac Merge pull request #3813 from Mast3rL 2026-11-22 17:03:57 -05:00
13c8a8fed9 Merge pull request #3811 from gbezzuoli 2026-11-22 17:03:56 -05:00
39f5fd3d9b Merge pull request #3809 from ezbyDev 2026-11-22 17:03:56 -05:00
d2eb26814d Merge pull request #3808 from Jeremy Goldberg 2026-11-22 17:03:55 -05:00
ea2616d4ef Merge pull request #3807 from kotorvr 2026-11-22 17:03:55 -05:00
177ecb29a4 character_census: match the decoded model.json schema
The local exporter writes vertex_count and triangle_count, not index_count. Remove the invented index_count from the synthetic fixtures and expect the documented unknown index total; keep index_count optional for inputs that actually supply it.
2026-11-22 22:03:53 +00:00
0a9b3ff37f Merge pull request #3797 from JustDown 2026-11-22 17:03:51 -05:00
b99ca4931b PROC-190: Docs: list the 13 timecycle sample hours from time_data
docs/gamedata.md called the hour of each timecycle sample unmeasured in
the timecycle section, while a paragraph that had ended up under the
tyre section said this build reads them from time_data. Move that
paragraph back into the timecycle section, drop the stale note, and add
the measured hours with the payload offset and the command that prints
them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:03:47 +01:00
17a82620ee Merge pull request #3782 from Kacper Serewis 2026-11-22 17:03:45 -05:00
b639243833 Merge pull request #3776 from undeadhuman37
# Conflicts:
#	docs/d3d12_vulkan.md
2026-11-22 17:03:43 -05:00
59aa22ff0c gameinput: drive a constant force from gameinput_probe (RT-160)
`--force-feedback` creates a constant effect at magnitude 1.0 on motor 0 and
holds it for a second, so the wheel owner the RT-160 finding asks for can feel
the magnitude and the axis instead of only reading `forcefeedback=`; a pad with
no force-feedback motor is skipped with the reason printed. Docs and the probe
comment name the flag.

AI-assisted
2026-11-22 23:03:41 +01:00
6ebcf0577c Merge pull request #3773 from eyyun 2026-11-22 17:03:41 -05:00
e1b17b3a79 Merge pull request #3770 from Yawnz
# Conflicts:
#	docs/shader_validation.md
2026-11-22 17:03:40 -05:00
5c82b3f4ce Merge pull request #3769 from rennansc
# Conflicts:
#	docs/i18n/pt-BR/quickstart.md
2026-11-22 17:03:39 -05:00
4b665196cf Merge pull request #3767 from Lucy 2026-11-22 17:03:37 -05:00
945f236ed4 Merge pull request #3756 from kapitche 2026-11-22 17:03:36 -05:00
301a996ae1 Merge pull request #3754 from B0D0PAD
# Conflicts:
#	docs/design.md
2026-11-22 17:03:35 -05:00
f9a50eeb5f Merge pull request #3743 from Lucy 2026-11-22 17:03:33 -05:00
d672bc0330 Merge pull request #3734 from Vonsek 2026-11-22 17:03:32 -05:00
9a6b654944 Merge pull request #3715 from lumenpearson
# Conflicts:
#	docs/design.md
2026-11-22 17:03:31 -05:00
aec744e39d Tests: account for KosmicKrisp NaN readback (TEST-783) 2026-11-23 01:03:29 +03:00
212dd72484 Merge pull request #3700 from Yawnz 2026-11-22 17:03:29 -05:00
1b227ae455 Merge pull request #3699 from B0D0PAD
# Conflicts:
#	docs/gameinput.md
2026-11-22 17:03:29 -05:00
793e35af55 Merge pull request #3685 from ICUMADETHIS 2026-11-22 17:03:25 -05:00
673523c526 docs/design.md: exp mrtz carries Z only when x is on and not compr
The Inputs and outputs row lost the qualifier when #436 merged
(51d954a2), 31 s before #2063 landed. Restate the rule the translator and
tests/test_translate.py::test_mrtz_depth_only_from_an_enabled_x enforce,
including that an export without Z must not declare DepthReplacing.

AI-assisted
2026-11-22 23:03:24 +01:00
dcdc1100f3 Merge pull request #3682 from shdann 2026-11-22 17:03:24 -05:00
4d0b1723ca Merge pull request #3670 from Dominik 2026-11-22 17:03:19 -05:00
8e31e26871 Merge pull request #3666 from AwkGrep256
# Conflicts:
#	docs/design.md
#	docs/shader_validation.md
2026-11-22 17:03:18 -05:00
a3b4b1bb86 Merge pull request #3660 from Claude
# Conflicts:
#	docs/testing.md
2026-11-22 17:03:15 -05:00
85cc694efb Merge pull request #3655 from Claude 2026-11-22 17:03:13 -05:00
77e5c8295c Merge pull request #3637 from Devin AI
# Conflicts:
#	docs/design.md
2026-11-22 17:03:08 -05:00
86be100f3a gta6rt: offline WinHttpSendRequest with context 0 keeps the option's context
WinHttpSendRequest assigned its dwContext to the request unconditionally, so a client that set the context with
WINHTTP_OPTION_CONTEXT_VALUE and sent with 0 got 0 back from WinHttpQueryOption and in its REQUEST_ERROR and
HANDLE_CLOSING callbacks. The host's winhttp.dll (Windows 11, asynchronous session, loopback) keeps the option's
value in all three. A nonzero dwContext still replaces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:03:06 +00:00
861a0c279c docs: independent UV check of the 0x21 tangent and its bit-30 exception
A data.rpf sample puts the decoded 8-bit vector on the U tangent 1,992/1,992 corner uses (median |dot| 0.999598) and bit 30 on the dP/dv side 101/104; the three exceptions are one indexed vertex with mixed UV determinants. Records the exception for a consumer building a tangent frame.
2026-11-22 22:03:06 +00:00
adea81550d Merge pull request #3634 from traeb0n
# Conflicts:
#	docs/d3d12_vulkan.md
2026-11-22 17:03:06 -05:00
795c28d52e Merge pull request #3623 from erickbobd 2026-11-22 17:03:04 -05:00
5a57053e09 Merge pull request #3622 from Ewann
# Conflicts:
#	docs/navmesh.md
2026-11-22 17:03:03 -05:00
5db70430de Merge pull request #3618 from Dominik
# Conflicts:
#	docs/embedded_shaders.md
2026-11-22 17:03:01 -05:00
8851a685cc Merge pull request #3614 from Mulkku 2026-11-22 17:02:59 -05:00
16ec4ee103 Merge pull request #3609 from eyyun 2026-11-22 17:02:59 -05:00
cee93c6018 Merge pull request #3604 from towade
# Conflicts:
#	docs/audio.md
2026-11-22 17:02:58 -05:00
92a0b72e0d Document how to reproduce ASSET-297 XML joins 2026-11-22 23:02:56 +01:00