swrast: fix active attribs with atifragshader
[mesa.git] / src / mesa / swrast / s_context.c
index 0a5fc7e9329bb81ee8ae7f17882ed142fa31ff80..a63179c05f302b775474556780f28a77ef1c309e 100644 (file)
@@ -504,7 +504,8 @@ _swrast_update_active_attribs(struct gl_context *ctx)
       attribsMask &= ~VARYING_BIT_POS; /* WPOS is always handled specially */
    }
    else if (ctx->ATIFragmentShader._Enabled) {
-      attribsMask = ~0;  /* XXX fix me */
+      attribsMask = VARYING_BIT_COL0 | VARYING_BIT_COL1 |
+                    VARYING_BIT_FOGC | VARYING_BITS_TEX_ANY;
    }
    else {
       /* fixed function */