r600g: fix tex and vtx joining

This commit is contained in:
Christian König 2010-12-16 22:23:48 +01:00
parent c00bc13564
commit cc0f604241

View file

@ -672,7 +672,7 @@ int r600_bc_add_vtx(struct r600_bc *bc, const struct r600_bc_vtx *vtx)
/* each fetch use 4 dwords */
bc->cf_last->ndw += 4;
bc->ndw += 4;
if ((bc->ndw / 4) > 7)
if ((bc->cf_last->ndw / 4) > 7)
bc->force_add_cf = 1;
return 0;
}
@ -701,7 +701,7 @@ int r600_bc_add_tex(struct r600_bc *bc, const struct r600_bc_tex *tex)
/* each texture fetch use 4 dwords */
bc->cf_last->ndw += 4;
bc->ndw += 4;
if ((bc->ndw / 4) > 7)
if ((bc->cf_last->ndw / 4) > 7)
bc->force_add_cf = 1;
return 0;
}