aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_lower_clamp_color_outputs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/compiler/nir/nir_lower_clamp_color_outputs.c b/src/compiler/nir/nir_lower_clamp_color_outputs.c
index b76a4d51aac..32f85562427 100644
--- a/src/compiler/nir/nir_lower_clamp_color_outputs.c
+++ b/src/compiler/nir/nir_lower_clamp_color_outputs.c
@@ -47,13 +47,8 @@ is_color_output(lower_state *state, nir_variable *out)
}
break;
case MESA_SHADER_FRAGMENT:
- switch (out->data.location) {
- case FRAG_RESULT_COLOR:
- return true;
- default:
- return false;
- }
- break;
+ return (out->data.location == FRAG_RESULT_COLOR ||
+ out->data.location >= FRAG_RESULT_DATA0);
default:
return false;
}