Re: [PATCH 0/2] Introduce Glamor to UXA framework.

Chris Wilson
2011-11-17T10:57:38Z

On Thu, 17 Nov 2011 18:49:49 +0800, "Zhigang Gong" <zhigang.gong@linux.intel.com> wrote:
> > -----Original Message-----
> > From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
> > Sent: Thursday, November 17, 2011 5:20 PM
> > To: Zhigang Gong; intel-gfx@lists.freedesktop.org
> > Subject: RE: [PATCH 0/2] Introduce Glamor to UXA framework.
> >
> > On Thu, 17 Nov 2011 10:55:39 +0800, "Zhigang Gong"
> > <zhigang.gong@linux.intel.com> wrote:
> > > Now glamor was extracted from the xorg and be a separate library.
> > > Please checkout glamor at :
> > git://people.freedesktop.org/~gongzg/glamor.
> > > This library implements two modules glamor and glamor_egl which are
> > > required for intel video driver to enable glamor.
> >
> > Hmm, I did install the glamor library. A
> /usr/lib/xorg/modules/libglamor.so
> > is installed but the ddx is looking for a "glamor_egl" module.
> >
> > Ah, looks to be due to the
> > checking for EGL... no
> > checking for EGL... yes
> > in glamor. How very confusing. ;-)
> I think I know the reason, there is a typo error in glamor's configure.ac
> which doesn't
> Check the required packages correctly. Please pull the latest glamor master.
> One of the
> two above checks should be checking for GBM. I guess your mesa hasn't been
> built with
> gbm enabled. Then glamor will not build glamor_egl which depends on that.

It was actually mesa insisting on only building egl_platform=drm and the
pre-requisite egl_dri2 if and only if libxcb-dri2 was installed. Seems a
bit strange for something that is supposed to be used on an X-less
system.

> Another thing need to pay attention is that when you build xserver, you need
> to disable
> glx.

Rebuild the xserver... Oh well, that rules out testing by simply replacing
distro drivers. I'm having a lot of fun with building glamor as it is
missing or including headers in the wrong order and deciding that XID is
8 bytes when the server was compiled with a 4 byte XID. Fun. And the
usual problems with incomplete framebuffers, but hopefully that is just
the glx confusion.
-Chris

--
Chris Wilson, Intel Open Source Technology Centre