[Mesa-users] Fwd: OpenGL Version in Mesa 9.1 at 2.1

Matthew Eggers eggmatters at gmail.com
Mon Nov 19 15:43:22 PST 2012


Slavko,

 I'm running a sandy bridge but it does appear to be driven by the i915:

00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge
Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
    Subsystem: Dell Device 04da
. . .
    Kernel driver in use: i915


My kernel is, specifically, 3.2.0-0.bpo.3-amd64 which is a backported
Debian kernel. Sounds like I would need to update.

I too am running xf86-video-intel-2.20.13. At least that's what the git log
says.

Also note, I've installed all of this to my home directory and run ldconfig
to use those libraries. Question, how did you determine your xf86-video
version?

Thanks for the input!


On Mon, Nov 19, 2012 at 2:40 PM, Slavko Glamocanin <slavko at naprave.net>wrote:

> Matthew, i'm running ivy bridge using the i915 driver.
>
> 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd
> Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA
> controller])
>         Kernel driver in use: i915
>
> lspci -v will probaby show i915 in your case.
>
> I run a 3.5.7 kernel with xf86-video-intel-2.20.13, mesa 9.0 and i get
> this with glxinfo:
> OpenGL vendor string: Intel Open Source Technology Center
> OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop
> OpenGL version string: 3.0 Mesa 9.0
> OpenGL shading language version string: 1.30
>
> OpenGL 3.0 is a nice improvement, try upgrading the intel driver?
>
> BR,
> Slavko
>
> On Mon, Nov 19, 2012 at 11:06 PM, Matthew Eggers <eggmatters at gmail.com>wrote:
>
>> Running LIBL_DEBUG=verbose glxinfo
>> showed that there were errors attempting to run the i965 driver. Namely:
>> undefined symbol: drmPrimeHandleToFD
>>
>> Looking at the source, all of the references in the libdrm_intel build
>> referenced only the i915 driver. In looking at my xorg.conf file, it was
>> referencing the "intel" driver. Changing that to "intel i965" made the
>> errors go away and loaded a Gallium driver for OpenGL But, as you can see:
>>
>> OpenGL vendor string: VMware, Inc.
>> OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 2.6, 128 bits)
>>
>> OpenGL version string: 2.1 Mesa 9.1-devel (git-037b4f8)
>> OpenGL shading language version string: 1.20
>>
>> I'm still stuck at 2.1 and the GLSL of 1.2. Now, based on Philip's link,
>> the i965 driver is certainly supported in versions above this. I just
>> pulled the drm from a build today and re-compiled. Still to no avail.
>>
>> On Mon, Nov 19, 2012 at 1:14 PM, Matthew Eggers <eggmatters at gmail.com>wrote:
>>
>>> Sorry, It looks like I pasted some erroneous data. The libdrm-intel
>>> library seems to be the one lacking:
>>>
>>> *libtool: install: /usr/bin/install -c .libs/libdrm_intel.so.1.0.0T
>>> /home/matthewe/build/lib/libdrm_intel.so.1.0.0
>>> libtool: install: (cd /home/matthewe/build/lib && { ln -s -f
>>> libdrm_intel.so.1.0.0 libdrm_intel.so.1 || { rm -f libdrm_intel.so.1 && ln
>>> -s libdrm_intel.so.1.0.0 libdrm_intel.so.1; }; })
>>> libtool: install: (cd /home/matthewe/build/lib && { ln -s -f
>>> libdrm_intel.so.1.0.0 libdrm_intel.so || { rm -f libdrm_intel.so && ln -s
>>> libdrm_intel.so.1.0.0 libdrm_intel.so; }; })
>>> libtool: install: /usr/bin/install -c .libs/libdrm_intel.lai
>>> /home/matthewe/build/lib/libdrm_intel.la
>>>
>>> libtool: finish:
>>> PATH="/home/matthewe/build/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/matthewe/build/bin:/home/matthewe/build/bin:/sbin"
>>>
>>> *I pulled the latest changes, and I can see that they symbols file was
>>> updated to include the missing piece but for some reason, the repo has this
>>> at a fixed state. I'll look into the source and see what might be going on.
>>> Although, I haven't seen driver source since college so . . . I'm not going
>>> to be much use there.
>>>
>>> Thanks for pointing me in this direction though.
>>>
>>>
>>> On Mon, Nov 19, 2012 at 11:18 AM, Matthew Eggers <eggmatters at gmail.com>wrote:
>>>
>>>> Interestingly enough, I did recompile with no errors and it looks like
>>>> the libdrm built *was *2.4:
>>>>
>>>> test -z "/home/matthewe/build/lib" || /bin/mkdir -p
>>>> "/home/matthewe/build/lib"
>>>>  /bin/bash ./libtool   --mode=install /usr/bin/install -c   libdrm.la'/home/matthewe/build/lib'
>>>> libtool: install: /usr/bin/install -c .libs/libdrm.so.2.4.0
>>>> /home/matthewe/build/lib/libdrm.so.2.4.0
>>>> libtool: install: (cd /home/matthewe/build/lib && { ln -s -f
>>>> libdrm.so.2.4.0 libdrm.so.2 || { rm -f libdrm.so.2 && ln -s libdrm.so.2.4.0
>>>> libdrm.so.2; }; })
>>>> libtool: install: (cd /home/matthewe/build/lib && { ln -s -f
>>>> libdrm.so.2.4.0 libdrm.so || { rm -f libdrm.so && ln -s libdrm.so.2.4.0
>>>> libdrm.so; }; })
>>>> libtool: install: /usr/bin/install -c .libs/libdrm.lai
>>>> /home/matthewe/build/lib/libdrm.la
>>>> libtool: finish:
>>>> PATH="/home/matthewe/build/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/matthewe/build/bin:/home/matthewe/build/bin:/sbin"
>>>> ldconfig -n /home/matthewe/build/lib
>>>> ----------------------------------------------------------------------
>>>> Libraries have been installed in:
>>>>    /home/matthewe/build/lib
>>>>
>>>> Yet the libdrm_intel compiled to version 1.0:
>>>>
>>>> test -z "/home/matthewe/build/lib" || /bin/mkdir -p
>>>> "/home/matthewe/build/lib"
>>>>  /bin/bash ./libtool   --mode=install /usr/bin/install -c   libdrm.la'/home/matthewe/build/lib'
>>>> libtool: install: /usr/bin/install -c .libs/libdrm.so.2.4.0
>>>> /home/matthewe/build/lib/libdrm.so.2.4.0
>>>> libtool: install: (cd /home/matthewe/build/lib && { ln -s -f
>>>> libdrm.so.2.4.0 libdrm.so.2 || { rm -f libdrm.so.2 && ln -s libdrm.so.2.4.0
>>>> libdrm.so.2; }; })
>>>> libtool: install: (cd /home/matthewe/build/lib && { ln -s -f
>>>> libdrm.so.2.4.0 libdrm.so || { rm -f libdrm.so && ln -s libdrm.so.2.4.0
>>>> libdrm.so; }; })
>>>> libtool: install: /usr/bin/install -c .libs/libdrm.lai
>>>> /home/matthewe/build/lib/libdrm.la
>>>> libtool: finish:
>>>> PATH="/home/matthewe/build/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/matthewe/build/bin:/home/matthewe/build/bin:/sbin"
>>>> ldconfig -n /home/matthewe/build/lib
>>>> ----------------------------------------------------------------------
>>>> Libraries have been installed in:
>>>>    /home/matthewe/build/lib
>>>>
>>>> And the git log for that library's latest release is:
>>>>
>>>> $:~/src/mesa/drm/intel$  [master] git log
>>>> commit e01d68f9f3acfc35fe164283904b5d058c2ab378
>>>> Author: Marek Olšák <maraeo at gmail.com>
>>>> Date:   Tue Nov 6 01:23:53 2012 +0100
>>>>
>>>>
>>>> On Mon, Nov 19, 2012 at 11:00 AM, Benjamin Bellec <b.bellec at gmail.com>wrote:
>>>>
>>>>>  Ok, so check if something is wrong with your compilation.
>>>>>
>>>>> That said, check this too:
>>>>> http://intellinuxgraphics.org/2012.02.html
>>>>>
>>>>> Le 19/11/2012 19:58, Matthew Eggers a écrit :
>>>>>
>>>>> I am using a lib compiled from git. If I understand the source
>>>>> correctly, the repo is mesa/mesa/drm at rev
>>>>> e01d68f9f3acfc35fe164283904b5d058c2ab378. My untouched distro files are
>>>>> also showing the same lib in /usr/src/lib/
>>>>>
>>>>> On Mon, Nov 19, 2012 at 10:52 AM, Benjamin Bellec <b.bellec at gmail.com>wrote:
>>>>>
>>>>>>  This one is not the "true" version.
>>>>>> You are using the libdrm from your distro or a self-compiled from git
>>>>>> ?
>>>>>>
>>>>>> Le 19/11/2012 19:50, Matthew Eggers a écrit :
>>>>>>
>>>>>> It appears to be: libdrm_intel.so.1.0.0
>>>>>>
>>>>>> On Mon, Nov 19, 2012 at 10:49 AM, Benjamin Bellec <b.bellec at gmail.com
>>>>>> > wrote:
>>>>>>
>>>>>>>  Which libdrm version are you using ?
>>>>>>>
>>>>>>> Le 19/11/2012 19:40, Matthew Eggers a écrit :
>>>>>>>
>>>>>>> Thanks to Benjamin's direction, I have uncovered the issue: Running
>>>>>>> glxinfo with debugging turned on yielded:
>>>>>>>
>>>>>>> $ LIBGL_DEBUG=verbose glxinfo
>>>>>>>
>>>>>>> . . .
>>>>>>> libGL: OpenDriver: trying
>>>>>>> /home/matthewe/src/mesa/mesa/lib/tls/i965_dri.so
>>>>>>> libGL: OpenDriver: trying
>>>>>>> /home/matthewe/src/mesa/mesa/lib/i965_dri.so
>>>>>>> libGL error: dlopen /home/matthewe/src/mesa/mesa/lib/i965_dri.so
>>>>>>> failed (/home/matthewe/build/lib/libdrm_intel.so.1: undefined symbol:
>>>>>>> drmPrimeHandleToFD)
>>>>>>> libGL error: unable to load driver: i965_dri.so
>>>>>>> libGL error: driver pointer missing
>>>>>>> libGL: OpenDriver: trying
>>>>>>> /home/matthewe/src/mesa/mesa/lib/tls/swrast_dri.so
>>>>>>> libGL: OpenDriver: trying
>>>>>>> /home/matthewe/src/mesa/mesa/lib/swrast_dri.so
>>>>>>> . . .
>>>>>>>
>>>>>>> I will investigate why drm lib wasn't compiled properly. I can take
>>>>>>> this from here but any additional words of wisdom are highly encouraged. My
>>>>>>> thanks!
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Nov 19, 2012 at 10:27 AM, Matthew Eggers <
>>>>>>> eggmatters at gmail.com> wrote:
>>>>>>>
>>>>>>>> Thank you Benjamin. I was searching in vain for which driver
>>>>>>>> supported this chipset. I'm not sure how the Software Rasterizer limits my
>>>>>>>> OpenGL capabilities but, I guess that's another topic for another time.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Nov 19, 2012 at 9:40 AM, Benjamin Bellec <
>>>>>>>> b.bellec at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I re-read your first mail and you are using the
>>>>>>>>>
>>>>>>>>> Le 19/11/2012 18:37, Matthew Eggers a écrit :
>>>>>>>>> > Software Rasterizer
>>>>>>>>> which is GL2.1 maximum.
>>>>>>>>>
>>>>>>>>> The driver you need is i965.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-users
>>
>>
>
>
> --
> Slavko Glamočanin
> http://naprave.net
> GSM: 0038631847589
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-users/attachments/20121119/febdfb6c/attachment.html>


More information about the mesa-users mailing list