jay/print: deal with bare r0 copies

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41064>
This commit is contained in:
Alyssa Rosenzweig 2026-04-20 10:42:51 -04:00 committed by Marge Bot
parent e55af8793f
commit aa37d8b248

View file

@ -57,7 +57,7 @@ jay_print_def(FILE *fp, const jay_inst *I, int src)
unsigned lu_bit = has_lu ? jay_source_last_use_bit(I->src, src) : 0;
bool has_index = jay_channel(def, 0) != JAY_SENTINEL;
bool has_reg = !def.collect && def.reg && def.file != J_ARF;
bool has_reg = (!def.collect && def.reg && def.file != J_ARF) || !has_index;
if (jay_is_null(def)) {
has_reg = false;