Commit Graph

1613 Commits

Author SHA1 Message Date
f3b4e69b90 Merge pull request #1813 from SuarezPM 2026-11-22 09:48:23 -05:00
23c6147946 Merge pull request #1811 from Vonsek 2026-11-22 09:48:23 -05:00
b689b28967 Merge pull request #1810 from Tayar 2026-11-22 09:48:22 -05:00
6fb8ba8d2e Merge pull request #1806 from Dmitry Bykov 2026-11-22 09:48:21 -05:00
6ffa0e2aa8 Merge pull request #1800 from Leonardo Guimaraes 2026-11-22 09:48:18 -05:00
b489f06dba Merge pull request #1792 from Luiz Neves
# Conflicts:
#	docs/design.md
2026-11-22 09:48:17 -05:00
3b7cd5e4bf Merge pull request #1791 from AlxcBTW 2026-11-22 09:48:16 -05:00
cd6d8ac35a Merge pull request #1787 from CowDeV 2026-11-22 09:48:15 -05:00
773807f451 Merge pull request #1774 from Shadman PC
# Conflicts:
#	docs/design.md
#	docs/shader_validation.md
2026-11-22 09:48:15 -05:00
18d6f165cb Merge pull request #1759 from BetterJdue
# Conflicts:
#	docs/design.md
2026-11-22 09:48:12 -05:00
eceeb9f5a5 Merge pull request #1653 from Felix Croasdale 2026-11-22 09:48:06 -05:00
b83f74f6d2 Merge pull request #1612 from mokkymiah 2026-11-22 09:48:03 -05:00
51022b3774 Merge pull request #1534 from Kam471
# Conflicts:
#	docs/character_skeleton.md
2026-11-22 09:48:02 -05:00
1f7a328a76 Merge pull request #1449 from Kam471 2026-11-22 09:48:00 -05:00
b9e91c2af8 Merge pull request #1398 from ezwinxdlmao 2026-11-22 09:48:00 -05:00
134b29a057 Merge pull request #789 from eIBart0 2026-11-22 09:47:59 -05:00
4056172304 docs/testing.md: one overlay-layer row, with the elevated-terminal cause (TEST-228 follow-up)
Both commits of #1653 and #1656 landed by hand on main, which left the
Known-problems table with the implicit-layer row twice and three
overlapping overlay rows, and the validation paragraph saying overlays
ignore VK_LOADER_LAYERS_DISABLE=~implicit~ outright. Keep one
implicit-layer row and the overlay row that has @Rainmaker33's finding
(the loader ignores the variable only in an elevated terminal, and RTSS
adds STORAGE only while it runs), and correct the paragraph to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:40:49 -06:00
1a098361e5 docs: decode the cs_mandy model id and the shared cutscene body 2026-11-22 14:37:29 +00:00
4847c04c7b docs: record the Mandy mission binding and the generic mannequin body 2026-11-22 14:37:14 +00:00
57f0b4d3e9 docs: scope the Mandy negative to this 108-file package 2026-11-22 14:37:14 +00:00
9620edd22d sop2_b32_srcs: mask reads only when the result goes to EXEC / VCC
s_and_b32 s20, exec_lo, 1 put each lane's bit in s20, which lane_masks.py
classifies as data when the other operand is a constant, so s_bcnt1 of it
counted 32 / 0 instead of 1 (found by @Pierre-Kookis on #1792, reproduced
on AMD RDNA2 and an RTX 4070 Ti SUPER; main was right). The mask read is
now only for an EXEC / VCC destination; into a plain SGPR the op keeps the
data read. test_mask_src_sgpr_const.py has the case.
2026-11-22 11:36:18 -03:00
96d0b2455f docs: 42/52 after main's global-atomics fix
003e7812 loads EXEC before OpSelectionMerge in global_atomic and global_atomic_x2,
so FindTreelets assembles and validates. The 10 left are still the four rules.
2026-11-22 11:34:56 -03:00
5ecb637a02 Docs: the embedded shader containers; the BVH builder's programs are console FSSM
The 52 containers in XboxBvhBuilder.dll carry an LLVM bitcode blob and an
XDAT/XBCH record. The console record decompresses to FSSM: 52/52 unpack, 42
translate, 41 pass spirv-val with the existing translator. The 10 left need
global_atomic_fmax/fmin, buffer_load_ushort and tbuffer_load_format_x (format
8), plus one OpSelectionMerge emission bug. Correct the DXIL-front-end premise
in d3d12_vulkan.md (4.8, 7.1, 7.2, M6, Q7, Q20, A.2) and index the new note.
2026-11-22 11:34:05 -03:00
cd6e21be84 Translator: tbuffer_store_format_* with the instruction's format
tbuffer_store_format_* and its d16 forms were Unsupported, though every
tbuffer_load_format_* form translates. They now go through buffer_store
with the instruction's format, as the loads go through
buffer_load_format:
- only that format is encoded, with no branch on the V#'s FORMAT;
- the bounds check uses its element size;
- a V# whose FORMAT is 0 (INVALID) still disables the store, as measured.
  (@Vonsek covers the MTBUF loads and @opit80 the raw MUBUF accesses
  through such a V#.)

The format parsing the loads did inline becomes mtbuf_format(), shared by
both: no modifier is GFX10's default BUF_FMT_8_UNORM, and a format
FORMATS has no encoder for stays Unsupported. read_before_write_vgprs
now counts a tbuffer store's data VGPRs as reads, as for buffer_store.

cs_tbuffer_store.asm stores into 13 sentinel-filled regions through V#s
whose format differs from the instruction's or is 0, and reads them
back. Every
expected word was measured by running the same body natively on a
Radeon 680M (gfx1035, RDNA2); wave32 and wave64 gave the same 52 words:
- the instruction's format decides the encoding, the element and the
  bounds;
- components the format has but the store doesn't give are 0, and extra
  ones are dropped;
- the default format is one byte, and its neighbours are kept;
- a FORMAT-0 V# leaves the region untouched.

check.py and run_gpu_tests.py compare the dump. The semantic fixture
runs through the interpreter in tests/semantic/test_tbuffer_store.py,
which fails on the old translator (Unsupported). It also fails on
versions that take the bounds from the V#'s element (5 words differ),
take the format from the V#, fill missing components with anything
but 0 (1 word), or drop the FORMAT-0 guard (2 words).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:33:18 +02:00
6275ccc647 rdna2spirv: a constant used as a lane mask through an SGPR (or in a b32 SOP2 on EXEC) gives each lane its bit
s_mov_b32 s20, 0x3ffffc00; s_and_saveexec_b32 s6, s20 left all lanes on:
mask_src read the SGPR's raw value, the same non-zero constant in every
invocation. The 32-bit bitwise SOP2 ops read constants raw too, so
s_and_b32 exec_lo, exec_lo, 0xff00 (inline or in an SGPR) kept every
lane, and s_mov_b32 exec_lo, sN did the same.

mask_src now takes bit L of an SGPR holds_lane_mask doesn't flag (the
high SGPR of a pair for lanes 32-63 in wave64). In wave32, a bitwise SOP2
on masks (EXEC/VCC destination or a mask source) reads both operands
through mask_src (sop2_b32_srcs), and s_mov_b32 exec_lo/hi from a non-mask
SGPR takes each lane's bit. A real mask is unchanged (0 / ~0 per lane).

