Commit ad77ad32 authored by Adam Jackson's avatar Adam Jackson 🎧 Committed by Michel Dänzer
Browse files

Use own thunk function instead of shadowUpdatePackedWeak

I plan to delete the Weak functions from a future server.
Signed-off-by: Adam Jackson's avatarAdam Jackson <>
(ported from radeon commit 851b2cf8714618843725f6d067915375485ade9d)
Reviewed-by: default avatarAlex Deucher <>
parent f5ccea99
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment