summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-19 09:25:42 -0700
committerBrian Paul <[email protected]>2015-02-19 15:36:59 -0700
commit2f5597787c83aab069e53b3c7cad8acf8c91626c (patch)
tree430723258dd9bd0b0a6c242ffeec1475e6d2c33a
parent62a8883f32f8a4c8c7d85390d4b17986e4018edf (diff)
nir: add missing GLSL_TYPE_DOUBLE case in type_size()
To silence compiler warning about unhandled switch case. v2: move GLSL_TYPE_DOUBLE to the "not reached" section, per Ilia. Reviewed-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/glsl/nir/nir_lower_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_io.c b/src/glsl/nir/nir_lower_io.c
index ddbc249371b..207f8daa1bc 100644
--- a/src/glsl/nir/nir_lower_io.c
+++ b/src/glsl/nir/nir_lower_io.c
@@ -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");
}