nir: add tess support to nir_lower_clamp_color_outputs()
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 25 Jun 2019 06:33:22 +0000 (16:33 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Jun 2019 00:36:48 +0000 (00:36 +0000)
This will be used to add compat profile support for higher GL
versions.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_clamp_color_outputs.c

index 32f855624276dc31de78e3edfa1cbcc239c93cd1..07ed1d7925b2bf279d6fb8a696dc08bc77afae18 100644 (file)
@@ -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: