[Mesa-dev] [PATCH 02/47] mesa/st: Handle 16-bit types at st_glsl_storage_type_size()
Marek Olšák
maraeo at gmail.com
Thu Aug 24 16:06:40 UTC 2017
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Thu, Aug 24, 2017 at 3:54 PM, Alejandro Piñeiro <apinheiro at igalia.com> wrote:
> From: Eduardo Lima Mitev <elima at igalia.com>
>
> This is basically to avoid "not handle in switch" warnings.
>
> v2: Let the new types hit the assertion instead. (Marek Olšák
> and Jason Ekstrand)
> ---
> 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 50936025d9f..e57fbc8f314 100644
> --- a/src/mesa/state_tracker/st_glsl_types.cpp
> +++ b/src/mesa/state_tracker/st_glsl_types.cpp
> @@ -98,6 +98,9 @@ st_glsl_storage_type_size(const struct glsl_type *type, bool is_bindless)
> case GLSL_TYPE_VOID:
> case GLSL_TYPE_ERROR:
> case GLSL_TYPE_FUNCTION:
> + case GLSL_TYPE_FLOAT16:
> + case GLSL_TYPE_UINT16:
> + case GLSL_TYPE_INT16:
> assert(!"Invalid type in type_size");
> break;
> }
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list