Skip to content

rdna2spirv: typed pixel render-target outputs (OSG1 uint/sint) and compressed exports decoded by producer (pknorm u16/i16) - #3544

Open
evilclanker9000 wants to merge 5 commits into
ItsNotRexed:mainfrom
evilclanker9000:claude/hw4-mrt-types
Open

evilclanker9000 wants to merge 5 commits into
ItsNotRexed:mainfrom
evilclanker9000:claude/hw4-mrt-types

Conversation

@evilclanker9000

@evilclanker9000 evilclanker9000 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Lucas · project thread

Claimed in the coordination issue as: EGEN-PS-MRT-TYPES, #3381 (comment)

Depends on: #3499 and #3061 (VKH_COLOR_FORMAT for the GPU tests' render targets; this branch is on top of them, only the last commit is new).

What and why

The translator declared every pixel-shader render-target output as a float vec4 and decoded every compressed (compr) export as two f16 pairs. On RDNA2 the export format follows the render target. I measured this with tools/ps_oracle.py --format on gfx1036 (#3499):

  • a compr export's 16-bit halves are f16 for an FP16_ABGR target (RGBA16F, RG16F, RGBA8, RGB10A2);
  • they reach a 16-bit UNORM, SNORM, UINT or SINT target bit for bit.

So a pixel shader writing an integer target, or a 16-bit normalized target through v_cvt_pknorm_* + compr, came out wrong (finding: #3381 (comment)).

The shader does not name its render target, so the translator now uses what it has:

  1. Output signature. An SV_Target (system value 64) that the PS OSG1 declares uint / sint is now a uvec4 / ivec4 output. An uncompressed export's dwords go to it unchanged; a compressed export's halves are zero- / sign-extended.
  2. Producer of the exported registers. On a float SV_Target, a compr export whose two registers are only ever written by v_cvt_pknorm_u16_f32 / v_cvt_pknorm_i16_f32 (plain v_mov_b32 copies are followed) is decoded as unorm16 (u / 65535) / snorm16 (max(s / 32767, -1)). A UNORM16 / SNORM16 target converts that back to the same bits; the test checks all 65,536 unorm and every snorm value v_cvt_pknorm_i16_f32 can write.
    • Registers written by any other op keep the f16 decode. This is the common FP16 case, and the same output as before.
    • Halves from v_cvt_pk_u16_u32 / v_cvt_pk_i16_i32 on a float target, and registers with producers of two kinds, are Unsupported rather than guessed.
    • An untraced register keeps the old f16 decode instead of being refused, so shaders translated today are unaffected.

Changes:

  • tools/rdna2spirv.py: output_target_types (OSG1 SV_Target component types), compr_kinds (producer analysis), the typed path and the unorm16/snorm16 decode in Gen.export, and per-output pointer types.
  • GPU fixtures ps_mrt_uint, ps_mrt_sint (RGBA32_UINT / RGBA32_SINT targets) and ps_compr_unorm16, ps_compr_snorm16 (RGBA16_UNORM / RGBA16_SNORM targets, compared texel by texel). Each word is derived in the header.
  • build.py gets TARGET_CASES (each test's OSG1 component type and color target) and its DXBC container. check.py and scripts/run_gpu_tests.py set VKH_COLOR_FORMAT for these tests and compare 8-byte texels.
  • The same shaders as semantic fixtures. tests/semantic/test_mrt_types.py has hand constants, a Python reference, the round-trip check, the uncompressed-integer, copy-following and f16-kept cases, and the refusals.
  • docs/design.md: a contract row.

Tested

  • python -I scripts/run_gpu_tests.py --filter ps_mrt and --filter ps_compr: all four PASS 4096/4096 pixels exact on NVIDIA GeForce RTX 5080 (driver 616.92) and on the AMD Radeon iGPU (gfx1036, driver 26.10.1), selected with LEONIDA_VK_DEVICE.
  • The four bodies, run as the real pixel shader through tools/ps_oracle.py on gfx1036 into 16-bit targets, give the fixtures' words: 0x8000ffff 0x40000000, 0x40008001 0xc0002000, and 0x80017fff 0xc0003c01 for the uint and sint ones.
  • Red without the change, on both GPUs: all four fail 4096/4096 (e.g. unorm16 got 0x0, 0xffff0000 for 0x8000ffff, 0x40000000).
  • Negative control: decoding every compr export as f16 again, and sign-extending with OpBitFieldUExtract, fail ps_compr_* and ps_mrt_sint on both GPUs and fail 7 semantic tests. Reverted.
  • python -m unittest discover -s tests/semantic (4,151 tests): OK. python tests/semantic/regen_fixtures.py --check: clean. python -I tests/test_shader_checks.py: OK.
  • All pixel tests, python -I scripts/run_gpu_tests.py --filter ps_: 84/92 passed and 8 skipped (device or harness skips such as ps_m15), 0 failures on both GPUs, the existing compressed-export fixtures included.

AI-assisted.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

…producer

An SV_Target the PS output signature declares uint / sint becomes a
uvec4 / ivec4 output: an uncompressed export's dwords go to it as they
are, a compressed export's 16-bit halves zero- / sign-extended. On a
float target, a compressed export whose registers come only from
v_cvt_pknorm_u16_f32 / v_cvt_pknorm_i16_f32 is decoded as unorm16 /
snorm16, so a UNORM16 / SNORM16 target stores the same bits; other
producers keep the f16 decode, integer or mixed producers are refused.

Measured with tools/ps_oracle.py --format on gfx1036: a compressed
export reaches 16-bit UNORM/SNORM/UINT/SINT targets bit for bit. GPU
tests ps_mrt_uint/sint and ps_compr_unorm16/snorm16 (targets set through
VKH_COLOR_FORMAT), semantic tests, docs/design.md row (EGEN-PS-MRT-TYPES).

AI-assisted.
docs/shader_validation.md
tools/rdna2spirv.py

AI-assisted.
@evilclanker9000
evilclanker9000 marked this pull request as ready for review November 22, 2026 21:04

@jeremygold02 jeremygold02 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 4f0c41fb3241870230483c02918f99e901c3a5fe. The four supplied typed-target fixtures pass on the RTX 5070. I found one additional straight-line case where the producer analysis rejects a valid shader.

Register reuse after an export. With a synthetic OSG1 declaring two float render targets, both versions of this five-instruction test assemble for gfx1013:

v_cvt_pkrtz_f16_f32 v2, 1.0, -2.0
exp mrt0 v2, v2, v2, v2 compr
v_cvt_pknorm_u16_f32 v2, 1.0, 0
exp mrt1 v2, v2, v2, v2 done compr vm
s_endpgm

The translator reports compressed export of mixed halves to a float target. Changing only the second producer and export to use v3 translates successfully and the interpreter returns MRT0 = (1, −2, 1, −2) and MRT1 = (1, 0, 1, 0). In the original, the later write cannot reach the first export, and it fully defines the value used by the second. Could you add this regression and have compr_kinds consider which writes can reach each export? The case reproduces on both PR revisions.

GPU checks. Rebuilt the Windows harness and retranslated the fixtures on this revision. Each 64 × 64 frame matched all 4,096 expected pixels with exact bits, and each complete readback matched the corresponding result at 2705d5b8. This covered R32G32B32A32_UINT, R32G32B32A32_SINT, R16G16B16A16_UNORM and R16G16B16A16_SNORM, 16,384 pixels total.

CPU checks. All nine focused semantic tests passed. A separate synthetic FP16 pack into a uint target preserved the four half-word bit patterns. I also translated one local package pixel shader with its own DXBC and FSSM on main and on this PR. Both modules passed Vulkan 1.2 validation. For its declared uint target, three controlled interpreter runs on the PR returned the expected integer half words when I changed one synthetic buffer word or scalar. The package shader was tested in the CPU interpreter.

Intel Core Ultra 7 265K, NVIDIA GeForce RTX 5070 (621.01, subgroup 32), Windows 11 Home 25H2 build 26200.9974. Integrated Intel Graphics (32.0.101.9150) was idle. LLVM 21.1.8 and SPIRV-Tools 2026.1 under WSL. The reproduction above is synthetic. Game-derived inputs stayed local. AI-assisted.

@crastinator

Copy link
Copy Markdown
Contributor

Tested 4f0c41f merged into main f847748c (clean merge) on AMD Radeon RX 6700 XT (Navi 22, gfx1031, subgroup 32..64), RADV Mesa 26.3.1, CachyOS, Linux 7.3.5, GCC 16.2.1, llvm-mc 23.1.5: pass.

  • New tests pass natively: ps_compr_snorm16 (4096/4096 pixels exact); ps_compr_unorm16 (4096/4096 pixels exact); ps_mrt_sint (4096/4096 pixels exact); ps_mrt_uint (4096/4096 pixels exact).
  • Whole run_gpu_tests.py: 189/203 native, 189/203 with LEONIDA_W64_EMULATE=1 (the skips are the D3D12-only fixtures and ps_w64x_readlane, as on main). ctest 41/41.
  • tests/semantic/test_mrt_types.py, tests/test_ps_oracle.py: 19 passed, 2 skipped, 30 subtests passed.

No game files. AI-assisted (Claude Code).

@jeremygold02

Copy link
Copy Markdown
Contributor

One more GPU result at 4f0c41fb for the full-word case. This is separate from the earlier register-reuse review. In a package-local pixel shader, two independently varied indices are combined into a 32-bit word before the shader's half conversion. Six compute shaders use a matching four-component image layout and index separate records with the two halves of the second component.

I ran the unmodified translated pixel module with a synthetic vertex stage, test descriptor contents, and an R32G32B32A32_UINT target. A direct 32-bit control used the same input memory, scalar and target.

Before conversion Selected shader, Y Direct UINT control, Y
0x3f800007 0x00003c00 0x3f800007
0x3f800008 0x00003c00 0x3f800008
0x3f802000 0x00003c01 0x3f802000
0x40000007 0x00004000 0x40000007

All four pixels in each of eight 2×2 draws matched. On this translation the first two indices have already become indistinguishable when the target is read back. The frame's original Xbox export configuration, attachment identity and producer-to-dispatch scheduling are still open. This gives a concrete case for testing those inputs before relying on a uint signature alone. Material-pass write-up

Intel Core Ultra 7 265K, NVIDIA GeForce RTX 5070 (driver 621.01 / 32.0.16.2101, subgroup 32), Windows 11 Home 25H2 build 26200.9974. The GPU ran the producer and direct control. The six readers were checked on CPU. AI-assisted.

@nschlaepfer

Copy link
Copy Markdown
Contributor

Independent Apple M3 Max verification of @Vonsek’s typed pixel-output change at c567aaeb. The synthetic unsigned and signed fixtures both failed integer pipeline creation on the parent. On this PR, each drew all 4,096 expected pixels. Changing just the declared output signature back to float caused pipeline creation to fail again on those integer attachments. A conventional float-target control passed on both revisions. SPIR-V validation alone had passed for the original modules as well.

I also tested one package visibility-buffer pixel shader selected through an unambiguous material-to-effect lookup. With controlled vertex outputs, supplied uniforms and an integer render target, all 12,288 pixels across three draws matched the independent reference. For this shader the expected unsigned values are the zero-extended bit patterns of its explicit half conversion. This exercises the selected pixel shader in isolation. The retail runtime’s selected pass, target width and original vertex producer remain separate checks.

AI-assisted verification. Only public fixture descriptions and aggregate outcomes are included.

Conflicts: docs/design.md, docs/shader_validation.md, tools/rdna2spirv.py
(this branch's copies of rows and sections that main later changed were
replaced by main's; only this PR's changes on top are kept: the typed
render-target outputs, the ps_oracle --format support, the design.md row.)

AI-assisted.
@gertify

gertify commented Nov 23, 2026

Copy link
Copy Markdown

Tested f27e68b on Intel UHD 770 (driver 32.0.101.7088), Windows 11, MSVC 19.44, Vulkan SDK 1.4.357.0, LEONIDA_VK_VALIDATION=1: pass.

  • scripts/run_gpu_tests.py --filter ps_mrt and --filter ps_compr:
    • PASS ps_mrt_uint 4096/4096 pixels exact
    • PASS ps_mrt_sint 4096/4096 pixels exact
    • PASS ps_compr_unorm16 4096/4096 pixels exact
    • PASS ps_compr_snorm16 4096/4096 pixels exact
      LEONIDA_VK_DEVICE=NoSuchDevice fails with "no Vulkan physical device matches".
  • --filter ps_ with LEONIDA_VK_DEVICE=Intel: 80/103 passed, 23 skipped, 0 failed.
  • tests/semantic test_mrt_types.py: Ran 9 tests, OK. tests/test_shader_checks.py: Ran 79 tests, OK.

AI-assisted.

@tylerstraub

Copy link
Copy Markdown
Contributor

Tested f27e68b5c40ae1396d055809fdf1420673a1e591 on NVIDIA GeForce RTX 5090, 595.99.02 (Linux).

All four stock synthetic fixtures at f27e68b5 matched 4,096/4,096 pixels each on Linux RTX 5090: ps_mrt_sint, ps_mrt_uint, ps_compr_snorm16, and ps_compr_unorm16.

I also checked sign extension at the endpoints in a local variant of the compressed signed export. Packed words 0x80007fff and 0xffff0000 produced RGBA32_SINT channels 32767, -32768, 0, -1 at every pixel. All five shader translations passed SPIR-V validation.

AI-assisted verification.

@editrice

Copy link
Copy Markdown

Tested exact head f27e68b5 on RTX 5070 / 621.01, subgroup 32, Vulkan SDK 1.4.363.1. Three local synthetic pixel modules plus the vertex stage translated and passed spirv-val (4/4). Vulkan 8×8 readbacks were exact at all 64 texels: raw RGBA32_UINT preserved 7fc00001 80000000 ffffffff 01234567; runtime v_cvt_pknorm_u16_f32 into RGBA16_UNORM produced 0000 0000 ffff 8000 for NaN/−1/+∞/0.5 and 0001 7fff 8000 fffe for four rounding-boundary inputs. A separate host oracle reconstructed each f32 as an exact rational and applied clamp plus nearest-even rounding. The previously reported valid register-reuse reproducer still fails unchanged at this head with Unsupported: compressed export of mixed halves to a float target; compr_kinds still aggregates non-reaching writes. Thus the newly exercised typed/readback paths check out, but the existing changes-requested blocker remains. No AMD-native claim. Synthetic data only; AI-assisted.

@douline

douline commented Nov 23, 2026

Copy link
Copy Markdown

Tested f27e68b on Intel Arc A770 (DG2), Mesa ANV 25.2.8, Ubuntu 24.04 / Linux 7.0, llvm-mc 21.1.8: pass. The four new fixtures are exact: ps_compr_snorm16, ps_compr_unorm16, ps_mrt_sint and ps_mrt_uint (4096/4096 pixels each). tests/semantic test_mrt_types.py OK, tests/test_ps_oracle.py OK (2 skipped). run_gpu_tests.py: 160/221 native, 191/221 emulated. The only failures are the two known Mesa 25.2.8 ones from main (cs_fmt_int_narrow, cs_signed_zero_nan; #166), so no regressions. No game files. AI-assisted (Claude Code).

@GustawMatuszewski

Copy link
Copy Markdown

Tested f27e68b on NVIDIA GeForce RTX 5060 Laptop GPU (the mobile chip, Blackwell, 32-lane subgroups), driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04.1 (Linux):

  • tests/semantic/test_mrt_types.py: 9/9 OK
  • runtime/test/shaders/build.py: 246/246 translated, 246 pass spirv-val (the 242 baseline plus the four new fixtures)
  • check.py on the GPU: 157 of 192 pass, 35 skipped, 0 failed; ps_mrt_uint, ps_mrt_sint, ps_compr_unorm16, ps_compr_snorm16 all ok
  • scripts/run_gpu_tests.py: 173/221 passed, 47 skipped; the four new fixtures 4096/4096 pixels exact each
  • the one failure, cs_exec64, lost the device at vkCreateDevice (-4) — the 595.99.02 Xid 32 channel-error flake on this laptop GPU (the row proposed in docs/testing.md: Known problems row for the Xid 32 channel error that fails one or two GPU tests per full run #5118), not from this PR: it passes 1/1 with --filter on the same build, and the kernel log shows NVRM: Xid 32 during the full run

No game files; the repo's synthetic fixtures only. AI-assisted (Claude Code): it built the PR, ran the suites and wrote this.

@gertify

gertify commented Nov 23, 2026

Copy link
Copy Markdown

Tested f27e68b on Intel UHD 630 (CFL GT2, subgroup 8..32), Mesa 25.2.8 ANV, Ubuntu 24.04, LEONIDA_VK_DEVICE=Intel: pass, tested at the stack head (#3499 head 12c5839 and #3061 head 3986b50 are both open and both ancestors of f27e68b).

  • scripts/run_gpu_tests.py --filter ps_compr after a full build: 2/2 passed (ps_compr_snorm16, ps_compr_unorm16). --filter ps_mrt: 2/2 passed (ps_mrt_sint, ps_mrt_uint). LEONIDA_VK_DEVICE=NoSuchDevice on cs_fmt_int_narrow fails with "no Vulkan physical device matches".
  • Full run: 158/221 passed, 61 skipped, FAIL cs_fmt_int_narrow and cs_signed_zero_nan, the two FAILs main 3faac55 also has on this machine (154/217, 61 skipped, earlier run today); the +4 passes and +4 total are the four new ps_compr and ps_mrt rows.

AI-assisted.

@ricardotanaka

Copy link
Copy Markdown

Tested the current head f27e68b5 merged onto main 3faac557 on an AMD Radeon RX 7600 (RDNA3, AMD driver 26.11.2 on Windows, subgroup 32..64), Windows 11 Pro 26200, MSVC 19.44, Vulkan SDK 1.4.363.0, LEONIDA_VK_VALIDATION=1: pass. The AMD run above was RDNA2 on RADV at an older head; this is the AMD Windows driver at the current one.

  • scripts/run_gpu_tests.py --filter ps_mrt and --filter ps_compr: 2/2 each, natively and with LEONIDA_W64_EMULATE=1.
  • Whole run_gpu_tests.py: 206/221, 15 skipped, no failures; ps_compr_snorm16, ps_compr_unorm16, ps_mrt_sint, ps_mrt_uint each 4096/4096 pixels exact. main on this machine gives 202/217 with the same 15 skips, so the 4 new fixtures are the only change. No VUID lines.
  • python -m unittest discover -s tests/semantic -p test_mrt_types.py: OK.

AI-assisted (Claude Code).

@cxchhh

cxchhh commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested f27e68b on Tesla V100 (Volta) + RTX 4090 (Ada), Linux: pass

This adds two more architectures (Volta, Ada) to the RTX 5090, 6700 XT, UHD 770 and M3 results above.

Machines: Tesla V100-SXM2-32GB (Volta, 32-wide, NVIDIA 580.95.05, Ubuntu 24.04) and RTX 4090 (Ada, 32-wide, NVIDIA 570.153.02 user-space Vulkan driver in a Linux container, Vulkan 1.4.303). The 4090 has mesh shaders and fragment barycentrics, so it runs the mesh/barycentric tests the V100 skips. Each run is the PR diff applied to main 3faac557 (clean apply) and compared with unchanged main on the same machine. GPU suite: scripts/run_gpu_tests.py native, and with LEONIDA_W64_EMULATE=1 (V100 also LEONIDA_BARY_FALLBACK=1). Baseline main: V100 161/217 native, 194/217 emulated; 4090 167/217 native, 198/217 emulated; 0 failures anywhere. tests/semantic full suite: main has 6245 tests with the 5 known test_loop_ballot_barrier emulated cases failing (plus one test_vcmp16_opsel spirv-val error from my PATH, identical on every tree).

  • GPU suite: V100 165/217 native, 198/217 emulated; 4090 171/217 native, 202/217 emulated; 0 failures.
  • The four new fixtures ps_mrt_uint, ps_mrt_sint, ps_compr_unorm16 and ps_compr_snorm16 are 4096/4096 pixels exact on both GPUs, native and emulated.
  • test_mrt_types.py: 9 OK. Run against main's translator it gives 7 failures + 1 error.
  • test_ps_oracle.py: 21 OK (2 skipped; the oracle needs AMD).
  • tests/semantic: 6254 tests; the failure list is identical to main's.

AI-assisted (Claude Code).

@lunarminus

Copy link
Copy Markdown

Tested f27e68b5 merged onto main d0835dd9 on an AMD Radeon 760M (RDNA3 iGPU, gfx1103, subgroup 32..64), RADV Mesa 26.3.1, CachyOS Linux: pass

  • The merge was a fast-forward: d0835dd9 is an ancestor of the head, which already merges main 3faac557. So the tree tested is exactly f27e68b5. Runtime built in RelWithDebInfo.
  • scripts/run_gpu_tests.py: 206/221 passed, 15 skipped, 0 failed natively and the same with LEONIDA_W64_EMULATE=1. The new ps_mrt_uint, ps_mrt_sint, ps_compr_unorm16 and ps_compr_snorm16 are each 4096/4096 pixels exact in both modes.
  • Per-test comparison with d0835dd9 without the PR (196/210, 14 skipped, both modes): all 210 tests give the same PASS/FAIL/SKIP in both modes. Besides the 4 new fixtures, 7 more rows come from main commits between d0835dd9 and 3faac557, not from this PR: cs_smem_sconst_off, ps_far_branch, ps_sample_c, ps_sample_c_b, ps_texture_cl and ps_texture_b_cl PASS; ps_m2_literal is SKIP (run by d3d12_m2_textured_test).
  • tests/semantic test_mrt_types.py: 9 tests OK. regen_fixtures.py --check: clean. tests/test_shader_checks.py: 79 OK.
  • Full tests/semantic (6254 tests): 3 failures and 2 errors, all in test_loop_ballot_barrier (emulate subtests). That module gives the same 3 failures and 2 errors on d0835dd9 without the PR, so they are not from this change.
  • tests/test_ps_oracle.py with LEONIDA_PS_ORACLE_BUILD set: 21 tests, OK with 4 skips (the 3 test_other_target_formats subtests and test_patched_code_runs_as_the_pixel_shader). They skip because on RADV ps_oracle runs only GFX10 pixel shaders and this is GFX11. This GPU therefore doesn't check the export-format measurements themselves.

No game files. AI-assisted (Claude Code).

@MertSoylu

Copy link
Copy Markdown

Tested f27e68b on NVIDIA GeForce RTX 4060 Laptop GPU, driver 621.24, Windows 11 (llvm-mc 21.1.8, MSVC from VS 2026 Build Tools): pass.

  • python -I scripts/run_gpu_tests.py --filter ps_mrt / --filter ps_compr: ps_mrt_uint, ps_mrt_sint, ps_compr_unorm16, ps_compr_snorm16 PASS, 4096/4096 pixels exact each.
  • --filter ps_: 106 shaders, 106 translated, 106 pass spirv-val; 94/103 passed, 9 skipped (ps_m* run by the d3d12 tests, ps_w64x_readlane: subgroup 32..32), 0 failed.
  • regen_fixtures.py --check, tests/test_shader_checks.py, tests/test_ps_oracle.py: OK.
  • python -m unittest discover -s tests/semantic (6,254 tests): 3 failures + 2 errors, all in test_loop_ballot_barrier; the same 5 fail on main 3faac55, so not from this PR (finding posted in the coordination issue).

AI-assisted (Claude Code).

docs/design.md
docs/shader_validation.md
runtime/test/shaders/check.py
scripts/run_gpu_tests.py
tests/semantic/regen_fixtures.py

AI-assisted.
@DavidM1911

Copy link
Copy Markdown

Tested b46edbd on two Vulkan devices, Windows 11, Vulkan SDK 1.4.363, MSVC 14.50, llvm-mc 23.1.6 (AMDGPU, LLVM-MinGW build). vk_* test programs rebuilt from this head (they carry VKH_COLOR_FORMAT, which older binaries lack):

  • tests/semantic/test_mrt_types.py: 9/9 OK; tests/test_ps_oracle.py: OK (2 skipped).
  • runtime/test/shaders/build.py: 265/265 translated (ps_mrt_uint/sint, ps_compr_unorm16/snorm16 included), all pass spirv-val.
  • check.py, NVIDIA GeForce RTX 3060 Ti (driver 610.88): ps_mrt_uint ok, ps_mrt_sint ok, ps_compr_unorm16 ok, ps_compr_snorm16 ok — all four new typed-target/compressed fixtures match their expected texel words; 172/207 pass, 35 skipped, 0 failed.
  • check.py, AMD Radeon(TM) Graphics iGPU (Ryzen 9 7900X, gfx1036, driver 24.10.24, 128-byte push constants): the four new pixel fixtures SKIP cleanly ("need 144 push constant bytes"), as do the other pixel tests; 103/207 pass, 101 skipped, 0 failed. The typed-target GPU path is covered by the NVIDIA run; the 128-byte devices get it once the pc-tail fixtures exist.

AI-assisted. No game files.

@shayderrr shayderrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary: rdna2spirv: typed pixel render-target outputs (OSG1 uint/sint) and compressed exports decoded by producer (pknorm u16/i16) touches docs/design.md, docs/shader_validation.md, runtime/test/shaders/build.py (plus 14 more). Adds or updates target_container, gs_container, osg1_dxbc. New tests include test_reference, test_uint_target_gets_the_halves_zero_extended, test_sint_target_gets_the_halves_sign_extended, test_uncompressed_export_to_an_integer_target_is_its_bits.

Why merge: Addresses a concrete failure mode with a focused change and regression coverage. The patch stays inside the affected code path, so it is low risk and prevents bad output or failures in real use.

Verdict: Approve

@shayderrr

Copy link
Copy Markdown
Collaborator

Summary: rdna2spirv: typed pixel render-target outputs (OSG1 uint/sint) and compressed exports decoded by producer (pknorm u16/i16) touches docs/design.md, docs/shader_validation.md, runtime/test/shaders/build.py (plus 14 more). Adds or updates target_container, gs_container, osg1_dxbc. New tests include test_reference, test_uint_target_gets_the_halves_zero_extended, test_sint_target_gets_the_halves_sign_extended, test_uncompressed_export_to_an_integer_target_is_its_bits.

Why merge: Addresses a concrete failure mode with a focused change and regression coverage. The patch stays inside the affected code path, so it is low risk and prevents bad output or failures in real use.

Verdict: Approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.