upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/process.cpp
diff options
context:
space:
mode:
authormrp1no <137657338+mrp1no@users.noreply.github.com>2026-11-22 23:55:27 +0100
committermrp1no <137657338+mrp1no@users.noreply.github.com>2026-11-23 04:39:08 +0100
commit82943cc6725531ab6b8f9addb86ec7bc0ab1078d (patch)
tree4d0e856dc8b656ab05cdc3c87ef5ad134798dac8 /runtime/shims/process.cpp
parent7b7d73f890f9fbbf5967bbb694390bbc99e33ba6 (diff)
rdna2spirv: a pixel shader's k-th colour export goes to its k-th declared SV_Target (SHADER-213)
Colour exports are packed: a pixel shader that declares SV_Target0 and SV_Target2 exports mrt0 and mrt1. The translator decorated exp mrtN with Location N, so the second value went to render target 1 instead of 2. It now reads the shader's OSG1 (system value 64, SV_Target n in register n) and maps export K to the K-th declared target. The index's outputs list follows, so it names render targets. - Without an OSG1 (hand-written listings, run_gpu_tests.py fixtures), mrtK stays location K. - An export past the declared targets is Unsupported. tests/semantic/test_sparse_sv_target.py covers gaps at 2, 3 and 7, consecutive targets, no signature, and an export past the declared ones. It runs the [0, 2] case through the interpreter. With the old translator, 3 of its 5 tests fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/shims/process.cpp')
0 files changed, 0 insertions, 0 deletions