Mesa (master): nir: add tess support to nir_lower_clamp_color_outputs()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 26 00:45:15 UTC 2019


Module: Mesa
Branch: master
Commit: f5f31612d3392cb9ea015b157c4d564ac549a2f5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f5f31612d3392cb9ea015b157c4d564ac549a2f5

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Tue Jun 25 16:33:22 2019 +1000

nir: add tess support to nir_lower_clamp_color_outputs()

This will be used to add compat profile support for higher GL
versions.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/compiler/nir/nir_lower_clamp_color_outputs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/nir/nir_lower_clamp_color_outputs.c b/src/compiler/nir/nir_lower_clamp_color_outputs.c
index 32f85562427..07ed1d7925b 100644
--- a/src/compiler/nir/nir_lower_clamp_color_outputs.c
+++ b/src/compiler/nir/nir_lower_clamp_color_outputs.c
@@ -36,6 +36,7 @@ is_color_output(lower_state *state, nir_variable *out)
    switch (state->shader->info.stage) {
    case MESA_SHADER_VERTEX:
    case MESA_SHADER_GEOMETRY:
+   case MESA_SHADER_TESS_EVAL:
       switch (out->data.location) {
       case VARYING_SLOT_COL0:
       case VARYING_SLOT_COL1:




More information about the mesa-commit mailing list