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 <ajax@redhat.com>
(ported from radeon commit 851b2cf8714618843725f6d067915375485ade9d)
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f5ccea99
...@@ -157,6 +157,12 @@ static void *amdgpuShadowWindow(ScreenPtr screen, CARD32 row, CARD32 offset, ...@@ -157,6 +157,12 @@ static void *amdgpuShadowWindow(ScreenPtr screen, CARD32 row, CARD32 offset,
return ((uint8_t *) info->front_buffer->cpu_ptr + row * stride + 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) static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen)
{ {
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
...@@ -176,7 +182,7 @@ static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen) ...@@ -176,7 +182,7 @@ static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen)
if (info->shadow_fb) { if (info->shadow_fb) {
pixmap = pScreen->GetScreenPixmap(pScreen); pixmap = pScreen->GetScreenPixmap(pScreen);
if (!shadowAdd(pScreen, pixmap, shadowUpdatePackedWeak(), if (!shadowAdd(pScreen, pixmap, amdgpuUpdatePacked,
amdgpuShadowWindow, 0, NULL)) amdgpuShadowWindow, 0, NULL))
return FALSE; 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