mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -1018,6 +1018,8 @@ brw_bo_wait(struct brw_bo *bo, int64_t timeout_ns)
|
|||
if (ret == -1)
|
||||
return -errno;
|
||||
|
||||
bo->idle = true;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue