i965/bufmgr: Set bo->idle after waiting.
After a successful wait, we know the buffer ought to be idle. Chris points out that: "The only caveat here is that bo is global, and we have a very unlikely (and probably unnoticeable) race condition with multiple contexts." Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
58a4fc2b00
commit
a1c9a6da18
|
@ -1018,6 +1018,8 @@ brw_bo_wait(struct brw_bo *bo, int64_t timeout_ns)
|
||||||
if (ret == -1)
|
if (ret == -1)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
|
bo->idle = true;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue