diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-06-16 21:21:25 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-06-16 21:31:44 +0200 |
commit | d28613e557fcdc4fc69f9a138a8c5fc909a719f5 (patch) | |
tree | 1b4971d9c34a8eed7a6861071ae5167e1df5bd0e /saa/saa_accel.c | |
parent | 84166d4b457244bcc2f5ace63702d594d602d0c2 (diff) |
vmwgfx: Fix up driver build process for Xserver >= 1.7.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'saa/saa_accel.c')
-rw-r--r-- | saa/saa_accel.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/saa/saa_accel.c b/saa/saa_accel.c index be33170..7bd5d61 100644 --- a/saa/saa_accel.c +++ b/saa/saa_accel.c @@ -30,6 +30,7 @@ #include "saa.h" #include "saa_priv.h" +#include <mi.h> Bool saa_hw_copy_nton(DrawablePtr pSrcDrawable, @@ -135,7 +136,13 @@ saa_copy_area(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, GCPtr pGC, srcx, srcy, width, height, dstx, dsty); } +#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 6) return miDoCopy(pSrcDrawable, pDstDrawable, pGC, srcx, srcy, width, height, dstx, dsty, saa_copy_nton, 0, NULL); +#else + return fbDoCopy(pSrcDrawable, pDstDrawable, pGC, + srcx, srcy, width, height, + dstx, dsty, saa_copy_nton, 0, NULL); +#endif } |