nir: add missing GLSL_TYPE_DOUBLE case in type_size()
authorBrian Paul <brianp@vmware.com>
Thu, 19 Feb 2015 16:25:42 +0000 (09:25 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 19 Feb 2015 22:36:59 +0000 (15:36 -0700)
To silence compiler warning about unhandled switch case.
v2: move GLSL_TYPE_DOUBLE to the "not reached" section, per Ilia.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/nir/nir_lower_io.c

index ddbc249371b11eec5d350a2b8c3463627e7eb12d..207f8daa1bc8414adf4b298bd650004630ef1908 100644 (file)
@@ -69,6 +69,7 @@ type_size(const struct glsl_type *type)
       return 0;
    case GLSL_TYPE_VOID:
    case GLSL_TYPE_ERROR:
+   case GLSL_TYPE_DOUBLE:
       unreachable("not reached");
    }