OpenGL & GLSL 3.3 on an HD Graphics 4000 under Ubuntu 12.04

muxisar picture muxisar · Jan 2, 2013 · Viewed 29.5k times · Source

I'm running that configuration :

  • Ubuntu 12.04
  • Intel HD Graphics 4000

glxinfo give me that parameters:

OpenGL renderer string: Mesa X11
OpenGL version string: 2.1 Mesa 8.0.4
OpenGL shading language version string: 1.20
OpenGL extensions:

My goal was to run OpenGL 3.3 (and so GLSL 3.3). If I'm easy with development issues, I'm lost in hardware and drivers, so does someone knows a way to achieve that with my configuration?

Answer

Ben DeMott picture Ben DeMott · Dec 15, 2013

Great News!!!

Mesa 10 is out which means support for Opengl 3.3 and GLSL 3.3!

This is tested on my 4th Generation Core i5 Mobile Processor with an HD 4400 Graphics chipset.

Modern OpenGL development is now possible on integrated intel chipsets in linux! this is a huge step forward. Note that ubuntu 15.04 ship with Mesa 10.5

Here's me rendering a triangle using a GLSL 3.3 Shader :)

glsl 3.3 shader

Ok so in order to get the experimental drivers to make this work on Ubuntu 13.10 you're going to need to do a few things:

# Note this will take awhile!
1.) Add the PPA Repository
  $ sudo add-apt-repository ppa:oibaf/graphics-drivers
2.) Update sources
  $ sudo apt-get update
3.) Dist-upgrade (rebuilds many packages)
  $ sudo apt-get dist-upgrade
4.) Reboot!

In your code make sure you request a Opengl 3.3 context!

Run this command glxinfo | grep OpenGL you should get something like...

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.0-devel (git-f9cfe5c     saucy-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

Source Articles

http://www.phoronix.com/scan.php?page=news_item&px=MTQ5OTk

https://launchpad.net/~oibaf/+archive/graphics-drivers/