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

Eric Anholt eric at anholt.net
Tue Oct 11 11:50:20 PDT 2011


On Mon, 10 Oct 2011 13:22:46 -0700, Chad Versace <chad at chad-versace.us> 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() be
> moved to within the map_refcount guard.
> 
> v2: Add comments (borrowed from anholt's reply) explaining why the
> assertion is a good idea.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111011/4576f4a9/attachment.pgp>


More information about the mesa-dev mailing list