st/xorg: remove unused xorg_exa_get_pixmap_handle function
authorKeith Whitwell <keithw@vmware.com>
Thu, 26 Nov 2009 23:56:48 +0000 (23:56 +0000)
committerKeith Whitwell <keithw@vmware.com>
Thu, 7 Jan 2010 22:08:23 +0000 (22:08 +0000)
src/gallium/state_trackers/xorg/xorg_exa.c
src/gallium/state_trackers/xorg/xorg_tracker.h

index aa68570b9c07bcce6ee2c99ba1efeff1ee2d6ad0..d9432babf185080afced01fe76db5b105e8d5c3f 100644 (file)
@@ -811,34 +811,7 @@ xorg_exa_set_shared_usage(PixmapPtr pPixmap)
     return 0;
 }
 
-unsigned
-xorg_exa_get_pixmap_handle(PixmapPtr pPixmap, unsigned *stride_out)
-{
-    ScreenPtr pScreen = pPixmap->drawable.pScreen;
-    ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
-    modesettingPtr ms = modesettingPTR(pScrn);
-    struct exa_pixmap_priv *priv;
-    unsigned handle;
-    unsigned stride;
 
-    if (!ms->exa) {
-       FatalError("NO MS->EXA\n");
-       return 0;
-    }
-
-    priv = exaGetPixmapDriverPrivate(pPixmap);
-
-    if (!priv) {
-       FatalError("NO PIXMAP PRIVATE\n");
-       return 0;
-    }
-
-    ms->api->local_handle_from_texture(ms->api, ms->screen, priv->tex, &stride, &handle);
-    if (stride_out)
-       *stride_out = stride;
-
-    return handle;
-}
 
 static Bool
 size_match( int width, int tex_width )
index c0cfbe60616f9a2f4c7a1bbaab3f0dd7258d5cd4..4d5d4780dc412eef6652b3a67bf41ad474b72fa4 100644 (file)
@@ -135,9 +135,6 @@ typedef struct _modesettingRec
 struct pipe_texture *
 xorg_exa_get_texture(PixmapPtr pPixmap);
 
-unsigned
-xorg_exa_get_pixmap_handle(PixmapPtr pPixmap, unsigned *stride);
-
 int
 xorg_exa_set_displayed_usage(PixmapPtr pPixmap);