tests/semantic/test_mask_src_sgpr_const.py covers saveexec, SOP2 on EXEC
(inline and SGPR), exec_lo from an SGPR, v_cndmask, a wave64 pair and
masks from compares. cf_diff (self-test, 800 runs) and salu_diff (500)
pass. docs/design.md row updated.
2026-11-22 11:30:03 -03:00
023b82257a docs: add the Russian quickstart
Adds docs/i18n/ru/quickstart.md, translated from the current English sources
(README.md, CONTRIBUTING.md, docs/testing.md) and synced to a0acd33. It covers
what the project is, the own-copy and no-game-data rules, prerequisites, both
build paths, the stage order and the flags around it, the Linux path, common
troubleshooting, and where to claim work and post GPU results.

The row goes into the docs/i18n/README.md table with the maintainer, and the
language is listed in docs/README.md. No build or CI changes; the daily-moving
status table and the format notes stay out, as docs/i18n/README.md asks.
2026-11-22 17:28:02 +03:00
40e17da629 fix(translator): round v_fma_mixlo/hi_f16 once to f16 (SHADER-297)
Hardware measurement on RDNA2 (gfx1036, finding 7079901079) confirms that
v_fma_mixlo_f16 / v_fma_mixhi_f16 round the exact fma once, straight to
f16, across all rounding modes (7 of 7 discriminating cases in
tools/fma_mix_probe.py match single rounding). The translator previously
double-rounded in nearest-even mode (f32 Fma then f16 narrow).

Change v_fma_mixlo_f16 / v_fma_mixhi_f16 to use Gen.fma_mix_odd across all
modes, which rounds to odd at f32 so that narrowing to f16 gives the
exact single-rounded result in both nearest-even and toward-zero modes.

Update tests/test_fma_mix_probe.py and docs/shader_validation.md to reflect
the RDNA2 hardware measurement, and add discriminating semantic tests in
tests/semantic/test_valu_fma_mix.py.

