summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-10-22 19:04:14 -0700
committerMatt Turner <mattst88@gmail.com>2013-12-04 20:05:43 -0800
commitfa227e7cbca279cd70ea7028a33d520579385f9f (patch)
tree559b5bfd49ef9a2c0d968f1df2c56072b936741d /src
parent4b0ef4bf38f84af33000cd70a01d6df8b14afee9 (diff)
downloadexternal_mesa3d-fa227e7cbca279cd70ea7028a33d520579385f9f.zip
external_mesa3d-fa227e7cbca279cd70ea7028a33d520579385f9f.tar.gz
external_mesa3d-fa227e7cbca279cd70ea7028a33d520579385f9f.tar.bz2
i965/fs: Add SEL() convenience function.
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp1
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index f3b121a..09a237e 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -184,6 +184,7 @@ ALU1(CBIT)
ALU3(MAD)
ALU2(ADDC)
ALU2(SUBB)
+ALU2(SEL)
/** Gen4 predicated IF. */
fs_inst *
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index be87e59..b859f84 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -274,6 +274,7 @@ public:
fs_inst *MAD(fs_reg dst, fs_reg c, fs_reg b, fs_reg a);
fs_inst *ADDC(fs_reg dst, fs_reg src0, fs_reg src1);
fs_inst *SUBB(fs_reg dst, fs_reg src0, fs_reg src1);
+ fs_inst *SEL(fs_reg dst, fs_reg src0, fs_reg src1);
int type_size(const struct glsl_type *type);
fs_inst *get_instruction_generating_reg(fs_inst *start,