summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-10-19 14:47:17 -0700
committerMatt Turner <[email protected]>2015-10-21 10:17:38 -0700
commit3ec9d96d435d5f57b35d4a8c75149fd75eaba187 (patch)
tree673f7c61adfd9670579054b2d7da940453c3a729 /src/mesa
parentd14907b94676fb563761866fca5bdf0492cdb8df (diff)
i965: Add devinfo->gen assertions for acc_wr_control.
... and for flag_subreg_nr since it's right near by. Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_inst.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_inst.h b/src/mesa/drivers/dri/i965/brw_inst.h
index 088143cbace..cb3d7e69a9a 100644
--- a/src/mesa/drivers/dri/i965/brw_inst.h
+++ b/src/mesa/drivers/dri/i965/brw_inst.h
@@ -181,7 +181,7 @@ F(saturate, 31, 31)
F(debug_control, 30, 30)
F(cmpt_control, 29, 29)
FC(branch_control, 28, 28, devinfo->gen >= 8)
-F(acc_wr_control, 28, 28)
+FC(acc_wr_control, 28, 28, devinfo->gen >= 6)
F(cond_modifier, 27, 24)
FC(math_function, 27, 24, devinfo->gen >= 6)
F(exec_size, 23, 21)
@@ -789,9 +789,9 @@ F(dst_reg_nr, 47, 40)
F(src1_index, 39, 35)
F(src0_index, 34, 30)
F(cmpt_control, 29, 29) /* Same location as brw_inst */
-F(flag_subreg_nr, 28, 28) /* <= Gen6 only */
+FC(flag_subreg_nr, 28, 28, devinfo->gen <= 6)
F(cond_modifier, 27, 24) /* Same location as brw_inst */
-F(acc_wr_control, 23, 23)
+FC(acc_wr_control, 23, 23, devinfo->gen >= 6)
F(subreg_index, 22, 18)
F(datatype_index, 17, 13)
F(control_index, 12, 8)