freedreno/ir3: also lower lowp frag outputs
authorRob Clark <robdclark@chromium.org>
Wed, 4 Mar 2020 20:06:30 +0000 (12:06 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 16:01:39 +0000 (16:01 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4071>

src/freedreno/ir3/ir3_shader.c

index efa9359a976973ad4691f2d7123620745c28853e..ff5bdf4b3d68932b9e881e8406f4f6391d7b3381 100644 (file)
@@ -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);