[PATCH xserver 2/2] glamor: Hide new DRI for behind Option "Debug" "dmabuf_capable"

Adam Jackson ajax at nwnk.net
Wed Mar 28 17:40:55 UTC 2018


On Wed, 2018-03-28 at 12:46 -0400, Adam Jackson wrote:

> @@ -960,7 +961,8 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd)
>                                  "EGL_EXT_image_dma_buf_import") &&
>          epoxy_has_egl_extension(glamor_egl->display,
>                                  "EGL_EXT_image_dma_buf_import_modifiers"))
> -        glamor_egl->dmabuf_capable = TRUE;
> +        glamor_egl->dmabuf_capable = !!strstr(xf86Info.debug,
> +                                              "dmabuf_capable");
>  #endif

Obviously this should check if xf86Info.debug is non-null first, and
probably there should be better API than this.

- ajax


More information about the xorg-devel mailing list