projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8e0a7
)
i965/vec4: Don't print swizzles for immediate values.
author
Matt Turner
<mattst88@gmail.com>
Mon, 2 Dec 2013 20:43:50 +0000
(12:43 -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 71f530711e1c262a0bf4afd19bcdc022f567b54f..13f69f1f166f74bee1602dd11f570b8ac726ec95 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_vec4.cpp
@@
-1240,10
+1240,12
@@
vec4_visitor::dump_instruction(backend_instruction *be_inst)
if (inst->src[i].reg_offset)
printf(".%d", inst->src[i].reg_offset);
- static const char *chans[4] = {"x", "y", "z", "w"};
- printf(".");
- for (int c = 0; c < 4; c++) {
- printf("%s", chans[BRW_GET_SWZ(inst->src[i].swizzle, c)]);
+ if (inst->src[i].file != IMM) {
+ static const char *chans[4] = {"x", "y", "z", "w"};
+ printf(".");
+ for (int c = 0; c < 4; c++) {
+ printf("%s", chans[BRW_GET_SWZ(inst->src[i].swizzle, c)]);
+ }
}
if (inst->src[i].abs)