i965: Also flush the vertex buffer when restarting the array.

As a corollary to filling one vertex array and beginning a new one is
remembering to emit the old one before overwriting...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2010-12-05 01:08:51 +00:00
parent f40f8bcf07
commit 8450aba6c7
1 changed files with 1 additions and 0 deletions

View File

@ -1843,6 +1843,7 @@ i965_composite(PixmapPtr dest, int srcX, int srcY, int maskX, int maskY,
}
if (intel->floats_per_vertex != intel->last_floats_per_vertex ||
intel_vertex_space(intel) < 3*4*intel->floats_per_vertex) {
i965_vertex_flush(intel);
intel_next_vertex(intel);
i965_select_vertex_buffer(intel);
intel->vertex_index = 0;