From: Kenneth Graunke Date: Mon, 5 Aug 2013 05:37:34 +0000 (-0700) Subject: i965/fs: Add dump_instruction() support for ARF destinations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d95efd14617d4a96a89d8e52d0cf684a5d6c4b1;p=mesa.git 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 --- 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;