projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a85f1b7
)
i965/vec4: Print negate and absolute value for src args.
author
Matt Turner
<mattst88@gmail.com>
Mon, 2 Dec 2013 20:41:16 +0000
(12:41 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Thu, 5 Dec 2013 04:05:43 +0000
(20:05 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vec4.cpp
b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 551f0a211d205e04ecd3867e71dc2d5334b3dc17..71f530711e1c262a0bf4afd19bcdc022f567b54f 100644
(file)
--- 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(", ");
}