summaryrefslogtreecommitdiff
path: root/src/radeon_exa.c
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-07-02 14:52:44 +0200
committerMichel Dänzer <daenzer@vmware.com>2009-07-02 14:52:44 +0200
commit36a4ea5a9c7062f4c8aa7480bb7488ce2062390f (patch)
tree8b7465311889a97a67c0511c2a6a527f2d4af259 /src/radeon_exa.c
parent65465d56c1bf943113518a5b2f57b3170213bab9 (diff)
Warning fixes.
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r--src/radeon_exa.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c
index 9444da38..b28f726c 100644
--- a/src/radeon_exa.c
+++ b/src/radeon_exa.c
@@ -334,7 +334,7 @@ static void RADEONFinishAccess_BE(PixmapPtr pPix, int index)
#ifdef XF86DRM_MODE
static Bool RADEONPrepareAccess_CS(PixmapPtr pPix, int index)
{
- RINFO_FROM_SCREEN(pPix->drawable.pScreen);
+ ScrnInfoPtr pScrn = xf86Screens[pPix->drawable.pScreen->myNum];
struct radeon_exa_pixmap_priv *driver_priv;
int ret;
@@ -400,8 +400,6 @@ void *RADEONEXACreatePixmap(ScreenPtr pScreen, int size, int align)
static void RADEONEXADestroyPixmap(ScreenPtr pScreen, void *driverPriv)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
- RADEONInfoPtr info = RADEONPTR(pScrn);
struct radeon_exa_pixmap_priv *driver_priv = driverPriv;
if (!driverPriv)
@@ -413,8 +411,6 @@ static void RADEONEXADestroyPixmap(ScreenPtr pScreen, void *driverPriv)
struct radeon_bo *radeon_get_pixmap_bo(PixmapPtr pPix)
{
- ScrnInfoPtr pScrn = xf86Screens[pPix->drawable.pScreen->myNum];
- RADEONInfoPtr info = RADEONPTR(pScrn);
struct radeon_exa_pixmap_priv *driver_priv;
driver_priv = exaGetPixmapDriverPrivate(pPix);
return driver_priv->bo;
@@ -422,9 +418,6 @@ struct radeon_bo *radeon_get_pixmap_bo(PixmapPtr pPix)
void radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_bo *bo)
{
- ScrnInfoPtr pScrn = xf86Screens[pPix->drawable.pScreen->myNum];
- RADEONInfoPtr info = RADEONPTR(pScrn);
-
struct radeon_exa_pixmap_priv *driver_priv;
driver_priv = exaGetPixmapDriverPrivate(pPix);