summaryrefslogtreecommitdiff
path: root/src/radeon_exa.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-05-23 12:18:36 +0200
committerMichel Dänzer <michel@daenzer.net>2018-07-09 18:14:19 +0200
commitac18a993a3a68629805b8f272a339e25444c0897 (patch)
treef45a6b03703c09158aa77e01183e7008b60b6e30 /src/radeon_exa.c
parent25836375e0aab17a2e6bd91acb1c19b837ae2109 (diff)
EXA: Remove old RADEONEXACreatePixmap hook
Not used by any supported version of xserver. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r--src/radeon_exa.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c
index 9106d5c6..ef60bc0c 100644
--- a/src/radeon_exa.c
+++ b/src/radeon_exa.c
@@ -235,35 +235,6 @@ void RADEONFinishAccess_CS(PixmapPtr pPix, int index)
}
-void *RADEONEXACreatePixmap(ScreenPtr pScreen, int size, int align)
-{
- ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
- RADEONInfoPtr info = RADEONPTR(pScrn);
- struct radeon_exa_pixmap_priv *new_priv;
-
- if (size != 0 && !info->exa_force_create &&
- info->exa_pixmaps == FALSE)
- return NULL;
-
- new_priv = calloc(1, sizeof(struct radeon_exa_pixmap_priv));
- if (!new_priv)
- return NULL;
-
- if (size == 0)
- return new_priv;
-
- new_priv->bo = radeon_bo_open(info->bufmgr, 0, size, align,
- RADEON_GEM_DOMAIN_VRAM, 0);
- if (!new_priv->bo) {
- free(new_priv);
- ErrorF("Failed to alloc memory\n");
- return NULL;
- }
-
- return new_priv;
-
-}
-
void *RADEONEXACreatePixmap2(ScreenPtr pScreen, int width, int height,
int depth, int usage_hint, int bitsPerPixel,
int *new_pitch)