diff options
author | Kenneth Graunke <[email protected]> | 2017-08-02 18:06:05 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-08-08 16:45:15 -0700 |
commit | a1c9a6da18b3fdb094804d1fa2529024261ed265 (patch) | |
tree | 5447e4dabd0ef773765a9748824545657acbdd79 /src/mesa/drivers/dri | |
parent | 58a4fc2b00e7aa2ffb9f30159150ab7587a8cfce (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_bufmgr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c index e1036f25a4c..0a5830da53a 100644 --- a/src/mesa/drivers/dri/i965/brw_bufmgr.c +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c @@ -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; } |