diff --git a/.pick_status.json b/.pick_status.json index 62d091da9e9..2b6abcb794b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1219,7 +1219,7 @@ "description": "r300: prefer old not native swizzle in constant folding", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/r300/compiler/radeon_optimize.c b/src/gallium/drivers/r300/compiler/radeon_optimize.c index a7e9445ce11..04ee489265e 100644 --- a/src/gallium/drivers/r300/compiler/radeon_optimize.c +++ b/src/gallium/drivers/r300/compiler/radeon_optimize.c @@ -396,8 +396,7 @@ static void constant_folding(struct radeon_compiler * c, struct rc_instruction * } /* don't make the swizzle worse */ - if (!c->SwizzleCaps->IsNative(inst->U.I.Opcode, newsrc) && - c->SwizzleCaps->IsNative(inst->U.I.Opcode, inst->U.I.SrcReg[src])) + if (!c->SwizzleCaps->IsNative(inst->U.I.Opcode, newsrc)) continue; inst->U.I.SrcReg[src] = newsrc;