Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to learn OpenGL and most tutorials on the internet only offer guidelines for OpenGL 3.0 and higher. So I looked for my OpenGL version and

glxinfo | grep OpenGL

yields this:

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
OpenGL version string: 2.1 Mesa 10.0.4
OpenGL shading language version string: 1.20

So I went to the offical site for these drivers: https://01.org/linuxgraphics/

I installed the latest version but it still says the same. I know my hardware is capable of doing some DirectX11 rendering so why wouldn't it support OpenGL3.0?

Oh, I forgot: I'm using Fedora 20 64bit

share|improve this question

1 Answer 1

Rather then compiling these directly from source I'd be inclined to download the source RPMs, modify the configuration switch within the RPM .spec file and rebuild them. This would appear to be the only thing missing from the Fedora packages, see here: Why Fedora do not ship OpenGL 3.0? (even disable it for Intel HW).

excerpt from: [Mesa-users] Advertised OpenGL version on IvyBridge

On Sun, 2013-02-17 at 00:48 -0600, Michael Cronenworth wrote:

I heard on Phoronix that IvyBridge/SandyBridge hardware is supposed to have OpenGL 3.0/3.1 support on Mesa 9.0 and 9.1. However, glxinfo is telling me something different.

CPU: Core i3-3225 (HD4000) Distro: Fedora 18 x86_64 OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop OpenGL version string: 2.1 Mesa 9.0.1 OpenGL shading language version string: 1.30

Is this accurate or is Phoronix mistaken?

HD4000 does indeed support OpenGL 3.1. However because of US patent implications Fedora builds Mesa without --enable-texture-float configure option and this disables OpenGL 3.0/3.1. I'm not a lawyer but AFAIK since it is not world-wide patent it is safe to use --enable-texture-float if you are outside US, and some Linux distros like Ubuntu do so by default. Rebuilding Mesa from source RPM on Fedora 18 with the named option enables OpenGL 3.1/shading 1.40 on my HD3000.

-- Tomash Brechko

Steps

Here are roughly the steps:

$ yumdownloader --source mesa-libGL
$ rpmdev-setuptree
$ rpm -Uvh mesa-9.2.4-1.20131128.fc19.src.rpm
$ (umask 022; sudo yum-builddep mesa-9.2.4-1.20131128.fc19.src.rpm)
$ (umask 022; sudo yum install gcc-c++)

Then edit the mesa.spec file:

$ vim ~/rpmbuild/SPECS/mesa.spec

Then add the switch to the .spec file:

## add the --enable-texture-float to configure

Now rebuild the package using the .spec file:

$ rpmbuild -ba ~/rpmbuild/SPECS/mesa.spec

You should now see newly built .rpm files in your RPMS directory when all is complete.

References

share|improve this answer
    
Ok - I did everything as you said and installed every .rpm file in the RPMS/x86_64 directory. But it still says OpenGL 2.1 . But I noticed something: in the mesa.spec file was --enable-texture-float already set... –  haansn08 Mar 22 at 15:43
    
@haansn08 - I noticed this as well when I went through it too. –  slm Mar 22 at 18:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.