From 4a8e4c18d2f088458664363eba37173bd457bab8 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 4 Mar 2020 12:06:30 -0800 Subject: [PATCH] freedreno/ir3: also lower lowp frag outputs Signed-off-by: Rob Clark Part-of: --- src/freedreno/ir3/ir3_shader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c index efa9359a976..ff5bdf4b3d6 100644 --- a/src/freedreno/ir3/ir3_shader.c +++ b/src/freedreno/ir3/ir3_shader.c @@ -289,7 +289,8 @@ lower_output_var(nir_shader *nir, int location) { nir_foreach_variable(var, &nir->outputs) { if (var->data.driver_location == location && - var->data.precision == GLSL_PRECISION_MEDIUM) { + ((var->data.precision == GLSL_PRECISION_MEDIUM) || + (var->data.precision == GLSL_PRECISION_LOW))) { if (glsl_get_base_type(var->type) == GLSL_TYPE_FLOAT) var->type = glsl_float16_type(var->type); -- 2.30.2