mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
i965g: apply linear math to both linear and perspective attrs
This commit is contained in:
parent
8bf75f28de
commit
21172d4358
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue