summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-08-04 22:37:34 -0700
committerKenneth Graunke <[email protected]>2013-08-12 13:13:06 -0700
commit4d95efd14617d4a96a89d8e52d0cf684a5d6c4b1 (patch)
treef4ce36557e0d69a58b6ede24341db1712ebcf4d4 /src
parentee7bfab06805bff508c31b3ad3fb13d181f3fbf1 (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp6
1 files changed, 6 insertions, 0 deletions
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;