sna: Allow the debugger to map bo from the batch during kgem_submit()

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-13 13:18:56 +00:00
parent 2fabb5068d
commit e39ea29bcc
1 changed files with 1 additions and 1 deletions

View File

@ -1888,7 +1888,7 @@ void *kgem_bo_map(struct kgem *kgem, struct kgem_bo *bo, int prot)
{
void *ptr;
assert(bo->refcnt);
assert(bo->refcnt || bo->exec); /* allow for debugging purposes */
assert(!bo->purged);
if (IS_CPU_MAP(bo->map)) {