i965g: apply linear math to both linear and perspective attrs

This commit is contained in:
Keith Whitwell 2009-11-23 00:58:13 +00:00
parent 8bf75f28de
commit 21172d4358
2 changed files with 2 additions and 3 deletions

View file

@ -153,10 +153,9 @@ static enum pipe_error upload_sf_prog(struct brw_context *brw)
case TGSI_INTERPOLATE_CONSTANT:
break;
case TGSI_INTERPOLATE_LINEAR:
case TGSI_INTERPOLATE_PERSPECTIVE:
key.linear_attrs |= 1 << (i+1);
break;
// case TGSI_INTERPOLATE_PERSPECTIVE:
case TGSI_INTERPOLATE_PERSPECTIVE:
key.persp_attrs |= 1 << (i+1);
break;
}

View file

@ -324,7 +324,7 @@ static GLboolean calculate_masks( struct brw_sf_compile *c,
{
GLboolean is_last_attr = (reg == c->nr_setup_regs - 1);
GLuint persp_mask = c->key.persp_attrs;
GLuint linear_mask = c->key.linear_attrs;
GLuint linear_mask = (c->key.persp_attrs | c->key.linear_attrs);
*pc_persp = 0;
*pc_linear = 0;