i965: Delete brw_set_conditionalmod.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 31 May 2014 01:03:14 +0000 (18:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Jun 2014 22:09:35 +0000 (15:09 -0700)
This removes the ability to set the default conditional modifier on all
future instructions.  Nothing uses it, and it's not really a sensible
thing to do anyway.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c

index 6018339dc406f811cd9e5502cae66428e018db6b..118218246b8c2b03d901d35f2ea5e731689ae1e1 100644 (file)
@@ -98,11 +98,6 @@ void brw_set_predicate_inverse(struct brw_compile *p, bool predicate_inverse)
    p->current->header.predicate_inverse = predicate_inverse;
 }
 
-void brw_set_conditionalmod( struct brw_compile *p, unsigned conditional )
-{
-   p->current->header.destreg__conditionalmod = conditional;
-}
-
 void brw_set_flag_reg(struct brw_compile *p, int reg, int subreg)
 {
    p->current->bits2.da1.flag_reg_nr = reg;
index 9b36e05cb73479331967cc2e575e103fc1620035..fe57834d8be5a0f5facb6df749015921ea293426 100644 (file)
@@ -104,7 +104,6 @@ void brw_set_access_mode( struct brw_compile *p, unsigned access_mode );
 void brw_set_compression_control(struct brw_compile *p, enum brw_compression c);
 void brw_set_predicate_control( struct brw_compile *p, unsigned pc );
 void brw_set_predicate_inverse(struct brw_compile *p, bool predicate_inverse);
-void brw_set_conditionalmod( struct brw_compile *p, unsigned conditional );
 void brw_set_flag_reg(struct brw_compile *p, int reg, int subreg);
 void brw_set_acc_write_control(struct brw_compile *p, unsigned value);
 
index d31e733e2b10aa1cb4827150aba51da13a7669cc..a6d5941eb76a6db50f7ded292c2954615fb071c1 100644 (file)
@@ -851,13 +851,6 @@ brw_next_insn(struct brw_compile *p, unsigned opcode)
    insn = &p->store[p->nr_insn++];
    memcpy(insn, p->current, sizeof(*insn));
 
-   /* Reset this one-shot flag:
-    */
-
-   if (p->current->header.destreg__conditionalmod) {
-      p->current->header.destreg__conditionalmod = 0;
-   }
-
    insn->header.opcode = opcode;
    return insn;
 }