summaryrefslogtreecommitdiff
path: root/glamor/glamor_egl_stubs.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-12-05 10:58:28 -0800
committerKeith Packard <keithp@keithp.com>2014-12-09 08:46:45 -0800
commit5064ffab631dcbc4265079fb32a02d3e2f1c4cd8 (patch)
tree76c3e0ec93522f827c22bf1891439a054ae2c59f /glamor/glamor_egl_stubs.c
parent3e7218a6c23354d66f508b18164cac98a346b3ee (diff)
glamor: Always destroy EGL image associated with destroyed pixmap
There were three paths that called eglDestroyImageKHR: * The front buffer * The intel driver's flip buffer * pixmaps under DRI3 This patch unifies the second two by having glamor_destroy_pixmap always destroy any associaged EGL image. This allows us to stop storing the back_pixmap pointer in glamor as that was only used to make sure that buffer was freed at server reset time. v2: check for valid pixmap_priv before using it in glamor_egl_destroy_pixmap_image Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor_egl_stubs.c')
-rw-r--r--glamor/glamor_egl_stubs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_egl_stubs.c b/glamor/glamor_egl_stubs.c
index 028d1cc05..a93f62dcb 100644
--- a/glamor/glamor_egl_stubs.c
+++ b/glamor/glamor_egl_stubs.c
@@ -36,7 +36,7 @@ glamor_egl_screen_init(ScreenPtr screen, struct glamor_context *glamor_ctx)
}
void
-glamor_egl_destroy_textured_pixmap(PixmapPtr pixmap)
+glamor_egl_destroy_pixmap_image(PixmapPtr pixmap)
{
}