i965/fs: Add dump_instruction() support for ARF destinations.

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>
This commit is contained in:
Kenneth Graunke 2013-08-04 22:37:34 -07:00
parent ee7bfab068
commit 4d95efd146

View file

@ -2725,6 +2725,12 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
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;