summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_disasm.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-03-31 15:01:24 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2015-04-10 14:53:12 +0300
commit50db8bd1b5942a6577ab5ee399cae460fde761d4 (patch)
treea882a84c868baee7399b51c07f426f85ca67fae8 /src/mesa/drivers/dri/i965/brw_disasm.c
parentae17f348502c0665fcead8daf8abaef8aa152b03 (diff)
downloadexternal_mesa3d-50db8bd1b5942a6577ab5ee399cae460fde761d4.zip
external_mesa3d-50db8bd1b5942a6577ab5ee399cae460fde761d4.tar.gz
external_mesa3d-50db8bd1b5942a6577ab5ee399cae460fde761d4.tar.bz2
i965/disasm: Print the type after the swizzle also for 3src src operands
The disassembly currently has the swizzle after the type for 3src source operands, and the other way around for 2src. Flip the type and swizzle around for 3src so that the output matches 2src. Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_disasm.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_disasm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index c41dde2..2630218 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -955,9 +955,9 @@ src0_3src(FILE *file, struct brw_context *brw, brw_inst *inst)
string(file, "<0,1,0>");
else
string(file, "<4,4,1>");
+ err |= src_swizzle(file, brw_inst_3src_src0_swizzle(brw, inst));
err |= control(file, "src da16 reg type", three_source_reg_encoding,
brw_inst_3src_src_type(brw, inst), NULL);
- err |= src_swizzle(file, brw_inst_3src_src0_swizzle(brw, inst));
return err;
}
@@ -981,9 +981,9 @@ src1_3src(FILE *file, struct brw_context *brw, brw_inst *inst)
string(file, "<0,1,0>");
else
string(file, "<4,4,1>");
+ err |= src_swizzle(file, brw_inst_3src_src1_swizzle(brw, inst));
err |= control(file, "src da16 reg type", three_source_reg_encoding,
brw_inst_3src_src_type(brw, inst), NULL);
- err |= src_swizzle(file, brw_inst_3src_src1_swizzle(brw, inst));
return err;
}
@@ -1008,9 +1008,9 @@ src2_3src(FILE *file, struct brw_context *brw, brw_inst *inst)
string(file, "<0,1,0>");
else
string(file, "<4,4,1>");
+ err |= src_swizzle(file, brw_inst_3src_src2_swizzle(brw, inst));
err |= control(file, "src da16 reg type", three_source_reg_encoding,
brw_inst_3src_src_type(brw, inst), NULL);
- err |= src_swizzle(file, brw_inst_3src_src2_swizzle(brw, inst));
return err;
}