i965/vec4: Drop the generate_math2_gen7() method.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 7 Jun 2014 09:39:37 +0000 (02:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jun 2014 23:38:26 +0000 (16:38 -0700)
It's now a single line of code, so we may as well fold it into the
caller.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp

index a3ba9c776476f7f946614358f60c4aee180ae779..d8fa20bdd5b0137014608e59475976b9a8b93d15 100644 (file)
@@ -665,10 +665,6 @@ private:
                            struct brw_reg dst,
                            struct brw_reg src0,
                            struct brw_reg src1);
-   void generate_math2_gen7(vec4_instruction *inst,
-                           struct brw_reg dst,
-                           struct brw_reg src0,
-                           struct brw_reg src1);
 
    void generate_tex(vec4_instruction *inst,
                     struct brw_reg dst,
index 97fd2224b688de4df16506f40366811a925142bf..86dfbd56e70b1c97bf191dc828ae24da4620778b 100644 (file)
@@ -190,15 +190,6 @@ vec4_generator::generate_math1_gen6(vec4_instruction *inst,
    brw_set_default_access_mode(p, BRW_ALIGN_16);
 }
 
-void
-vec4_generator::generate_math2_gen7(vec4_instruction *inst,
-                                    struct brw_reg dst,
-                                    struct brw_reg src0,
-                                    struct brw_reg src1)
-{
-   gen6_math(p, dst, brw_math_function(inst->opcode), src0, src1);
-}
-
 void
 vec4_generator::generate_math2_gen6(vec4_instruction *inst,
                                     struct brw_reg dst,
@@ -1148,7 +1139,7 @@ vec4_generator::generate_vec4_instruction(vec4_instruction *instruction,
    case SHADER_OPCODE_INT_QUOTIENT:
    case SHADER_OPCODE_INT_REMAINDER:
       if (brw->gen >= 7) {
-        generate_math2_gen7(inst, dst, src[0], src[1]);
+         gen6_math(p, dst, brw_math_function(inst->opcode), src[0], src[1]);
       } else if (brw->gen == 6) {
         generate_math2_gen6(inst, dst, src[0], src[1]);
       } else {