i965/fs: Add dump_instruction() support for ARF destinations.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 5 Aug 2013 05:37:34 +0000 (22:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 12 Aug 2013 20:13:06 +0000 (13:13 -0700)
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>
src/mesa/drivers/dri/i965/brw_fs.cpp

index c2d89ef1a193600133fa16ba19b4425f4ead2843..69e544aa4e1b20202e5acd7d2941c39099e5dc1b 100644 (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;