CMP instructions use BRW_ARF_NULL as a destination. Prior to this
patch, dump_instruction() decoded the destination as "???".
Now it decodes BRW_ARF_NULL as "(null)" and other ARFs numerically.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
case UNIFORM:
printf("***u%d***", inst->dst.reg);
break;
+ case ARF:
+ if (inst->dst.reg == BRW_ARF_NULL)
+ printf("(null)");
+ else
+ printf("arf%d", inst->dst.reg);
+ break;
default:
printf("???");
break;