mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
r300/compiler: remove set-but-unused variables
This commit is contained in:
parent
56e83b4aa2
commit
97398d1d56
2 changed files with 1 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue