Mesa (mesa_7_4_branch): i965: Clean up a bit of mess with unneeded variables in emit_interp.

Ian Romanick idr at kemper.freedesktop.org
Thu Mar 26 22:32:55 UTC 2009


Module: Mesa
Branch: mesa_7_4_branch
Commit: 09c587ae55fbd0fdec5fddc05b17f272699dc4ed
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=09c587ae55fbd0fdec5fddc05b17f272699dc4ed

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Mar 23 22:30:12 2009 -0700

i965: Clean up a bit of mess with unneeded variables in emit_interp.
(cherry picked from commit b013f945d8514ed827183a4cbfbc4dccc100704f)

---

 src/mesa/drivers/dri/i965/brw_wm_fp.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index 66ea744..de867d6 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c
@@ -306,18 +306,13 @@ static void emit_interp( struct brw_wm_compile *c,
    struct prog_dst_register dst = dst_reg(PROGRAM_INPUT, idx);
    struct prog_src_register interp = src_reg(PROGRAM_PAYLOAD, idx);
    struct prog_src_register deltas = get_delta_xy(c);
-   struct prog_src_register arg2;
-   GLuint opcode;
-   
+
    /* Need to use PINTERP on attributes which have been
     * multiplied by 1/W in the SF program, and LINTERP on those
     * which have not:
     */
    switch (idx) {
    case FRAG_ATTRIB_WPOS:
-      opcode = WM_LINTERP;
-      arg2 = src_undef();
-
       /* Have to treat wpos.xy specially:
        */
       emit_op(c,
@@ -338,7 +333,7 @@ static void emit_interp( struct brw_wm_compile *c,
 	      0,
 	      interp,
 	      deltas,
-	      arg2);
+	      src_undef());
       break;
    case FRAG_ATTRIB_COL0:
    case FRAG_ATTRIB_COL1:




More information about the mesa-commit mailing list