Commit Graph

5744 Commits

Author SHA1 Message Date
739474143a rdna2spirv: buffer_atomic_{and,or,xor,swap}_x2
A bitwise op or an exchange on a 64-bit element leaves the same memory
as one 32-bit atomic per dword, so these four need no Int64 atomics.
With glc the old pair comes back in vdata; it is two reads and can be
torn by a concurrent 64-bit op on the same element. The bounds check
covers the whole 8-byte element, as for a typed 32_32 element (partly
in-range behaviour is not measured). add/sub/min/max_x2 and cmpswap_x2
stay Unsupported.

tests/semantic/test_buffer_atomics_x2.py runs them in the interpreter.
docs/design.md row added.
2026-11-22 09:50:35 -03:00
e5f9661dac fix(translator): preserve implicit mip selection for typed 2D samples
Sampling an integer image through a float view makes D16 convert the wrong numeric values. Compute the quad derivatives before branching to the matching view so implicit minification still chooses the correct level.
2026-11-22 13:47:51 +01:00
75ddea610e rdna2spirv: global_atomic_{and,or,xor,swap}_x2
A bitwise op or an exchange on a 64-bit element leaves the same memory
as one 32-bit atomic per dword, so these four _x2 forms need no Int64
atomics. With glc the old pair goes to vdst[0:1]; it is two reads and
can be torn by a concurrent 64-bit op on the same element. add/sub/
min/max_x2 and cmpswap_x2 stay Unsupported.

tests/semantic/test_global_atomics_x2.py runs them in the interpreter.
docs/design.md row updated.
2026-11-22 09:47:43 -03:00
627b0d6ae2 docs: record slot 146 Barrier call-site evidence (D3D-201) 2026-11-22 04:46:50 -08:00
58919a9faa tools: resolve PSIN name-hash members against known resource names
psin_names.py walks PSIN instance data with psin_data.py and looks up every
u32 hash member (joaat of the lower-cased name) and u64 hash member
(MurmurHash3 x64 low 64 bits) in a dictionary from rpf9_names.py or name
lists, with a salted control. docs/psin.md no longer says PSIN has no model
names. Synthetic tests only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:46:28 +01:00
2a4b05a2d4 docs: the character fragment carries the skeleton and bounds grid, not a skin mesh 2026-11-22 12:46:23 +00:00
2fe13e7385 rdna2spirv: 32-bit global_atomic_* (add, sub, min, max, and, or, xor, swap, cmpswap)
Every global atomic was rejected. The address part of global_mem moves
to global_address, and global_atomic uses it: one OpAtomic* on the
PhysicalStorageBuffer dword (device scope), guarded so inactive lanes
don't touch memory; with glc the old value goes to vdst (the first
operand), cmpswap takes vdata as {DATA, CMP}. The first-read analysis
reads operand 0 as the address when there is no glc. _x2, inc/dec, the
float atomics and slc/dlc stay Unsupported.

tests/semantic/test_global_atomics.py runs them in the interpreter.
docs/design.md row added.
2026-11-22 09:45:21 -03:00
a66b45462c docs: record the tested fragment-child negative for characters 2026-11-22 12:44:35 +00:00
5f50d57f47 Translator: a PS discards by EXEC at its last vm export
The epilogue killed by EXEC at the end of the program, so an EXEC write
after the `exp ... vm` changed which pixels survive. Keep EXEC at that
export, only where a path can write EXEC afterwards: other programs
translate to the same text as before.

