Mesa (master): nir: add missing GLSL_TYPE_DOUBLE case in type_size()

Brian Paul brianp at kemper.freedesktop.org
Thu Feb 19 22:37:54 UTC 2015


Module: Mesa
Branch: master
Commit: 2f5597787c83aab069e53b3c7cad8acf8c91626c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f5597787c83aab069e53b3c7cad8acf8c91626c

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Feb 19 09:25:42 2015 -0700

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 <imirkin at alum.mit.edu>

---

 src/glsl/nir/nir_lower_io.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/nir/nir_lower_io.c b/src/glsl/nir/nir_lower_io.c
index ddbc249..207f8da 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");
    }
 




More information about the mesa-commit mailing list