Mesa (master): i965: Fold constants into the second arg of BRW_SEL as well.
Eric Anholt
anholt at kemper.freedesktop.org
Sat Nov 20 02:58:23 UTC 2010
Module: Mesa
Branch: master
Commit: 602ae2441aaca6a652d3fc78114bb60852132f98
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=602ae2441aaca6a652d3fc78114bb60852132f98
Author: Eric Anholt <eric at anholt.net>
Date: Thu Nov 18 11:34:54 2010 +0800
i965: Fold constants into the second arg of BRW_SEL as well.
This hits a common case with min/max operations.
---
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 2b5ad79..34f9784 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;
More information about the mesa-commit
mailing list