From: Topi Pohjolainen Date: Tue, 16 Sep 2014 09:02:22 +0000 (+0300) Subject: i965: Tell backend register about double precision type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45066a6a594d181647581e42d184954a7dee7843;p=mesa.git i965: Tell backend register about double precision type Signed-off-by: Topi Pohjolainen Signed-off-by: Tapani P\344lli Signed-off-by: Abdiel Janulgue Reviewed-by: Kenneth Graunke Reviewed-by: Jordan Justen Reviewed-by: Francisco Jerez --- diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index f3d7c777d8d..ccb6f8fd13f 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -80,10 +80,11 @@ brw_type_for_base_type(const struct glsl_type *type) return BRW_REGISTER_TYPE_UD; case GLSL_TYPE_IMAGE: return BRW_REGISTER_TYPE_UD; + case GLSL_TYPE_DOUBLE: + return BRW_REGISTER_TYPE_DF; case GLSL_TYPE_VOID: case GLSL_TYPE_ERROR: case GLSL_TYPE_INTERFACE: - case GLSL_TYPE_DOUBLE: case GLSL_TYPE_FUNCTION: unreachable("not reached"); }