[Mesa-dev] [PATCH 6/6] i965/fs: Add dump_instruction() support for ARF destinations.

Kenneth Graunke kenneth at whitecape.org
Mon Aug 5 18:28:14 PDT 2013


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 at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_fs.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index c2d89ef..69e544a 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -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;
-- 
1.8.3.4



More information about the mesa-dev mailing list