From: Matt Turner Date: Mon, 19 Oct 2015 21:47:17 +0000 (-0700) Subject: i965: Add devinfo->gen assertions for acc_wr_control. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ec9d96d435d5f57b35d4a8c75149fd75eaba187;p=mesa.git 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 --- 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)