Module: Mesa
Branch: main
Commit: ea33eceb32ed0bc9e0e6f92617f0e8960b9ca66a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea33eceb32ed0bc9e0e6f92617f0e8960b9ca66a

Author: Thomas H.P. Andersen <[email protected]>
Date:   Sat Dec 18 01:23:37 2021 +0100

r300: remove a set but not used variable

The use of phase_refmask was removed 12 years ago
in b7cf887ca74561469c144f1d12227e1bcf277e7e

Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252>

---

 src/gallium/drivers/r300/compiler/radeon_dataflow_swizzles.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/gallium/drivers/r300/compiler/radeon_dataflow_swizzles.c 
b/src/gallium/drivers/r300/compiler/radeon_dataflow_swizzles.c
index 7c745968afc..a16f4715c70 100644
--- a/src/gallium/drivers/r300/compiler/radeon_dataflow_swizzles.c
+++ b/src/gallium/drivers/r300/compiler/radeon_dataflow_swizzles.c
@@ -54,7 +54,6 @@ static void rewrite_source(struct radeon_compiler * c,
 
        for(unsigned int phase = 0; phase < split.NumPhases; ++phase) {
                struct rc_instruction * mov = rc_insert_new_instruction(c, 
inst->Prev);
-               unsigned int phase_refmask;
                unsigned int masked_negate;
 
                mov->U.I.Opcode = RC_OPCODE_MOV;
@@ -64,16 +63,11 @@ static void rewrite_source(struct radeon_compiler * c,
                mov->U.I.SrcReg[0] = inst->U.I.SrcReg[src];
                mov->U.I.PreSub = inst->U.I.PreSub;
 
-               phase_refmask = 0;
                for(unsigned int chan = 0; chan < 4; ++chan) {
                        if (!GET_BIT(split.Phase[phase], chan))
                                SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, 
RC_SWIZZLE_UNUSED);
-                       else
-                               phase_refmask |= 1 << 
GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan);
                }
 
-               phase_refmask &= RC_MASK_XYZW;
-
                masked_negate = split.Phase[phase] & mov->U.I.SrcReg[0].Negate;
                if (masked_negate == 0)
                        mov->U.I.SrcReg[0].Negate = 0;

Reply via email to