r300/compiler: remove set-but-unused variables
authorMarek Olšák <maraeo@gmail.com>
Sun, 1 May 2011 11:31:46 +0000 (13:31 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 1 May 2011 12:02:35 +0000 (14:02 +0200)
src/mesa/drivers/dri/r300/compiler/r300_fragprog_swizzle.c
src/mesa/drivers/dri/r300/compiler/radeon_optimize.c

index 603818f78fc13c89c3bc86eb1aa47949c1559c44..b7bca8c0cfa7f9afbda507a1021c17c242635c23 100644 (file)
@@ -152,7 +152,6 @@ static void r300_swizzle_split(
        split->NumPhases = 0;
 
        while(mask) {
-               const struct swizzle_data *best_swizzle = 0;
                unsigned int best_matchcount = 0;
                unsigned int best_matchmask = 0;
                int i, comp;
@@ -179,7 +178,6 @@ static void r300_swizzle_split(
                                }
                        }
                        if (matchcount > best_matchcount) {
-                               best_swizzle = sd;
                                best_matchcount = matchcount;
                                best_matchmask = matchmask;
                                if (matchmask == (mask & RC_MASK_XYZ))
index 447193ee81770daa6582fbd023fc972f3cde2494..21ea25dbf0dd0cd3601192060c7e9f8e63599e84 100644 (file)
@@ -621,13 +621,11 @@ static int peephole_add_presub_inv(
        struct radeon_compiler * c,
        struct rc_instruction * inst_add)
 {
-       unsigned int i, swz, mask;
+       unsigned int i, swz;
 
        if (!is_presub_candidate(c, inst_add))
                return 0;
 
-       mask = inst_add->U.I.DstReg.WriteMask;
-
        /* Check if src0 is 1. */
        /* XXX It would be nice to use is_src_uniform_constant here, but that
         * function only works if the register's file is RC_FILE_NONE */