diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-05-17 12:36:29 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2018-07-09 18:24:39 +0200 |
commit | ba5d5402b3e2e807d7e47205ac83f930b6c8caf5 (patch) | |
tree | 3185fe880b8083729dcddedf23e26d26a280f010 /src/radeon_glamor.c | |
parent | eec4a41925127ae490f0a5156a881a08d521e28e (diff) |
glamor: Don't store radeon_surfaces in pixmaps
Only EXA needs them.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_glamor.c')
-rw-r--r-- | src/radeon_glamor.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c index 10d513ea..6cff72e1 100644 --- a/src/radeon_glamor.c +++ b/src/radeon_glamor.c @@ -250,8 +250,7 @@ radeon_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, priv->bo = radeon_alloc_pixmap_bo(scrn, w, h, depth, usage, pixmap->drawable.bitsPerPixel, - &stride, - &priv->surface, + &stride, NULL, &priv->tiling_flags); if (!priv->bo) goto fallback_priv; @@ -391,15 +390,12 @@ radeon_glamor_set_shared_pixmap_backing(PixmapPtr pixmap, void *handle) { ScreenPtr screen = pixmap->drawable.pScreen; ScrnInfoPtr scrn = xf86ScreenToScrn(screen); - struct radeon_surface surface; struct radeon_pixmap *priv; - if (!radeon_set_shared_pixmap_backing(pixmap, handle, &surface)) + if (!radeon_set_shared_pixmap_backing(pixmap, handle, NULL)) return FALSE; priv = radeon_get_pixmap_private(pixmap); - priv->surface = surface; - if (!radeon_glamor_create_textured_pixmap(pixmap, priv)) { xf86DrvMsg(scrn->scrnIndex, X_ERROR, "Failed to get PRIME drawable for glamor pixmap.\n"); |