[Mesa-dev] [PATCH] glsl: add switch case for MESA_SHADER_COMPUTE

Anuj Phogat anuj.phogat at gmail.com
Wed Feb 26 12:15:25 PST 2014


On Tue, Feb 25, 2014 at 11:39 AM, Brian Paul <brianp at vmware.com> wrote:
> To fix warning about unhandled enum value.
> ---
>  src/glsl/ast_to_hir.cpp |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
> index f06baeb..8f6e901 100644
> --- a/src/glsl/ast_to_hir.cpp
> +++ b/src/glsl/ast_to_hir.cpp
> @@ -2221,6 +2221,9 @@ validate_explicit_location(const struct ast_type_qualifier *qual,
>                 ? (qual->location + FRAG_RESULT_DATA0)
>                 : (qual->location + VARYING_SLOT_VAR0);
>              break;
> +         case MESA_SHADER_COMPUTE:
> +            assert(!"Unexpected shader type");
> +            break;
>           }
>        } else {
>           var->data.location = qual->location;
> --
> 1.7.10.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-dev mailing list