glsl: lower mediump integer types to int16 and uint16

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5002>
This commit is contained in:
Marek Olšák
2020-05-08 22:42:43 -04:00
committed by Marge Bot
parent a052a9c277
commit 6fe20ebaaa
7 changed files with 837 additions and 53 deletions

View File

@@ -188,6 +188,7 @@ ir_variable *compare_index_block(ir_builder::ir_factory &body,
bool lower_64bit_integer_instructions(exec_list *instructions,
unsigned what_to_lower);
bool lower_precision(exec_list *instructions);
bool lower_precision(const struct gl_shader_compiler_options *options,
exec_list *instructions);
#endif /* GLSL_IR_OPTIMIZATION_H */