The rule is from the RDNA2 ISA reference guide (30-November-2020),
11.1 and 11.2.1. Not measured on hardware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:43:03 +00:00
108ae97c2a docs: the fragment export is a flat 25-vertex grid, not a cube 2026-11-22 12:42:55 +00:00
d88129e39a docs,test(runtime): check per-format SAMPLED_IMAGE_FILTER_MINMAX_BIT in descriptor test 2026-11-22 13:42:46 +01:00
f669f59fd0 docs: slot 67's name and desc, FSPX decoded, and the C++ throw after #965
d3d12_command_objects.md 3.5a: slot 67 is DeserializeComputePipelineStateX
with its full desc (kind 0, 1, 6, 7 pointer/size pairs), and the open
"what FSPX holds" line now points at fspx.md (13 of 29 translate).
d3d12_vulkan.md A.3: the same name, and the throw: before #965 it carried
an image base of 0; with #965 it carries the DLL's base and still reaches
the caller (fsr_dispatch_test, LEONIDA_FSR_NO_STANDIN=1).
2026-11-22 13:42:04 +01:00
07918ddae6 docs: fspx.md, the FSPX format and what translates
The directory as the DLL's reader (RVA 0x1a20) and pipeline function
(RVA 0x4aa0) use it, with device slot 67's descriptor; kind 0 field by
field, each with how far it was checked (thread-group size measured
against PSV0 in 29/29; wave size, RSRC1 and RSRC2 inferred from the code);
the 36-byte prologue carrying kind 7's hash (29/29); why --mcpu gfx1030;
the 89 VOP3P words llvm-mc rejects; and the per-program translation
status: 13 of 29 translate and pass spirv-val, the 13 that use dot4 do not.
2026-11-22 13:42:04 +01:00
ef4f6b5227 docs: correct the fragment shape, normal-map keys and token notes 2026-11-22 12:41:08 +00:00
cd71e717ce docs: scope the full-body negative to lucia-named records 2026-11-22 12:41:08 +00:00
843f2e379f docs: make the character re-count snippet runnable in PowerShell 2026-11-22 12:41:07 +00:00
65e185f7a9 D3D-162: refuse footprint dispatches inside statistics queries 2026-11-22 13:41:02 +01:00
53064a29fa hw_oracle: a MODE that gfx1170+ cannot set is reported, not assembled (FUZZ-43)
AMD clang rejects .amdhsa_ieee_mode and .amdhsa_dx10_clamp on gfx1170+
(GFX11.7 and GFX12, where the behaviour is fixed). A kernel asking for
either reached the assembler, and when a chunk held only such kernels the
run died with 'the assembler rejected every program in a chunk'.

asm.mode_skip_reason names the field and the architecture; Oracle.run
returns that reason for those kernels and never assembles them, so the
others still run and the MODE probes fail with a clear message. The
denormal and rounding fields are unaffected.

