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
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to