i965: Convert Gen4-5 clipping code to the new brw_inst API.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_clip_util.c
index 5fb46b6e9363f8cc3e7dafb12e6d7e1fc577b08f..6f4775dbb7632da8383ae2a413ffad95a3283fe6 100644 (file)
@@ -448,7 +448,7 @@ void brw_clip_ff_sync(struct brw_clip_compile *c)
 
     if (brw->gen == 5) {
         brw_AND(p, brw_null_reg(), c->reg.ff_sync, brw_imm_ud(0x1));
-        brw_last_inst->header.destreg__conditionalmod = BRW_CONDITIONAL_Z;
+        brw_inst_set_cond_modifier(brw, brw_last_inst, BRW_CONDITIONAL_Z);
         brw_IF(p, BRW_EXECUTE_1);
         {
             brw_OR(p, c->reg.ff_sync, c->reg.ff_sync, brw_imm_ud(0x1));