tests/test_hw_oracle.py covers the reason per architecture, a mixed run
and a run where every kernel is skipped. docs/shader_validation.md notes
it.
2026-11-22 09:41:01 -03:00
65ef3d2d89 Merge remote-tracking branch 'upstream/main' into ag/d3d12-sampler-minmax 2026-11-22 13:40:53 +01:00
08986b18c8 Merge remote-tracking branch 'upstream/main' into ag/d3d12-volume-min-lod
# Conflicts:
#	docs/d3d12_vulkan.md
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/test/d3d12_descriptor_test.cpp
2026-11-22 13:39:39 +01:00
8ce35a26a9 Merge pull request #1605 from Luiz Neves 2026-11-22 07:38:30 -05:00
0c1c698f34 Merge pull request #1598 from Luiz Neves 2026-11-22 07:38:28 -05:00
65b6cd6833 Merge pull request #1597 from Nikolas Sturm 2026-11-22 07:38:28 -05:00
83f13ed569 Merge remote-tracking branch 'origin/main' into rt/xdxr-gpu-builder-merge
# Conflicts:
#	runtime/CMakeLists.txt
2026-11-22 13:38:24 +01:00
868f3f8153 Merge pull request #1584 from AlxcBTW 2026-11-22 07:38:23 -05:00
ad2f96798d Merge pull request #1579 from dcastell1
# Conflicts:
#	docs/testing.md
2026-11-22 07:38:21 -05:00
2074a3e311 Merge pull request #1570 from bobcatchris 2026-11-22 07:38:17 -05:00
0dd6bb051c Merge pull request #1569 from Vonsek 2026-11-22 07:38:16 -05:00
4717f13f7c Merge pull request #1565 from Vyral1978
# Conflicts:
#	docs/design.md
2026-11-22 07:38:15 -05:00
713b00e691 Merge pull request #1563 from Kam471
# Conflicts:
#	docs/README.md
2026-11-22 07:38:14 -05:00
486031daa2 Merge pull request #1562 from AlxcBTW 2026-11-22 07:38:12 -05:00
1ccaeef0c2 Merge pull request #1559 from Sanonymous01 2026-11-22 07:38:11 -05:00
5987ffb0a3 Merge pull request #1558 from Kam471
# Conflicts:
#	docs/README.md
#	docs/design.md
#	docs/models.md
2026-11-22 07:38:11 -05:00
41557027b6 Merge pull request #1551 from HQasper 2026-11-22 07:38:08 -05:00
6e08ea85bd Merge pull request #1546 from liang-kai-shui 2026-11-22 07:38:07 -05:00
d87b14012c Merge pull request #1545 from abilliontokens 2026-11-22 07:38:06 -05:00
b1fbb713e2 Merge pull request #1543 from Ewann 2026-11-22 07:38:05 -05:00
7bf0e941fb Merge pull request #1534 from Kam471
# Conflicts:
#	docs/README.md
#	docs/character_models.md
2026-11-22 07:38:04 -05:00
f3e6d5a9b4 Merge pull request #1523 from AlxcBTW 2026-11-22 07:38:02 -05:00
ca2e702e7a Merge pull request #1516 from Jolymmiles
# Conflicts:
#	docs/testing.md
2026-11-22 07:38:02 -05:00
11380bbbd6 Merge pull request #1511 from zneel 2026-11-22 07:38:00 -05:00
12eab0b570 Merge pull request #1489 from AlxcBTW 2026-11-22 07:38:00 -05:00
8bf46bd30e Merge pull request #1419 from Jan Trencansky 2026-11-22 07:37:55 -05:00
6b57c9498e Merge pull request #939 from Tim Elery 2026-11-22 07:37:53 -05:00
814e506179 Merge pull request #558 from omar-akermi 2026-11-22 07:37:53 -05:00
ce7e042e6e Merge pull request #495 from Aminecsmc 2026-11-22 07:37:52 -05:00
4c544f5a79 Merge remote-tracking branch 'origin/main' into hw-oracle-image
# Conflicts:
#	tools/image_fuzz.py
2026-11-22 13:37:42 +01:00
1556d9c4db Merge main (99f99890) into d3d-51-command-list-rules
Conflicts in d3d12_com.cpp and d3d12_vulkan_device_test.cpp: both sides kept.

d3d12_debug_markers_test recorded two lists into one allocator at once, which
this branch rejects as the PC runtime does; its second list now has its own
allocator. The device-removed wording in the docs and the test matches main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:36:11 +01:00
6877ac6c63 rdna2spirv: ds_wrxchg_rtn_b64, ds_wrxchg2_rtn_b64 and ds_wrxchg2st64_rtn_b64
Each 64-bit element is exchanged one dword at a time with a 32-bit
OpAtomicExchange: both dwords take DATA, so the memory ends as a 64-bit
exchange leaves it, without Int64 atomics on Workgroup memory. The
returned pair is two reads and can be torn by a concurrent 64-bit op on
the same element. The 2 forms address their elements as ds_write2_b64
does (offset * 8, x64 for st64); every exchange runs before vdst is
written.

tests/semantic/test_lds_wrxchg_b64.py runs them in the interpreter.
docs/design.md row added.
2026-11-22 09:34:25 -03:00
b94ff2643a docs: record the levels.rpf recovery count at e293917 (343,327 models) 2026-11-22 12:34:20 +00:00