From: Matt Turner Date: Mon, 2 Dec 2013 20:43:50 +0000 (-0800) Subject: i965/vec4: Don't print swizzles for immediate values. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=729fe77e3bdf64768e8447c281f249ac80c1b9a2;p=mesa.git i965/vec4: Don't print swizzles for immediate values. Reviewed-by: Eric Anholt --- 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)