Browse Source

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

This hits a common case with min/max operations.
tags/android-x86-2.2
Eric Anholt 15 years ago
parent
commit
602ae2441a
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/mesa/drivers/dri/i965/brw_fs.cpp

+ 1
- 0
src/mesa/drivers/dri/i965/brw_fs.cpp 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;

Loading…
Cancel
Save