Mesa (master): vc4: Don' t try to put our dmabuf-exported BOs into the BO cache.
Eric Anholt
anholt at kemper.freedesktop.org
Thu May 28 00:32:41 UTC 2015
Module: Mesa
Branch: master
Commit: f8de6277bfa1a7db9a8c0f0baaa441276264a982
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8de6277bfa1a7db9a8c0f0baaa441276264a982
Author: Eric Anholt <eric at anholt.net>
Date: Wed May 27 16:20:28 2015 -0700
vc4: Don't try to put our dmabuf-exported BOs into the BO cache.
We'd sometimes try to reallocate something that X was using as a new
pipe_resource, and potentially conflict in our rendering. But even
worse, if we reallocated the BO as a shader, the kernel would reject
rendering using the shader.
---
src/gallium/drivers/vc4/vc4_bufmgr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c
index 4bb2c71..6b3a8c3 100644
--- a/src/gallium/drivers/vc4/vc4_bufmgr.c
+++ b/src/gallium/drivers/vc4/vc4_bufmgr.c
@@ -286,6 +286,7 @@ vc4_bo_get_dmabuf(struct vc4_bo *bo)
bo->handle);
return -1;
}
+ bo->private = false;
return fd;
}
More information about the mesa-commit
mailing list