sna/gen3: Don't combine primitives if beginning a ca 2-pass

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-12-14 13:10:54 +00:00
parent 3ca503dac2
commit d867fd01cb
1 changed files with 2 additions and 1 deletions

View File

@ -1768,7 +1768,8 @@ static bool gen3_rectangle_begin(struct sna *sna,
}
}
if (sna->kgem.nbatch == 2 + state->last_vertex_offset) {
if (sna->kgem.nbatch == 2 + state->last_vertex_offset &&
!op->need_magic_ca_pass) {
state->vertex_offset = state->last_vertex_offset;
} else {
state->vertex_offset = sna->kgem.nbatch;