glsl: Handle 16-bit types in loop analysis
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 6 Jul 2020 21:56:38 +0000 (17:56 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 8 Jul 2020 02:02:06 +0000 (22:02 -0400)
commit7f00d4dac813836d9767efa381c43514b2a999cc
tree258a081d40480ac39981ad2de9acebb843d302de
parent63ab8d41d1aca0816d3c46715526c26f40d83504
glsl: Handle 16-bit types in loop analysis

Fixes crash with mediump lowering in:

dEQP-GLES2.functional.shaders.loops.do_while_constant_iterations.basic_mediump_float_fragment

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5746>
src/compiler/glsl/loop_analysis.cpp