r300/compiler: remove useless check
authorDavid Heidelberger <david.heidelberger@ixit.cz>
Tue, 14 Oct 2014 00:25:01 +0000 (02:25 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 14 Oct 2014 16:18:32 +0000 (12:18 -0400)
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>
src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c

index 64b225d2990d98780be1fb1957e2f210dcc17f62..14f93fba986dfc275022ca25f0ef5973c4286894 100644 (file)
@@ -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);