]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vgem: drop DRIVER_PRIME (v2)
authorRob Clark <robdclark@gmail.com>
Thu, 21 May 2015 15:58:30 +0000 (11:58 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 26 May 2015 06:17:06 +0000 (16:17 +1000)
commit895a52ba2c4be9400d8b48e0a9fe9c6e2856873d
tree0add81b1d7abf482ada496a34bc21651b9c047ea
parent7ea797fb7fe5c494f95e30c47c07c23308fb498e
drm/vgem: drop DRIVER_PRIME (v2)

For actual sharing of buffers with other drivers (ie. actual hardware)
we'll need to pimp things out a bit better to deal w/ caching, multiple
memory domains, etc.  See thread:

  http://lists.freedesktop.org/archives/dri-devel/2015-May/083160.html

But for the llvmpipe use-case this isn't a problem.  Nor do we really
need prime/dri3 (dri2 is sufficient).  So until the other issues are
sorted lets remove DRIVER_PRIME.

v2: also drop the dead code

[airlied:
 Okay I'm convinced this API could have a lot of use cases
 that are really really bad, yes the upload use case is valid
 however that isn't the only use case enabled, and if we allow
 all the other use cases, people will start to (ab)use them,
 and then they'll be ABI and my life will get worse, so disable
 PRIME for now]

Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vgem/Makefile
drivers/gpu/drm/vgem/vgem_dma_buf.c [deleted file]
drivers/gpu/drm/vgem/vgem_drv.c
drivers/gpu/drm/vgem/vgem_drv.h