mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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é <mtmkls@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
8074c6b6ea
commit
17f1c49b9a
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue