From fa227e7cbca279cd70ea7028a33d520579385f9f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 22 Oct 2013 19:04:14 -0700 Subject: [PATCH] i965/fs: Add SEL() convenience function. Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/brw_fs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index f3b121acfc3..09a237eaa0a 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 be87e59a98e..b859f848d0b 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, -- 2.30.2