<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/tests/test_values.py, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-22T13:23:17+00:00</updated>
<entry>
<title>Shader: accept `abs` on v_pack_b32_f16 (a sign clear of the packed half)</title>
<updated>2026-11-22T13:23:17+00:00</updated>
<author>
<name>Anira</name>
<email>67195196+zxcvqwerasdf@users.noreply.github.com</email>
</author>
<published>2026-11-22T12:44:16+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=1062df51547c13517e344c477e10d1fd4c604054'/>
<id>urn:sha1:1062df51547c13517e344c477e10d1fd4c604054</id>
<content type='text'>
Follow-up to #1570, which took the `neg` half of SHADER-260 and left `abs`
refused. `abs` is the ISA's absolute value of the operand: a clear of the
sign bit, on the 16-bit half the operand contributes and applied before
`neg` (which #1570 emits as a bit 15 flip). The instruction already moved
each half unchanged, so the translator emitted nothing for `abs` and threw
`Unsupported("v_pack_b32_f16 abs modifier")` for any shader that used it.

Emit the clear instead: OpBitwiseAnd 0x7FFF on the selected half, before
the `neg` xor. No hardware run of this instruction with `abs` exists, so
the docs row says the rule is ISA-derived and unmeasured rather than
quoting a measurement.

Tests: exact-bit CPU cases in tests/semantic/test_pack_b32_f16_mods.py and
tests/test_values.py (both halves, op_sel, an sNaN payload, neg+abs order),
the interpreter-run GPU fixture ps_f16_pack_mods with its words derived
from the rule, and the row in docs/design.md.

SHADER-260, Depends on: #1570
</content>
</entry>
<entry>
<title>Shader: accept `neg` on v_pack_b32_f16, a sign flip of the packed half</title>
<updated>2026-11-22T12:18:55+00:00</updated>
<author>
<name>bobcatchris</name>
<email>83428450+bobcatchris@users.noreply.github.com</email>
</author>
<published>2026-11-22T12:18:55+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=32e052c569d9354ced0f5b8a32c1855358285781'/>
<id>urn:sha1:32e052c569d9354ced0f5b8a32c1855358285781</id>
<content type='text'>
SHADER-260 measured on gfx1036 that a VOP3 `neg` on this instruction is a
plain sign flip of the 16-bit half that operand contributes, before any
quieting (0x7c01 -&gt; 0xfc01 under IEEE mode 0 and -&gt; 0xfe01 under mode 1), in
either half and with op_sel. The translator refused every modifier, so any
shader using it failed to translate. `abs` stays refused because its rule on
this instruction is unmeasured, and the mode-1 signalling-NaN quieting is left
out until SHADER-190 settles which mode the game's shaders run in.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff &lt;noreply@codebuff.com&gt;
</content>
</entry>
<entry>
<title>Docs + tests: AMD driver quirk losing the f16 keep (valu_fuzz seed 3 programme 38)</title>
<updated>2026-11-22T06:16:31+00:00</updated>
<author>
<name>1TrickOmen</name>
<email>1TrickOmen@users.noreply.github.com</email>
</author>
<published>2026-11-22T06:16:31+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=9b66ba9c3b7e169e08cf57811dcbe8018aa37c00'/>
<id>urn:sha1:9b66ba9c3b7e169e08cf57811dcbe8018aa37c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply output modifiers to v_med3_f32 results</title>
<updated>2026-11-21T23:09:40+00:00</updated>
<author>
<name>nicolas</name>
<email>44988633+nschlaepfer@users.noreply.github.com</email>
</author>
<published>2026-11-21T23:09:40+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=697625209a2eb9df4ab193c95fb26c8d69c40625'/>
<id>urn:sha1:697625209a2eb9df4ab193c95fb26c8d69c40625</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tests: check computed values with a small SPIR-V interpreter</title>
<updated>2026-11-21T16:46:28+00:00</updated>
<author>
<name>Ewann</name>
<email>dev.lechacal@gmail.com</email>
</author>
<published>2026-11-21T16:46:28+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=439887f04f19f0b1f0a782c3ef60846080e4e31f'/>
<id>urn:sha1:439887f04f19f0b1f0a782c3ef60846080e4e31f</id>
<content type='text'>
tests/spirv_interp.py runs the straight-line, single-lane SPIR-V the translator
emits for branch-free shaders (binary32 rounding after every op, GLSL.std.450
subset, Function/Output variables). Unknown opcodes raise NotImplementedError.

- test_values.py: 49 value checks over the supported instruction families, with
  references written in plain Python from the ISA definitions.
- test_f16_op_sel_values.py: 84 value checks for op_sel on f16 VOP3 ops (all
  select combinations, neg/abs/clamp, fmac).
- listing.py: hand-written listing helper. shader_ir.parse_file treats the first
  line of a listing as its header, so the helper writes one; test_f16_op_sel.py
  used to lose its first instruction and now uses the helper.

None of these need llvm-mc or spirv-tools. Mutation-checked: breaking the
op_sel source index or the destination merge makes them fail.
</content>
</entry>
</feed>
