mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
r300/compiler: remove useless check
This code is already in if (!variable->C->is_r500) so no need check twice. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>
This commit is contained in:
parent
e5bf8d38db
commit
d2c1d9693f
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue