Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24075>
#define __DRI_KOPPER_VERSION 1
struct __DRIkopperDrawableInfoRec {
+ bool multiplanes_available;
int is_pixmap;
};
dri2_surf->dri_drawable = dri2_dpy->kopper->createNewDrawable(
dri2_dpy->dri_screen_render_gpu, config, loaderPrivate,
&(__DRIkopperDrawableInfo){
+#ifdef HAVE_X11_PLATFORM
+ .multiplanes_available = dri2_dpy->multibuffers_available,
+#endif
.is_pixmap = dri2_surf->base.Type == EGL_PBUFFER_BIT ||
dri2_surf->base.Type == EGL_PIXMAP_BIT,
});
pdp->driDrawable =
kopper->createNewDrawable(psc->driScreen, config->driConfig, pdp,
&(__DRIkopperDrawableInfo){
+ .multiplanes_available = psc->has_multibuffer,
.is_pixmap = !(type & GLX_WINDOW_BIT),
});