AI-assisted.
2026-11-22 20:25:59 +06:00
0a43f80940 Runtime: drop the Intel minimum-LOD rounding from D3D-219
Rounding the view's minLod to the nearest level fixed point-filtered
samples on drivers that use minLodInteger, but integer texel fetches
and gathers use floor(minLod) on every driver, as D3D11.3 5.8 also
requires for ld and gather4. With a 0.75 clamp the rounded view gave
1.0, so a Load of mip 0 would read zero. No single view value is right
for both, so the sampling fix belongs in the translator (a MinLod image
operand on sample ops only). This keeps the bindless capacity fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:25:47 +01:00
ab55405c2c Tests: GPU coverage for ds_cmpst_b32 and the b64 LDS 2-address forms 2026-11-22 14:24:28 +00:00
364d9a465a feature_scan: INVALID is modelled; d3d12_vulkan.md answers open question 16
A literal V# word 3 with FORMAT 0 (an unbound descriptor) reads 0 on the
hardware and in the translator, so it is not listed as a format the
translator lacks. Row 16 gets the counts over the 1.0.2.1 corpus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:23:28 +01:00
9dc08d2596 docs(pt-BR): address quickstart review feedback 2026-11-22 11:22:05 -03:00
2d2eec9a75 M4 review: storage-image init only on shader-running non-copy submissions, ordered for other queues
- The zero-fill/GENERAL init of images with a UAV view no longer drains on a copy
  queue or in a submission that runs no dispatch or draw; every other queue's next
  submission waits on the initializing one's progress semaphore.
- storage_pending_ is a set (UAV descriptors are rewritten every frame).
- write_buffer_uav: FirstElement and element count are checked against
  Width / unit, so the byte range cannot overflow.
- docs: M4 row names the remaining limitation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:21:28 +01:00
6b5c01da49 Merge remote-tracking branch 'upstream/main' into d16-rounding-probe
# Conflicts:
#	docs/design.md
#	tools/rdna2spirv.py
2026-11-22 15:19:54 +01:00
7edd7a187d docs: the Opus length check must read decoded frames, not the granule duration 2026-11-22 14:15:48 +00:00
f61946cfe1 Merge pull request #1795 from AimLogin 2026-11-22 09:15:24 -05:00
ef15a21ba0 Merge pull request #1789 from romainveurrier 2026-11-22 09:15:22 -05:00
959505bae1 Merge pull request #1787 from CowDeV 2026-11-22 09:15:21 -05:00
625a4f72f4 Merge pull request #1786 from dracbat 2026-11-22 09:15:20 -05:00
46b13320e3 Merge pull request #1783 from Leonardo Guimaraes 2026-11-22 09:15:19 -05:00
963359576d Merge pull request #1774 from Shadman PC
# Conflicts:
#	docs/design.md
#	docs/shader_validation.md
2026-11-22 09:15:16 -05:00
8da1ad785f Merge pull request #1769 from S1m0ne1997 2026-11-22 09:15:12 -05:00
23e8f61274 Merge pull request #1763 from SirAmong
# Conflicts:
#	docs/design.md
2026-11-22 09:15:10 -05:00
2dc3ac3447 Merge pull request #1754 from Jan Trencansky 2026-11-22 09:15:06 -05:00
b78819439f Merge pull request #1753 from Serrambi 2026-11-22 09:15:05 -05:00
12e9e7b08f Merge pull request #1750 from shoal-rat
# Conflicts:
#	docs/design.md
2026-11-22 09:15:04 -05:00
d5b68b77dc Merge pull request #1746 from Youssef Rahmouni
# Conflicts:
#	docs/design.md
2026-11-22 09:15:02 -05:00
445e79b2c7 Merge pull request #1743 from romainveurrier 2026-11-22 09:15:00 -05:00
c0c0e8d98d Merge pull request #1741 from Kam471 2026-11-22 09:14:59 -05:00
da574cb90e Merge pull request #1714 from SWAYAM 2026-11-22 09:14:53 -05:00
52dc48074d tools/imhex: ImHex pattern for PSIN containers
psin.hexpat lays out a container as docs/psin.md describes it: the
big-endian first-section offset, the instance-data block table (rows,
the pppppppp end) and its blocks as raw bytes, the section chain, LSCH
struct headers and members and LENM enums and values (header count by
the fill-exact rule psin_index.py uses), the LSNS block table with
opaque 16-byte records, the LRSC 0DRP version and root block, and the
CHKS file size. A section past the end of a truncated stream is shown
as raw bytes.

tests/test_imhex_patterns.py builds a synthetic container from the
invented schema in test_psin_index.py, checks it with psin_index.parse
and psin_data.block_table, and when ImHex is installed compares the
pattern's output with both, plus a container cut inside LENM.
2026-11-22 11:14:51 -03:00