diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-11-25 23:02:46 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-11-30 15:37:27 +0000 |
commit | 4490122d0cae360d1552cea7d7d860de352f13f6 (patch) | |
tree | 27161fe8ca7eb60d60a5c9c69715055b1e594631 /src/gallium/drivers/i965/brw_clip_tri.c | |
parent | ca9b0e942c5f8f95383c637b05e3fb237f013688 (diff) |
i965g: remove redundant nr_attrs member
Diffstat (limited to 'src/gallium/drivers/i965/brw_clip_tri.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_clip_tri.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i965/brw_clip_tri.c b/src/gallium/drivers/i965/brw_clip_tri.c index fa00f6044f..4cde7294ea 100644 --- a/src/gallium/drivers/i965/brw_clip_tri.c +++ b/src/gallium/drivers/i965/brw_clip_tri.c @@ -66,12 +66,12 @@ void brw_clip_tri_alloc_regs( struct brw_clip_compile *c, i += c->nr_regs; } - if (c->nr_attrs & 1) { + if (c->key.nr_attrs & 1) { for (j = 0; j < 3; j++) { - GLuint delta = c->nr_attrs*16 + 32; + GLuint delta = c->key.nr_attrs*16 + 32; if (c->chipset.is_igdng) - delta = c->nr_attrs * 16 + 32 * 3; + delta = c->key.nr_attrs * 16 + 32 * 3; brw_MOV(&c->func, byte_offset(c->reg.vertex[j], delta), brw_imm_f(0)); } |