From 3d10adf603658ccc72402c9ec99aafb5bfa90643 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Wed, 18 Nov 2015 12:11:58 +0100 Subject: [PATCH] i965: fix brw_abs_immediate() for doubles Reviewed-by: Kenneth Graunke Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_shader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.30.2