[Intel-gfx] [PATCH 0/2] Introduce Glamor to UXA framework.

Zhigang Gong zhigang.gong at linux.intel.com
Thu Nov 17 12:33:24 CET 2011



> -----Original Message-----
> From: Chris Wilson [mailto:chris at chris-wilson.co.uk]
> Sent: Thursday, November 17, 2011 6:57 PM
> To: Zhigang Gong; intel-gfx at lists.freedesktop.org
> Subject: RE: [PATCH 0/2] Introduce Glamor to UXA framework.
> 
> On Thu, 17 Nov 2011 18:49:49 +0800, "Zhigang Gong"
> <zhigang.gong at linux.intel.com> wrote:
> > > -----Original Message-----
> > > From: Chris Wilson [mailto:chris at chris-wilson.co.uk]
> > > Sent: Thursday, November 17, 2011 5:20 PM
> > > To: Zhigang Gong; intel-gfx at 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 at 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.

One of the todo items is to fully support glx including direct and indirect
. 
The major problem is that Xserver's glx code has the same glapi symbols 
which conflicts with standard mesa's glapi's implementations. It's easy to
rename the xserver side glapi's symbol to other names to avoid this
conflicts, 
but that will break indirect GLX in xserver side. I still don't have a
perfect 
solution to solve this problem. Do you or anyone in this list have any
suggestion
 to solve this confliction?

> 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. 
Will discuss these problem with you through IRC. 
> And the
> usual problems with incomplete framebuffers, but hopefully that is just
the
> glx confusion.
That must be caused by glapi symbol confliction.

Thanks.

- Zhigang

> -Chris
> 
> --
> Chris Wilson, Intel Open Source Technology Centre




More information about the Intel-gfx mailing list