diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-06 09:58:01 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2012-06-09 05:54:30 +0200 |
commit | 61df95a86f4997e342d50d7779b00aba2e8849a6 (patch) | |
tree | 117cbcc8d4c27b926bd2951db9994329e02dc109 /saa | |
parent | 46cdf0ed0ad9df66f36f95e27b209d454f67d526 (diff) |
vmware: port vmware driver to new compat API
This is a port of the vmware driver to the new compat API.
Tested-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'saa')
-rw-r--r-- | saa/saa.c | 4 | ||||
-rw-r--r-- | saa/saa.h | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -594,7 +594,7 @@ saa_set_fallback_debug(ScreenPtr screen, Bool enable) * screen private, before calling down to the next CloseScreen. */ Bool -saa_close_screen(int i, ScreenPtr pScreen) +saa_close_screen(CLOSE_SCREEN_ARGS_DECL) { struct saa_screen_priv *sscreen = saa_screen(pScreen); struct saa_driver *driver = sscreen->driver; @@ -624,7 +624,7 @@ saa_close_screen(int i, ScreenPtr pScreen) free(sscreen); - return (*pScreen->CloseScreen) (i, pScreen); + return (*pScreen->CloseScreen) (CLOSE_SCREEN_ARGS); } struct saa_driver * @@ -44,6 +44,8 @@ #include <damage.h> #include <picturestr.h> +#include "../src/compat-api.h" + #define SAA_VERSION_MAJOR 0 #define SAA_VERSION_MINOR 1 @@ -173,7 +175,7 @@ extern _X_EXPORT RegionPtr saa_bitmap_to_region(PixmapPtr pPix); extern _X_EXPORT Bool -saa_close_screen(int i, ScreenPtr pScreen); +saa_close_screen(CLOSE_SCREEN_ARGS_DECL); extern _X_EXPORT Bool saa_gc_reads_destination(DrawablePtr pDrawable, GCPtr pGC); |