diff --git a/src/gallium/frontends/dri/dri_drawable.h b/src/gallium/frontends/dri/dri_drawable.h index 5f80ccc6c60..06dcd92d76a 100644 --- a/src/gallium/frontends/dri/dri_drawable.h +++ b/src/gallium/frontends/dri/dri_drawable.h @@ -92,7 +92,6 @@ struct dri_drawable __DRIimage *image; //texture_from_pixmap bool is_window; bool window_valid; - bool has_modifiers; /* hooks filled in by dri2 & drisw */ void (*allocate_textures)(struct dri_context *ctx, diff --git a/src/gallium/frontends/dri/dri_screen.c b/src/gallium/frontends/dri/dri_screen.c index cb404872f3e..54b657e0c2c 100644 --- a/src/gallium/frontends/dri/dri_screen.c +++ b/src/gallium/frontends/dri/dri_screen.c @@ -647,7 +647,6 @@ dri_init_screen(struct dri_screen *screen, if (pscreen->get_param(pscreen, PIPE_CAP_DEVICE_PROTECTED_CONTEXT)) screen->has_protected_context = true; screen->has_reset_status_query = pscreen->get_param(pscreen, PIPE_CAP_DEVICE_RESET_STATUS_QUERY); - screen->has_modifiers = pscreen->query_dmabuf_modifiers != NULL; #ifdef HAVE_LIBDRM diff --git a/src/gallium/frontends/dri/dri_screen.h b/src/gallium/frontends/dri/dri_screen.h index 74a1c626322..9b6b7d8217b 100644 --- a/src/gallium/frontends/dri/dri_screen.h +++ b/src/gallium/frontends/dri/dri_screen.h @@ -129,7 +129,6 @@ struct dri_screen /* kopper */ struct pipe_screen *unwrapped_screen; bool has_dmabuf; - bool has_modifiers; bool is_sw; struct dri_drawable *(*create_drawable)(struct dri_screen *screen, diff --git a/src/gallium/frontends/dri/kopper.c b/src/gallium/frontends/dri/kopper.c index 332ad766a6d..d4fa3ba66f2 100644 --- a/src/gallium/frontends/dri/kopper.c +++ b/src/gallium/frontends/dri/kopper.c @@ -158,7 +158,7 @@ kopper_get_pixmap_buffer(struct dri_drawable *drawable, struct dri_screen *screen = drawable->screen; drawable->image = loader_dri3_get_pixmap_buffer(conn, pixmap, opaque_dri_screen(screen), - fourcc, drawable->has_modifiers, &width, &height, drawable); + fourcc, drawable->screen->dmabuf_import, &width, &height, drawable); if (!drawable->image) return NULL; @@ -620,8 +620,6 @@ kopperCreateNewDrawable(__DRIscreen *psp, struct dri_screen *screen = dri_screen(psp); struct dri_drawable *drawable = screen->create_drawable(screen, &config->modes, info->is_pixmap, data); - if (drawable) - drawable->has_modifiers = screen->has_modifiers && info->multiplanes_available; return opaque_dri_drawable(drawable); }