summaryrefslogtreecommitdiff
path: root/src/atimach64render.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-06 10:41:11 +0100
committerDave Airlie <airlied@redhat.com>2012-06-06 10:41:11 +0100
commita9f3a66e355b9f19c312d399771fb1d8eb2e046d (patch)
tree1f86ca50a5ccaf835a84722458954b97b757f478 /src/atimach64render.c
parent84468ba28853fa57170025d9c25cb0029a386ff4 (diff)
mach64: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/atimach64render.c')
-rw-r--r--src/atimach64render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/atimach64render.c b/src/atimach64render.c
index 1e9485e..4862cd4 100644
--- a/src/atimach64render.c
+++ b/src/atimach64render.c
@@ -583,7 +583,7 @@ Mach64BlendCntl(Mach64ContextRegs3D *m3d, int op)
static Bool
Mach64PrepareTexture(PicturePtr pPict, PixmapPtr pPix)
{
- ScrnInfoPtr pScreenInfo = xf86Screens[pPix->drawable.pScreen->myNum];
+ ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pPix->drawable.pScreen);
ATIPtr pATI = ATIPTR(pScreenInfo);
Mach64ContextRegs3D *m3d = &pATI->m3d;
@@ -671,7 +671,7 @@ Mach64PrepareComposite
PixmapPtr pDst
)
{
- ScrnInfoPtr pScreenInfo = xf86Screens[pDst->drawable.pScreen->myNum];
+ ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pDst->drawable.pScreen);
ATIPtr pATI = ATIPTR(pScreenInfo);
Mach64ContextRegs3D *m3d = &pATI->m3d;
@@ -818,7 +818,7 @@ Mach64Composite
int h
)
{
- ScrnInfoPtr pScreenInfo = xf86Screens[pDst->drawable.pScreen->myNum];
+ ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pDst->drawable.pScreen);
ATIPtr pATI = ATIPTR(pScreenInfo);
Mach64ContextRegs3D *m3d = &pATI->m3d;
@@ -895,7 +895,7 @@ Mach64Composite
void
Mach64DoneComposite(PixmapPtr pDst)
{
- ScrnInfoPtr pScreenInfo = xf86Screens[pDst->drawable.pScreen->myNum];
+ ScrnInfoPtr pScreenInfo = xf86ScreenToScrn(pDst->drawable.pScreen);
ATIPtr pATI = ATIPTR(pScreenInfo);
ATIDRISync(pScreenInfo);