diff options
author | Chad Versace <[email protected]> | 2011-10-06 14:18:35 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-10-11 17:16:31 -0700 |
commit | e9adfa2ba1af9c3579b25327335c47118b6c7c3f (patch) | |
tree | 04b11c3d92b9821c36489a65487e8ff152c3911b /src/gallium/drivers | |
parent | d06cc42c3c85382600176d118d8bf492b4de6a55 (diff) |
intel: Assert that no batch is emitted if a region is mapped
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions