summaryrefslogtreecommitdiff
path: root/src/nv10_exa.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-05-16 15:49:30 +0100
committerDave Airlie <airlied@redhat.com>2012-05-16 15:49:30 +0100
commit5ce9342f5abfc34e0f1e13e0be8d2c3d4888422f (patch)
treede7fe114de83c0976a255d12fc427559b1ffdb61 /src/nv10_exa.c
parent1c8eb7da72f1d272aa5eb6f549d9a5eef6e40df4 (diff)
downloadxorg-driver-xf86-video-nouveau-screen-conv-api.tar.gz
nouveau: convert to new screen conversion APIsscreen-conv-api
The compat header takes care of the old server vs new server. this commit was autogenerated from util/modular/x-driver-screen-scrn-conv.sh Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/nv10_exa.c')
-rw-r--r--src/nv10_exa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nv10_exa.c b/src/nv10_exa.c
index 2da8cf6..a3f7df3 100644
--- a/src/nv10_exa.c
+++ b/src/nv10_exa.c
@@ -337,7 +337,7 @@ print_fallback_info(char *reason, int op, PicturePtr src, PicturePtr mask,
Bool
NV10EXACheckComposite(int op, PicturePtr src, PicturePtr mask, PicturePtr dst)
{
- ScrnInfoPtr pScrn = xf86Screens[dst->pDrawable->pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(dst->pDrawable->pScreen);
NVPtr pNv = NVPTR(pScrn);
if (!check_pict_op(op)) {
@@ -545,7 +545,7 @@ NV10EXAPrepareComposite(int op,
PixmapPtr mask,
PixmapPtr dst)
{
- ScrnInfoPtr pScrn = xf86Screens[dst->drawable.pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(dst->drawable.pScreen);
NVPtr pNv = NVPTR(pScrn);
struct nouveau_pushbuf *push = pNv->pushbuf;
uint32_t sc, sa, mc, ma;
@@ -607,7 +607,7 @@ void
NV10EXAComposite(PixmapPtr pix_dst,
int sx, int sy, int mx, int my, int dx, int dy, int w, int h)
{
- ScrnInfoPtr pScrn = xf86Screens[pix_dst->drawable.pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pix_dst->drawable.pScreen);
NVPtr pNv = NVPTR(pScrn);
struct nouveau_pushbuf *push = pNv->pushbuf;
@@ -627,7 +627,7 @@ NV10EXAComposite(PixmapPtr pix_dst,
void
NV10EXADoneComposite(PixmapPtr dst)
{
- ScrnInfoPtr pScrn = xf86Screens[dst->drawable.pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(dst->drawable.pScreen);
nouveau_pushbuf_bufctx(NVPTR(pScrn)->pushbuf, NULL);
}