summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-03-04 12:06:30 -0800
committerMarge Bot <[email protected]>2020-03-10 16:01:39 +0000
commit4a8e4c18d2f088458664363eba37173bd457bab8 (patch)
tree411013dad09543214528fc5043b1dd0e06ebeb02 /src/freedreno
parent3535797e8c991d5159871f1517fde107b6990a96 (diff)
freedreno/ir3: also lower lowp frag outputs
Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4071>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_shader.c3
1 files changed, 2 insertions, 1 deletions
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);