diff options
author | Ilia Mirkin <[email protected]> | 2015-09-25 16:34:07 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-09-28 17:28:54 -0400 |
commit | d4e650b07bc80075f0d088e7d85df9efa45e11bd (patch) | |
tree | 6b0d171131dfca4ea705397f66256e1069c1be49 /src/gallium/drivers/nouveau/nouveau_fence.h | |
parent | 4c5308bbf4fa5c6ac274f6e1ab7c8846a2866976 (diff) |
nouveau: be more careful about freeing temporary transfer buffers
Deleting a buffer does not flush the command stream. Make sure that we
wait for the copies to finish before deleting the temporary bo.
Signed-off-by: Ilia Mirkin <[email protected]>
Cc: [email protected]
Tested-by: Marcin Ĺšlusarz <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_fence.h')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_fence.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_fence.h b/src/gallium/drivers/nouveau/nouveau_fence.h index a1587051b0f..2efcab2172d 100644 --- a/src/gallium/drivers/nouveau/nouveau_fence.h +++ b/src/gallium/drivers/nouveau/nouveau_fence.h @@ -37,6 +37,9 @@ void nouveau_fence_next(struct nouveau_screen *); bool nouveau_fence_wait(struct nouveau_fence *); bool nouveau_fence_signalled(struct nouveau_fence *); +void nouveau_fence_unref_bo(void *data); /* generic unref bo callback */ + + static inline void nouveau_fence_ref(struct nouveau_fence *fence, struct nouveau_fence **ref) { |