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

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/

Leave a Comment