X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fr300%2Fcompiler%2Fradeon_pair_regalloc.c;h=14f93fba986dfc275022ca25f0ef5973c4286894;hb=d2c1d9693fbd30493d7f3fe9d33b85ae06611173;hp=64b225d2990d98780be1fb1957e2f210dcc17f62;hpb=e5bf8d38db97045e42cfc42dd265be03ef4199ca;p=mesa.git diff --git a/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c b/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c index 64b225d2990..14f93fba986 100644 --- a/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c +++ b/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c @@ -387,11 +387,8 @@ static enum rc_reg_class variable_get_class( * instructions can't be * swizzle on r300/r400 GPUs. */ - if (!variable->C->is_r500) { - can_change_writemask = 0; - break; - } - old_swizzle = r.U.I.Src->Swizzle; + can_change_writemask = 0; + break; } new_swizzle = rc_adjust_channels( old_swizzle, conversion_swizzle);