i965: Fold constants into the second arg of BRW_SEL as well.

This hits a common case with min/max operations.
This commit is contained in:
Eric Anholt
2010-11-18 11:34:54 +08:00
parent f9b420d3bd
commit 602ae2441a
+1
View File
@@ -2781,6 +2781,7 @@ fs_visitor::propagate_constants()
}
break;
case BRW_OPCODE_CMP:
case BRW_OPCODE_SEL:
if (i == 1) {
scan_inst->src[i] = inst->src[0];
progress = true;