summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-12-02 12:41:16 -0800
committerMatt Turner <mattst88@gmail.com>2013-12-04 20:05:43 -0800
commit2b8e0a73fbc021305fdcab7a3c6661de7af911a9 (patch)
treeed1be3acc8fdefcac4b43c9b22d012abf3cd6bb3 /src
parenta85f1b7adf1023667fea090242ba448d935eaa67 (diff)
downloadexternal_mesa3d-2b8e0a73fbc021305fdcab7a3c6661de7af911a9.zip
external_mesa3d-2b8e0a73fbc021305fdcab7a3c6661de7af911a9.tar.gz
external_mesa3d-2b8e0a73fbc021305fdcab7a3c6661de7af911a9.tar.bz2
i965/vec4: Print negate and absolute value for src args.
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 551f0a2..71f5307 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -1166,6 +1166,10 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
printf(", ");
for (int i = 0; i < 3 && inst->src[i].file != BAD_FILE; i++) {
+ if (inst->src[i].negate)
+ printf("-");
+ if (inst->src[i].abs)
+ printf("|");
switch (inst->src[i].file) {
case GRF:
printf("vgrf%d", inst->src[i].reg);
@@ -1242,6 +1246,9 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
printf("%s", chans[BRW_GET_SWZ(inst->src[i].swizzle, c)]);
}
+ if (inst->src[i].abs)
+ printf("|");
+
if (i < 2 && inst->src[i + 1].file != BAD_FILE)
printf(", ");
}