egl: Fix leak of X11 pixmaps backing pbuffers in DRI3.
authorEric Anholt <eric@anholt.net>
Tue, 7 Aug 2018 18:37:28 +0000 (11:37 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 9 Aug 2018 20:12:13 +0000 (13:12 -0700)
commitb618d7ea59a4d7da9823e02ac5608a67fd99b332
treec2c4f38bc6ba6ddf14dca160affb37e7437c0ba9
parent08a5c395abdafd0d7556060596f78c238b4a989f
egl: Fix leak of X11 pixmaps backing pbuffers in DRI3.

This is basically copied from the DRI2 destroy path.  Without this,
Raspberry Pi would quickly run out of CMA during the EGL tests in the CTS
due to all the pixmaps laying around.

Fixes: f35198badeb9 ("egl/x11: Implement dri3 support with loader's dri3 helper")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/drivers/dri2/platform_x11_dri3.c