ChangeLog | 24 ++++++++++++ configure.ac | 2 - debian/changelog | 11 +++++ debian/control | 2 - debian/patches/series | 1 src/Makefile.am | 1 src/compat-api.h | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++ src/glide_driver.c | 41 ++++++++++----------- 8 files changed, 153 insertions(+), 23 deletions(-)
New commits: commit e0ece8262166ad8e924773b64cdb4e30c762b6d4 Author: Michele Cane <michele.c...@gmail.com> Date: Sat Sep 7 16:34:29 2013 +0200 Bump Standards-Version to 3.9.4, no changes needed. diff --git a/debian/changelog b/debian/changelog index b19ce7e..7f6260f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,12 @@ xserver-xorg-video-glide (1.2.1-1) UNRELEASED; urgency=low + [ Maarten Lankhorst ] * New upstream release. * Bump Standards-Version to 3.9.3 + [ Michele Cane ] + * Bump Standards-Version to 3.9.4, no changes needed. + -- Maarten Lankhorst <maarten.lankho...@canonical.com> Wed, 18 Jul 2012 15:59:52 +0200 xserver-xorg-video-glide (1.2.0-1) unstable; urgency=low diff --git a/debian/control b/debian/control index e37dd47..6fdd91d 100644 --- a/debian/control +++ b/debian/control @@ -15,7 +15,7 @@ Build-Depends: x11proto-render-dev, xutils-dev (>= 1:7.5+4), libglide3-dev, -Standards-Version: 3.9.3 +Standards-Version: 3.9.4 Vcs-Git: git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-video-glide Vcs-Browser: http://git.debian.org/?p=pkg-xorg/driver/xserver-xorg-video-glide.git commit b791b65e2e21ceeac3baa446f62c171cad3dcd7b Author: Maarten Lankhorst <maarten.lankho...@canonical.com> Date: Wed Jul 18 16:00:41 2012 +0200 Bump Standards-Version to 3.9.3 diff --git a/debian/changelog b/debian/changelog index 7482618..b19ce7e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ xserver-xorg-video-glide (1.2.1-1) UNRELEASED; urgency=low * New upstream release. + * Bump Standards-Version to 3.9.3 -- Maarten Lankhorst <maarten.lankho...@canonical.com> Wed, 18 Jul 2012 15:59:52 +0200 diff --git a/debian/control b/debian/control index eda32cc..e37dd47 100644 --- a/debian/control +++ b/debian/control @@ -15,7 +15,7 @@ Build-Depends: x11proto-render-dev, xutils-dev (>= 1:7.5+4), libglide3-dev, -Standards-Version: 3.9.1 +Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-video-glide Vcs-Browser: http://git.debian.org/?p=pkg-xorg/driver/xserver-xorg-video-glide.git diff --git a/debian/patches/series b/debian/patches/series index e69de29..fdffa2a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +# placeholder commit 5c38da6680896f92650c9dc7f263084234c1763c Author: Maarten Lankhorst <maarten.lankho...@canonical.com> Date: Wed Jul 18 16:00:17 2012 +0200 New upstream release. diff --git a/debian/changelog b/debian/changelog index 5d52a17..7482618 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +xserver-xorg-video-glide (1.2.1-1) UNRELEASED; urgency=low + + * New upstream release. + + -- Maarten Lankhorst <maarten.lankho...@canonical.com> Wed, 18 Jul 2012 15:59:52 +0200 + xserver-xorg-video-glide (1.2.0-1) unstable; urgency=low * New upstream release. commit 94d7f0127e1b109a17df24c4618b372954e8eaf4 Author: Maarten Lankhorst <maarten.lankho...@canonical.com> Date: Wed Jul 18 15:59:44 2012 +0200 Bump changelog diff --git a/ChangeLog b/ChangeLog index 7cf9a52..3fa5086 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +commit 02d1981149c4feb27f2a662f14b94185bada0e33 +Author: Guillem Jover <guil...@hadrons.org> +Date: Tue Jul 17 15:17:01 2012 +0200 + + Bump to 1.2.1 + + Signed-off-by: Guillem Jover <guil...@hadrons.org> + +commit e705a91181ee0c9a838277b946bea68ffe8fffe6 +Author: Guillem Jover <guil...@hadrons.org> +Date: Wed Jun 6 16:08:16 2012 +0200 + + Use new X server compat API + + Signed-off-by: Guillem Jover <guil...@hadrons.org> + +commit 0b815ca532bbc746a91ffce0bcf7b14ff11abfe8 +Author: Guillem Jover <guil...@hadrons.org> +Date: Fri Jan 20 15:14:55 2012 +0100 + + Remove unused xaa.h, xf86Cursor.h and xf86DDC.h inclusions + + Signed-off-by: Guillem Jover <guil...@hadrons.org> + commit 517e9252f3200f3e96bbfcfe84812b532c1b2933 Author: Guillem Jover <guil...@hadrons.org> Date: Fri Dec 30 06:21:19 2011 +0100 commit 02d1981149c4feb27f2a662f14b94185bada0e33 Author: Guillem Jover <guil...@hadrons.org> Date: Tue Jul 17 15:17:01 2012 +0200 Bump to 1.2.1 Signed-off-by: Guillem Jover <guil...@hadrons.org> diff --git a/configure.ac b/configure.ac index 594d711..cf5f896 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ AC_PREREQ([2.60]) AC_INIT([xf86-video-glide], - [1.2.0], + [1.2.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xf86-video-glide]) commit e705a91181ee0c9a838277b946bea68ffe8fffe6 Author: Guillem Jover <guil...@hadrons.org> Date: Wed Jun 6 16:08:16 2012 +0200 Use new X server compat API Signed-off-by: Guillem Jover <guil...@hadrons.org> diff --git a/src/Makefile.am b/src/Makefile.am index b8015dc..d7c63c9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -30,5 +30,6 @@ glide_drv_la_LDFLAGS = -module -avoid-version glide_drv_ladir = @moduledir@/drivers glide_drv_la_SOURCES = \ + compat-api.h \ glide_driver.c diff --git a/src/compat-api.h b/src/compat-api.h new file mode 100644 index 0000000..df783a8 --- /dev/null +++ b/src/compat-api.h @@ -0,0 +1,94 @@ +/* + * Copyright 2012 Red Hat, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Author: Dave Airlie <airl...@redhat.com> + */ + +/* this file provides API compat between server post 1.13 and pre it, + it should be reused inside as many drivers as possible */ +#ifndef COMPAT_API_H +#define COMPAT_API_H + +#ifndef GLYPH_HAS_GLYPH_PICTURE_ACCESSOR +#define GetGlyphPicture(g, s) GlyphPicture((g))[(s)->myNum] +#define SetGlyphPicture(g, s, p) GlyphPicture((g))[(s)->myNum] = p +#endif + +#ifndef XF86_HAS_SCRN_CONV +#define xf86ScreenToScrn(s) xf86Screens[(s)->myNum] +#define xf86ScrnToScreen(s) screenInfo.screens[(s)->scrnIndex] +#endif + +#ifndef XF86_SCRN_INTERFACE + +#define SCRN_ARG_TYPE int +#define SCRN_INFO_PTR(arg1) ScrnInfoPtr pScrn = xf86Screens[(arg1)] + +#define SCREEN_ARG_TYPE int +#define SCREEN_PTR(arg1) ScreenPtr pScreen = screenInfo.screens[(arg1)] + +#define SCREEN_INIT_ARGS_DECL int i, ScreenPtr pScreen, int argc, char **argv + +#define BLOCKHANDLER_ARGS_DECL int arg, pointer blockData, pointer pTimeout, pointer pReadmask +#define BLOCKHANDLER_ARGS arg, blockData, pTimeout, pReadmask + +#define CLOSE_SCREEN_ARGS_DECL int scrnIndex, ScreenPtr pScreen +#define CLOSE_SCREEN_ARGS scrnIndex, pScreen + +#define ADJUST_FRAME_ARGS_DECL int arg, int x, int y, int flags + +#define SWITCH_MODE_ARGS_DECL int arg, DisplayModePtr mode, int flags + +#define FREE_SCREEN_ARGS_DECL int arg, int flags + +#define VT_FUNC_ARGS_DECL int arg, int flags +#define VT_FUNC_ARGS pScrn->scrnIndex, 0 + +#define XF86_ENABLEDISABLEFB_ARG(x) ((x)->scrnIndex) +#else +#define SCRN_ARG_TYPE ScrnInfoPtr +#define SCRN_INFO_PTR(arg1) ScrnInfoPtr pScrn = (arg1) + +#define SCREEN_ARG_TYPE ScreenPtr +#define SCREEN_PTR(arg1) ScreenPtr pScreen = (arg1) + +#define SCREEN_INIT_ARGS_DECL ScreenPtr pScreen, int argc, char **argv + +#define BLOCKHANDLER_ARGS_DECL ScreenPtr arg, pointer pTimeout, pointer pReadmask +#define BLOCKHANDLER_ARGS arg, pTimeout, pReadmask + +#define CLOSE_SCREEN_ARGS_DECL ScreenPtr pScreen +#define CLOSE_SCREEN_ARGS pScreen + +#define ADJUST_FRAME_ARGS_DECL ScrnInfoPtr arg, int x, int y +#define SWITCH_MODE_ARGS_DECL ScrnInfoPtr arg, DisplayModePtr mode + +#define FREE_SCREEN_ARGS_DECL ScrnInfoPtr arg + +#define VT_FUNC_ARGS_DECL ScrnInfoPtr arg +#define VT_FUNC_ARGS pScrn + +#define XF86_ENABLEDISABLEFB_ARG(x) (x) + +#endif + +#endif diff --git a/src/glide_driver.c b/src/glide_driver.c index 84df77a..149bb32 100644 --- a/src/glide_driver.c +++ b/src/glide_driver.c @@ -67,6 +67,8 @@ #include "xf86cmap.h" #include "shadowfb.h" +#include "compat-api.h" + #include <glide.h> /* glide3x does not define this alias anymore, so let's do it ourselves. */ @@ -107,12 +109,12 @@ static const OptionInfoRec * GLIDEAvailableOptions(int chipid, int busid); static void GLIDEIdentify(int flags); static Bool GLIDEProbe(DriverPtr drv, int flags); static Bool GLIDEPreInit(ScrnInfoPtr pScrn, int flags); -static Bool GLIDEScreenInit(int Index, ScreenPtr pScreen, int argc, char **argv); -static Bool GLIDEEnterVT(int scrnIndex, int flags); -static void GLIDELeaveVT(int scrnIndex, int flags); -static Bool GLIDECloseScreen(int scrnIndex, ScreenPtr pScreen); +static Bool GLIDEScreenInit(SCREEN_INIT_ARGS_DECL); +static Bool GLIDEEnterVT(VT_FUNC_ARGS_DECL); +static void GLIDELeaveVT(VT_FUNC_ARGS_DECL); +static Bool GLIDECloseScreen(CLOSE_SCREEN_ARGS_DECL); static Bool GLIDESaveScreen(ScreenPtr pScreen, int mode); -static void GLIDEFreeScreen(int scrnIndex, int flags); +static void GLIDEFreeScreen(FREE_SCREEN_ARGS_DECL); static void GLIDERefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox); static Bool GLIDEModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode); static void GLIDERestore(ScrnInfoPtr pScrn, Bool Closing); @@ -573,7 +575,7 @@ GLIDEPreInit(ScrnInfoPtr pScrn, int flags) /* Mandatory */ /* This gets called at the start of each server generation */ static Bool -GLIDEScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) +GLIDEScreenInit(SCREEN_INIT_ARGS_DECL) { ScrnInfoPtr pScrn; GLIDEPtr pGlide; @@ -583,7 +585,7 @@ GLIDEScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) /* * First get the ScrnInfoRec */ - pScrn = xf86Screens[pScreen->myNum]; + pScrn = xf86ScreenToScrn(pScreen); pGlide = GLIDEPTR(pScrn); @@ -693,9 +695,9 @@ GLIDEScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) /* Mandatory */ static Bool -GLIDEEnterVT(int scrnIndex, int flags) +GLIDEEnterVT(VT_FUNC_ARGS_DECL) { - ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; + SCRN_INFO_PTR(arg); return GLIDEModeInit(pScrn, pScrn->currentMode); } @@ -708,9 +710,9 @@ GLIDEEnterVT(int scrnIndex, int flags) /* Mandatory */ static void -GLIDELeaveVT(int scrnIndex, int flags) +GLIDELeaveVT(VT_FUNC_ARGS_DECL) { - ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; + SCRN_INFO_PTR(arg); GLIDERestore(pScrn, FALSE); } @@ -723,9 +725,9 @@ GLIDELeaveVT(int scrnIndex, int flags) /* Mandatory */ static Bool -GLIDECloseScreen(int scrnIndex, ScreenPtr pScreen) +GLIDECloseScreen(CLOSE_SCREEN_ARGS_DECL) { - ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); GLIDEPtr pGlide = GLIDEPTR(pScrn); if (pScrn->vtSema) @@ -735,7 +737,7 @@ GLIDECloseScreen(int scrnIndex, ScreenPtr pScreen) pScrn->vtSema = FALSE; pScreen->CloseScreen = pGlide->CloseScreen; - return (*pScreen->CloseScreen)(scrnIndex, pScreen); + return (*pScreen->CloseScreen)(CLOSE_SCREEN_ARGS); } @@ -743,9 +745,9 @@ GLIDECloseScreen(int scrnIndex, ScreenPtr pScreen) /* Optional */ static void -GLIDEFreeScreen(int scrnIndex, int flags) +GLIDEFreeScreen(FREE_SCREEN_ARGS_DECL) { - ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; + SCRN_INFO_PTR(arg); GLIDEPtr pGlide = GLIDEPTR(pScrn); /* * This only gets called when a screen is being deleted. It does not @@ -753,7 +755,7 @@ GLIDEFreeScreen(int scrnIndex, int flags) */ if (pGlide && pGlide->ShadowPtr) free(pGlide->ShadowPtr); - GLIDEFreeRec(xf86Screens[scrnIndex]); + GLIDEFreeRec(pScrn); } @@ -767,7 +769,7 @@ GLIDESaveScreen(ScreenPtr pScreen, int mode) Bool unblank; unblank = xf86IsUnblank(mode); - pScrn = xf86Screens[pScreen->myNum]; + pScrn = xf86ScreenToScrn(pScreen); pGlide = GLIDEPTR(pScrn); pGlide->Blanked = !unblank; if (unblank) commit 0b815ca532bbc746a91ffce0bcf7b14ff11abfe8 Author: Guillem Jover <guil...@hadrons.org> Date: Fri Jan 20 15:14:55 2012 +0100 Remove unused xaa.h, xf86Cursor.h and xf86DDC.h inclusions Signed-off-by: Guillem Jover <guil...@hadrons.org> diff --git a/src/glide_driver.c b/src/glide_driver.c index 9217f0b..84df77a 100644 --- a/src/glide_driver.c +++ b/src/glide_driver.c @@ -49,15 +49,12 @@ #include "config.h" #endif -#include "xaa.h" -#include "xf86Cursor.h" #include "colormapst.h" #include "xf86.h" #include "xf86_OSproc.h" #include "mipointer.h" #include "mibstore.h" #include "micmap.h" -#include "xf86DDC.h" #include "globals.h" #ifdef HAVE_XEXTPROTO_71 #include <X11/extensions/dpmsconst.h> -- To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/e1vijba-0008eg...@vasks.debian.org