[Mesa-dev] [PATCH 1/2] nir: add missing GLSL_TYPE_DOUBLE case in type_size()

Jason Ekstrand jason at jlekstrand.net
Thu Feb 19 13:54:42 PST 2015


Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>

On Thu, Feb 19, 2015 at 12:51 PM, Brian Paul <brianp at vmware.com> wrote:

> To silence compiler warning about unhandled switch case.
> v2: move GLSL_TYPE_DOUBLE to the "not reached" section, per Ilia.
> ---
>  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");
>     }
>
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150219/3f888b88/attachment.html>


More information about the mesa-dev mailing list