mesa: Use pipe_buffer_write_nooverlap where appropriate.

This commit is contained in:
José Fonseca
2010-01-21 09:42:05 -08:00
parent 37246f854b
commit 8410f7cde3
3 changed files with 19 additions and 9 deletions

View File

@@ -386,11 +386,11 @@ setup_bitmap_vertex_data(struct st_context *st,
}
/* put vertex data into vbuf */
st_no_flush_pipe_buffer_write(st,
st->bitmap.vbuf,
st->bitmap.vbuf_slot * sizeof st->bitmap.vertices,
sizeof st->bitmap.vertices,
st->bitmap.vertices);
st_no_flush_pipe_buffer_write_nooverlap(st,
st->bitmap.vbuf,
st->bitmap.vbuf_slot * sizeof st->bitmap.vertices,
sizeof st->bitmap.vertices,
st->bitmap.vertices);
return st->bitmap.vbuf_slot++ * sizeof st->bitmap.vertices;
}