[PATCH xf86-video-amdgpu 2/9] Use own thunk function instead of shadowUpdatePackedWeak
Michel Dänzer
michel at daenzer.net
Wed Nov 11 01:30:48 PST 2015
From: Adam Jackson <ajax at redhat.com>
I plan to delete the Weak functions from a future server.
Signed-off-by: Adam Jackson <ajax at redhat.com>
(ported from radeon commit 851b2cf8714618843725f6d067915375485ade9d)
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/amdgpu_kms.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index fd89ba2..054d478 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -157,6 +157,12 @@ static void *amdgpuShadowWindow(ScreenPtr screen, CARD32 row, CARD32 offset,
return ((uint8_t *) info->front_buffer->cpu_ptr + row * stride + offset);
}
+static void
+amdgpuUpdatePacked(ScreenPtr pScreen, shadowBufPtr pBuf)
+{
+ shadowUpdatePacked(pScreen, pBuf);
+}
+
static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen)
{
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
@@ -176,7 +182,7 @@ static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen)
if (info->shadow_fb) {
pixmap = pScreen->GetScreenPixmap(pScreen);
- if (!shadowAdd(pScreen, pixmap, shadowUpdatePackedWeak(),
+ if (!shadowAdd(pScreen, pixmap, amdgpuUpdatePacked,
amdgpuShadowWindow, 0, NULL))
return FALSE;
}
--
2.6.2
More information about the xorg-driver-ati
mailing list