From c442d0961e4ec6dcc304d652b637bb60687ce3cb Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 14 Aug 2014 18:49:20 +1000 Subject: i965: just avoid warnings with fp64 This just fills in some blanks to avoid warnings in the i965 driver. Reviewed-by: Chris Forbes Signed-off-by: Dave Airlie --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp') diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 562fc30..6154e43 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -612,6 +612,7 @@ type_size(const struct glsl_type *type) return 0; case GLSL_TYPE_IMAGE: case GLSL_TYPE_VOID: + case GLSL_TYPE_DOUBLE: case GLSL_TYPE_ERROR: case GLSL_TYPE_INTERFACE: unreachable("not reached"); @@ -1889,6 +1890,18 @@ vec4_visitor::visit(ir_expression *ir) unreachable("not reached: should not occur in vertex shader"); case ir_binop_ldexp: unreachable("not reached: should be handled by ldexp_to_arith()"); + case ir_unop_d2f: + case ir_unop_f2d: + case ir_unop_d2i: + case ir_unop_i2d: + case ir_unop_d2u: + case ir_unop_u2d: + case ir_unop_d2b: + case ir_unop_pack_double_2x32: + case ir_unop_unpack_double_2x32: + case ir_unop_frexp_sig: + case ir_unop_frexp_exp: + unreachable("fp64 todo"); } } -- cgit v1.1