upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorwhoalin1 <207920491+whoalin1@users.noreply.github.com>2026-11-25 06:32:25 +0200
committerMan Alin <whoalin414@gmail.com>2026-11-30 22:29:43 +0000
commit944d4bd8cf2f5c39686c8a8668256d5a0e443d64 (patch)
treeda7d334f12988a3cd19a58c4206ec84f7627d16d /runtime/src/xma2_decoder.cpp
parentb1f91c2f938fa9f4e082d612f412a0c57a8e3b87 (diff)
rdna2spirv: emit OpBitFieldUExtract for the VOP3 16-bit result mask (NVIDIA And-&-0xFFFF miscompile)
NVIDIA's shader compiler (RTX 4070 SUPER, wave32) corrupts the preserved high half of a 16-bit VOP3 result when OpBitwiseAnd & 0xFFFF consumes a value that passed through %int ops and the result merges with (old & 0xFFFF0000): v_add_nc_i16 v14, v3, v12 op_sel:[1,1,0] clamp wrote 0x1113AAA8 for 0x0002AAA8. BitFieldUExtract reads the same low 16 bits and dodges the peephole; SClamp on %int and select-based clamps do not. AMD (gfx1036, Vulkan and hw_oracle) and the CPU interpreter are unaffected. Co-Authored-By: Devin <noreply@cognition.ai>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions