summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2016-06-17 08:21:19 +0200
committerSamuel Iglesias Gonsálvez <[email protected]>2017-01-03 11:26:51 +0100
commitca63a3ce5107435197a6272233d66c8831cd3603 (patch)
tree8027ddaf9b7ec5e1b605aa09e249c5a8bc3424df /src
parenta83608f50483ac397545d3815bfe8dc3be5126b6 (diff)
i965/disasm: print NibCtrl for instructions with execsize < 8
v2 (Curro): - Print it also for execsize < 4. - QtrCtrl is still in effect, so print 2 * qtr_ctl + nib_ctl + 1 - Do not read the nib ctl from the instruction in gen < 7, the field only exists in gen7+. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_disasm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index aaad47dc7f7..b38636ac908 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -1193,7 +1193,11 @@ qtr_ctrl(FILE *file, const struct gen_device_info *devinfo, brw_inst *inst)
int qtr_ctl = brw_inst_qtr_control(devinfo, inst);
int exec_size = 1 << brw_inst_exec_size(devinfo, inst);
- if (exec_size == 8) {
+ if (exec_size < 8) {
+ const unsigned nib_ctl = devinfo->gen < 7 ? 0 :
+ brw_inst_nib_control(devinfo, inst);
+ format(file, " %dN", qtr_ctl * 2 + nib_ctl + 1);
+ } else if (exec_size == 8) {
switch (qtr_ctl) {
case 0:
string(file, " 1Q");