summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2014-05-21 09:34:32 -0400
committerAdam Jackson <ajax@redhat.com>2014-05-21 09:34:32 -0400
commit851b2cf8714618843725f6d067915375485ade9d (patch)
treebb940563aa13b12d6388b26b46960d26c1cb19d7
parentb2dba2906f0b2284f17f53fd5251ba0f03d52a8b (diff)
kms: Use own thunk function instead of shadowUpdatePackedWeak
I plan to delete the Weak functions from a future server. Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--src/radeon_kms.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 5e052e4e..ceaf575d 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -212,6 +212,12 @@ radeonShadowWindow(ScreenPtr screen, CARD32 row, CARD32 offset, int mode,
return ((uint8_t *)info->front_bo->ptr + row * stride + offset);
}
+static void
+radeonUpdatePacked(ScreenPtr pScreen, shadowBufPtr pBuf)
+{
+ shadowUpdatePacked(pScreen, pBuf);
+}
+
static Bool RADEONCreateScreenResources_KMS(ScreenPtr pScreen)
{
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
@@ -232,7 +238,7 @@ static Bool RADEONCreateScreenResources_KMS(ScreenPtr pScreen)
if (info->r600_shadow_fb) {
pixmap = pScreen->GetScreenPixmap(pScreen);
- if (!shadowAdd(pScreen, pixmap, shadowUpdatePackedWeak(),
+ if (!shadowAdd(pScreen, pixmap, radeonUpdatePacked,
radeonShadowWindow, 0, NULL))
return FALSE;
}