Commit Graph

1 Commits

Author SHA1 Message Date
ef703acdf5 rdna2spirv: Unsupported, not KeyError, for an image instruction without a VGPR data operand
llvm-mc accepts `off`, an SGPR or a constant where an image_* instruction names
the VGPR range of its result (image_sample off, v[1:2], ...); the translator
raised KeyError('r') when it wrote the result. image_op, image_get_lod and
image_misc now raise Unsupported. A probe of about 60,000 DS, MUBUF, MTBUF,
MIMG, SMEM and FLAT/GLOBAL/SCRATCH operand and modifier variations finds no
other crash.

AI-assisted.
2026-11-22 20:48:03 +01:00