summaryrefslogtreecommitdiff
path: root/src/evergreen_exa.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-09-03 13:08:05 +1000
committerDave Airlie <airlied@redhat.com>2012-09-03 13:08:05 +1000
commit8c1bf9d8fe3948b72795984e625ef46b2f0bf654 (patch)
tree56b361130b3ca459aceb98400acfa936fca6d10b /src/evergreen_exa.c
parent3add8df8122697acfe126d4857f3946ce44b8305 (diff)
radeon: add pixmap sharing hooks.
This hooks into EXA and the dirty tracking to add sharing and output offload support. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/evergreen_exa.c')
-rw-r--r--src/evergreen_exa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/evergreen_exa.c b/src/evergreen_exa.c
index 40e2e96e..883fa5ce 100644
--- a/src/evergreen_exa.c
+++ b/src/evergreen_exa.c
@@ -1908,7 +1908,10 @@ EVERGREENDrawInit(ScreenPtr pScreen)
#if (EXA_VERSION_MAJOR == 2 && EXA_VERSION_MINOR >= 5)
info->accel_state->exa->CreatePixmap2 = RADEONEXACreatePixmap2;
#endif
-
+#if (EXA_VERSION_MAJOR == 2 && EXA_VERSION_MINOR >= 6)
+ info->accel_state->exa->SharePixmapBacking = RADEONEXASharePixmapBacking;
+ info->accel_state->exa->SetSharedPixmapBacking = RADEONEXASetSharedPixmapBacking;
+#endif
info->accel_state->exa->flags = EXA_OFFSCREEN_PIXMAPS;
#ifdef EXA_SUPPORTS_PREPARE_AUX
info->accel_state->exa->flags |= EXA_SUPPORTS_PREPARE_AUX;