Re: [Mesa-dev] [PATCH] intel: Assert that no batch is emitted if a region is mapped [v2]

2011-10-11 Thread Ian Romanick
On 10/10/2011 01:22 PM, Chad Versace wrote: What I would prefer to assert is that, for each region that is currently mapped, no batch is emitted that uses that region's bo. However, it's much easier to implement this big hammer. Observe that this requires that the batch flush in intel_region_map

Re: [Mesa-dev] [PATCH] intel: Assert that no batch is emitted if a region is mapped [v2]

2011-10-11 Thread Eric Anholt
On Mon, 10 Oct 2011 13:22:46 -0700, Chad Versace wrote: > What I would prefer to assert is that, for each region that is currently > mapped, no batch is emitted that uses that region's bo. However, it's much > easier to implement this big hammer. > > Observe that this requires that the batch flus

[Mesa-dev] [PATCH] intel: Assert that no batch is emitted if a region is mapped [v2]

2011-10-10 Thread Chad Versace
What I would prefer to assert is that, for each region that is currently mapped, no batch is emitted that uses that region's bo. However, it's much easier to implement this big hammer. Observe that this requires that the batch flush in intel_region_map() be moved to within the map_refcount guard.