[PATCH 2/4] modesetting: Drop some non-functional triple-buffering variables
Adam Jackson
ajax at redhat.com
Wed Jul 22 09:14:07 PDT 2015
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 5 -----
hw/xfree86/drivers/modesetting/drmmode_display.h | 13 -------------
2 files changed, 18 deletions(-)
diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c
index 839f34f..125a9fb 100644
--- a/hw/xfree86/drivers/modesetting/drmmode_display.c
+++ b/hw/xfree86/drivers/modesetting/drmmode_display.c
@@ -1599,11 +1599,6 @@ drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
xf86DrvMsg(scrn->scrnIndex, X_INFO,
"Allocate new frame buffer %dx%d stride\n", width, height);
- if (drmmode->triple_buffer_pixmap) {
- screen->DestroyPixmap(drmmode->triple_buffer_pixmap);
- drmmode->triple_buffer_pixmap = NULL;
- }
-
old_width = scrn->virtualX;
old_height = scrn->virtualY;
old_pitch = drmmode_bo_get_pitch(&drmmode->front_bo);
diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.h b/hw/xfree86/drivers/modesetting/drmmode_display.h
index fcb1efa..f0c7a6e 100644
--- a/hw/xfree86/drivers/modesetting/drmmode_display.h
+++ b/hw/xfree86/drivers/modesetting/drmmode_display.h
@@ -68,19 +68,6 @@ typedef struct {
Bool force_24_32;
void *shadow_fb;
- /**
- * A screen-sized pixmap when we're doing triple-buffered DRI2
- * pageflipping.
- *
- * One is shared between all drawables that flip to the front
- * buffer, and it only gets reallocated when root pixmap size
- * changes.
- */
- PixmapPtr triple_buffer_pixmap;
-
- /** The GEM name for triple_buffer_pixmap */
- uint32_t triple_buffer_name;
-
DevPrivateKeyRec pixmapPrivateKeyRec;
Bool reverse_prime_offload_mode;
--
2.4.3
More information about the xorg-devel
mailing list