From: Matt Turner Date: Wed, 23 Oct 2013 02:04:14 +0000 (-0700) Subject: i965/fs: Add SEL() convenience function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa227e7cbca279cd70ea7028a33d520579385f9f;p=mesa.git i965/fs: Add SEL() convenience function. Reviewed-by: Paul Berry --- 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,