From: Iago Toral Quiroga Date: Wed, 18 Nov 2015 11:11:58 +0000 (+0100) Subject: i965: fix brw_abs_immediate() for doubles X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d10adf603658ccc72402c9ec99aafb5bfa90643;p=mesa.git i965: fix brw_abs_immediate() for doubles Reviewed-by: Kenneth Graunke Reviewed-by: Jordan Justen --- diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 759a6c25764..325141b2d6b 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -580,6 +580,9 @@ brw_abs_immediate(enum brw_reg_type type, struct brw_reg *reg) case BRW_REGISTER_TYPE_F: reg->f = fabsf(reg->f); return true; + case BRW_REGISTER_TYPE_DF: + reg->df = fabs(reg->df); + return true; case BRW_REGISTER_TYPE_VF: reg->ud &= ~0x80808080; return true; @@ -598,9 +601,8 @@ brw_abs_immediate(enum brw_reg_type type, struct brw_reg *reg) assert(!"unimplemented: abs V immediate"); case BRW_REGISTER_TYPE_Q: assert(!"unimplemented: abs Q immediate"); - case BRW_REGISTER_TYPE_DF: case BRW_REGISTER_TYPE_HF: - assert(!"unimplemented: abs DF/HF immediate"); + assert(!"unimplemented: abs HF immediate"); } return false;