diff options
author | Matt Turner <[email protected]> | 2013-12-02 12:43:50 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-12-04 20:05:43 -0800 |
commit | 729fe77e3bdf64768e8447c281f249ac80c1b9a2 (patch) | |
tree | d61f505e3b7ced47a66e02a85fc91bbc31fca19f /src/mesa | |
parent | 2b8e0a73fbc021305fdcab7a3c6661de7af911a9 (diff) |
i965/vec4: Don't print swizzles for immediate values.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.cpp | 10 |
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 71f530711e1..13f69f1f166 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) |