summaryrefslogtreecommitdiff
path: root/src/smi_video.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-17 20:08:49 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-17 20:08:49 -0200
commitc2e318eaec3ac281457acdca4ea10fa368f646d3 (patch)
tree39d4133e79e296675cc64a814f15182561afa80b /src/smi_video.c
parented6aba73259a1412e23a954d6a8dba439ad98a8a (diff)
Enable XAA and randr rotated modes.
Use the same logic for offscreen memory management as used in smi_video.c. This also makes the functions SMI_AllocateMemory and SMI_FreeMemory no longer static in smi_video.c.
Diffstat (limited to 'src/smi_video.c')
-rw-r--r--src/smi_video.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/smi_video.c b/src/smi_video.c
index df11a67..6346cfd 100644
--- a/src/smi_video.c
+++ b/src/smi_video.c
@@ -130,8 +130,6 @@ static void SMI_BlockHandler(int i, pointer blockData, pointer pTimeout,
static void SMI_InitOffscreenImages(ScreenPtr pScreen);
static void SMI_VideoSave(ScreenPtr pScreen, ExaOffscreenArea *area);
-static CARD32 SMI_AllocateMemory(ScrnInfoPtr pScrn, void **mem_struct, int size);
-static void SMI_FreeMemory(ScrnInfoPtr pScrn, void *mem_struct);
static void CopyYV12ToVideoMem(unsigned char *src1, unsigned char *src2,
unsigned char *src3, unsigned char *dst,
@@ -2216,7 +2214,7 @@ SMI_VideoSave(ScreenPtr pScreen, ExaOffscreenArea *area)
LEAVE();
}
-static CARD32
+CARD32
SMI_AllocateMemory(ScrnInfoPtr pScrn, void **mem_struct, int size)
{
ScreenPtr pScreen = screenInfo.screens[pScrn->scrnIndex];
@@ -2281,7 +2279,7 @@ SMI_AllocateMemory(ScrnInfoPtr pScrn, void **mem_struct, int size)
RETURN(offset);
}
-static void
+void
SMI_FreeMemory(
ScrnInfoPtr pScrn,
void *mem_struct