xserver-multidpi/hw/xfree86/dri2
Dave Airlie 3029801216 dri2: add initial prime support. (v1.2)
This adds the initial prime support for dri2 offload. The main thing is
when we get a connection from a prime client, we stored the information
and mark all drawables from that client as prime. We then create all
buffers for that drawable on the prime device dri2screen.

Then DRI2UpdatePrime is provided which drivers can call to get a shared
pixmap which they can use as the front buffer. The driver is then
responsible for doing the back->front copy to the shared buffer.

prime requires a compositing manager be run, but it handles the case where
a window get un-redirected by allocating a new pixmap and pointing the crtc
at it while the client is in that state.

Currently prime can't handle pageflipping, so always does straight copy swap,

v1.1: renumber on top of master.
v1.2: fix auth on top of master.

Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-07 10:39:10 +01:00
..
dri2.c dri2: add initial prime support. (v1.2) 2012-07-07 10:39:10 +01:00
dri2.h dri2: add initial prime support. (v1.2) 2012-07-07 10:39:10 +01:00
dri2ext.c dri2: add initial prime support. (v1.2) 2012-07-07 10:39:10 +01:00
Makefile.am Add pixman to module dependencies for pixman_region_* functions 2012-07-02 11:08:57 -07:00