intel: GetBuffer fix
authorBen Widawsky <ben@bwidawsk.net>
Mon, 8 Aug 2011 00:04:04 +0000 (17:04 -0700)
committerBen Widawsky <ben@bwidawsk.net>
Wed, 10 Aug 2011 23:07:40 +0000 (16:07 -0700)
commitfa351bd2e0aecccd5ed6ef8744d5ba4a6dbf5d2c
treec9797bcc8892f7eb4fb4fdc725a78f6c1bdbd45a
parentdf7859be6b6b6c227e7a4e0b7fbfafcd0800f4f8
intel: GetBuffer fix

After copy buffer on preGEN6, it is necessary to wait for the blit to
complete before returning data to the user.

This should fix the piglit test: copy_buffer_coherency (pre-GEN6).

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_buffer_objects.c