vc4: Add dmabuf support

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 17 December 2014 18:07 UTC

This gets DRI3 working on modesetting with glamor. It's not enabled under simulation, because it looks like handing our dumb-allocated buffers off to the server doesn't actually work for the server's rendering.

39bc936 vc4: Add dmabuf support.
.../auxiliary/target-helpers/inline_drm_helper.h | 5 ++
src/gallium/drivers/vc4/vc4_bufmgr.c | 75 ++++++++++++++++----
src/gallium/drivers/vc4/vc4_bufmgr.h | 3 +
src/gallium/drivers/vc4/vc4_screen.c | 19 +++--
4 files changed, 78 insertions(+), 24 deletions(-)

Upstream: cgit.freedesktop.org


  • Share