summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-12-02 12:43:50 -0800
committerMatt Turner <mattst88@gmail.com>2013-12-04 20:05:43 -0800
commit729fe77e3bdf64768e8447c281f249ac80c1b9a2 (patch)
treed61f505e3b7ced47a66e02a85fc91bbc31fca19f /src/mesa
parent2b8e0a73fbc021305fdcab7a3c6661de7af911a9 (diff)
downloadexternal_mesa3d-729fe77e3bdf64768e8447c281f249ac80c1b9a2.zip
external_mesa3d-729fe77e3bdf64768e8447c281f249ac80c1b9a2.tar.gz
external_mesa3d-729fe77e3bdf64768e8447c281f249ac80c1b9a2.tar.bz2
i965/vec4: Don't print swizzles for immediate values.
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 71f5307..13f69f1 100644
--- 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)