<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 14, 2017 at 10:27 AM, Marek Olšák <span dir="ltr"><<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you move these cases to the end where the assertion is?<br></blockquote><div><br></div><div>Agreed. In general, I think it's best to let 16-bit types hit assertions in any code paths that won't be exercised by 16bit_storage. Assertion failures are much easier to find than subtle bugs when someone comes through and hooks it up for GL.<br><br></div><div>--Jason<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks,<br>
Marek<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Jul 13, 2017 at 4:35 PM, Alejandro Piñeiro <<a href="mailto:apinheiro@igalia.com">apinheiro@igalia.com</a>> wrote:<br>
> From: Eduardo Lima Mitev <<a href="mailto:elima@igalia.com">elima@igalia.com</a>><br>
><br>
> Note that this doesn't mean full support on st for those types. This<br>
> change was done to avoid a "not handle in switch" warning.<br>
> ---<br>
> src/mesa/state_tracker/st_<wbr>glsl_types.cpp | 3 +++<br>
> 1 file changed, 3 insertions(+)<br>
><br>
> diff --git a/src/mesa/state_tracker/st_<wbr>glsl_types.cpp b/src/mesa/state_tracker/st_<wbr>glsl_types.cpp<br>
> index 37c3164..02cd63d 100644<br>
> --- a/src/mesa/state_tracker/st_<wbr>glsl_types.cpp<br>
> +++ b/src/mesa/state_tracker/st_<wbr>glsl_types.cpp<br>
> @@ -38,7 +38,10 @@ st_glsl_attrib_type_size(const struct glsl_type *type, bool is_vs_input)<br>
> switch (type->base_type) {<br>
> case GLSL_TYPE_UINT:<br>
> case GLSL_TYPE_INT:<br>
> + case GLSL_TYPE_UINT16:<br>
> + case GLSL_TYPE_INT16:<br>
> case GLSL_TYPE_FLOAT:<br>
> + case GLSL_TYPE_HALF_FLOAT:<br>
> case GLSL_TYPE_BOOL:<br>
> if (type->is_matrix()) {<br>
> return type->matrix_columns;<br>
> --<br>
> 2.9.3<br>
><br>
> ______________________________<wbr>_________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div></div>