From 4d95efd14617d4a96a89d8e52d0cf684a5d6c4b1 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 4 Aug 2013 22:37:34 -0700 Subject: 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 Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_fs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c2d89ef1a19..69e544aa4e1 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; -- cgit v1.2.3