Can you move these cases to the end where the assertion is?

Thanks,
Marek

On Thu, Jul 13, 2017 at 4:35 PM, Alejandro Piñeiro <[email protected]> wrote:
> From: Eduardo Lima Mitev <[email protected]>
>
> Note that this doesn't mean full support on st for those types. This
> change was done to avoid a "not handle in switch" warning.
> ---
>  src/mesa/state_tracker/st_glsl_types.cpp | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_glsl_types.cpp 
> b/src/mesa/state_tracker/st_glsl_types.cpp
> index 37c3164..02cd63d 100644
> --- a/src/mesa/state_tracker/st_glsl_types.cpp
> +++ b/src/mesa/state_tracker/st_glsl_types.cpp
> @@ -38,7 +38,10 @@ st_glsl_attrib_type_size(const struct glsl_type *type, 
> bool is_vs_input)
>     switch (type->base_type) {
>     case GLSL_TYPE_UINT:
>     case GLSL_TYPE_INT:
> +   case GLSL_TYPE_UINT16:
> +   case GLSL_TYPE_INT16:
>     case GLSL_TYPE_FLOAT:
> +   case GLSL_TYPE_HALF_FLOAT:
>     case GLSL_TYPE_BOOL:
>        if (type->is_matrix()) {
>           return type->matrix_columns;
> --
> 2.9.3
>
> _______________________________________________
> mesa-dev mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to