mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 13:20:37 +02:00
glx: use base screen has_multibuffer for drisw
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30375>
This commit is contained in:
parent
e9aec758c6
commit
82955b48aa
2 changed files with 2 additions and 6 deletions
|
|
@ -728,7 +728,7 @@ driswCreateDrawable(struct glx_screen *base, XID xDrawable,
|
|||
pdp->driDrawable =
|
||||
kopper->createNewDrawable(psc->driScreen, config->driConfig, pdp,
|
||||
&(__DRIkopperDrawableInfo){
|
||||
.multiplanes_available = psc->has_multibuffer,
|
||||
.multiplanes_available = base->display->has_multibuffer,
|
||||
.is_pixmap = !(type & GLX_WINDOW_BIT),
|
||||
});
|
||||
|
||||
|
|
@ -998,9 +998,7 @@ driswCreateScreen(int screen, struct glx_display *priv, enum glx_driver glx_driv
|
|||
|
||||
#if defined(HAVE_DRI3)
|
||||
if (glx_driver) {
|
||||
bool err;
|
||||
psc->has_multibuffer = loader_dri3_check_multibuffer(XGetXCBConnection(priv->dpy), &err);
|
||||
if (!psc->has_multibuffer &&
|
||||
if (!priv->has_multibuffer &&
|
||||
!debug_get_bool_option("LIBGL_ALWAYS_SOFTWARE", false) &&
|
||||
!debug_get_bool_option("LIBGL_KOPPER_DRI2", false)) {
|
||||
/* only print error if zink was explicitly requested */
|
||||
|
|
|
|||
|
|
@ -52,8 +52,6 @@ struct drisw_screen
|
|||
const __DRIconfig **driver_configs;
|
||||
|
||||
char *name;
|
||||
|
||||
bool has_multibuffer;
|
||||
};
|
||||
|
||||
struct drisw_drawable
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue