intel: Flush when mapping buffer objects so writes don't get reordered.
authorEric Anholt <eric@anholt.net>
Fri, 3 Jul 2009 01:02:44 +0000 (18:02 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 3 Jul 2009 01:53:56 +0000 (18:53 -0700)
commitae1bfb6427cc10a851c80e020cbdc210fe238d85
treecfa3db97b6dc97a97ce5c142932526463c2fbad6
parent9a0b570ab64169cee66f848d97d65f22c43d13ec
intel: Flush when mapping buffer objects so writes don't get reordered.

While GEM covers this for execution it knows about, it doesn't know about
the batchbuffer we're preparing.  Fixes piglit vbo-map-remap.c testcase.
src/mesa/drivers/dri/intel/intel_buffer_objects.c
src/mesa/drivers/dri/intel/intel_regions.c