freedreno/ir3: treat clipvertex like a normal varying
authorRob Clark <robdclark@gmail.com>
Sun, 25 Dec 2016 18:16:51 +0000 (13:16 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 27 Dec 2016 21:54:01 +0000 (16:54 -0500)
We need this in case it is streamed out.  Not sure why we were treating
it specially before.  Having it as a VS out is harmless if FS doesn't
have a matching input.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index bfc04a7197a586b4aacf17f07adf04e311e69700..b0f40f1c2fff503a37d2583a02db66147cd16e63 100644 (file)
@@ -2151,10 +2151,8 @@ setup_output(struct ir3_compile *ctx, nir_variable *out)
                case VARYING_SLOT_FOGC:
                case VARYING_SLOT_CLIP_DIST0:
                case VARYING_SLOT_CLIP_DIST1:
-                       break;
                case VARYING_SLOT_CLIP_VERTEX:
-                       /* handled entirely in nir_lower_clip: */
-                       return;
+                       break;
                default:
                        if (slot >= VARYING_SLOT_VAR0)
                                break;