diff options
author | Eric Anholt <[email protected]> | 2010-11-18 11:34:54 +0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-11-19 17:42:07 -0800 |
commit | 602ae2441aaca6a652d3fc78114bb60852132f98 (patch) | |
tree | 92efd71784b2255a739d90e35c5733f3587393c0 /src | |
parent | f9b420d3bda25ea517b66c5ee2c6bde4fdff3935 (diff) |
i965: Fold constants into the second arg of BRW_SEL as well.
This hits a common case with min/max operations.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 2b5ad794bf7..34f978435af 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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; |