--- src/mesa/drivers/dri/i965/brw_vec4.cpp | 10 ++++++---- 1 file 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) -- 1.8.3.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev