diff options
author | Miklós Máté <[email protected]> | 2016-06-26 13:48:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-08-11 08:29:23 -0600 |
commit | 17f1c49b9ad05af4f6482f6fa950e5dcc1a779d1 (patch) | |
tree | 2d3a9b2b9fb9d5b770852ff651b88494baa2b701 /src/mesa/swrast | |
parent | 8074c6b6eab9f864a5d0bf3123677ffc3edc5cd2 (diff) |
swrast: fix active attribs with atifragshader
Only include the ones that can be used by the shader.
This fixes texture coordinates, which were completely wrong,
because WPOS was included in the list of attribs. It also
increases performance noticeably.
Signed-off-by: Miklós Máté <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r-- | src/mesa/swrast/s_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 0a5fc7e9329..a63179c05f3 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -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 */ |