Major OpenGL 4.1 Feature Almost Ready For Mesa
Written by Michael Larabel in Mesa on 18 January 2014 at 03:20 AM EST. 11 Comments
Ian Romanick is planning to land a new OpenGL 4.1 extension in Mesa in the days ahead.

The extension that Ian Romanick of Intel has been working on is for the OpenGL GL_ARB_viewport_array extension, which is a means of exposing multiple viewports. As explained in this GL 4.1 tutorial, "GL_ARB_viewport_array provides a mechanism to expose multiple viewports, each specified as a rectangle. The destination viewport may be selected per-primitive by the geometry shader. This allows the Geometry Shader to produce different versions of primitives destined for separate viewport rectangles on the same surface. Additionally, when combined with multiple framebuffer attachments, it allows a different viewport rectangle to be selected for each. This extension also exposes a separate scissor rectangle for each viewport. Finally, the viewport bounds are now floating point quantities allowing fractional pixel offsets to be applied during the viewport transform."

The GL_ARB_viewport_array extension is documented in full at

Ian sent out the initial viewport_array patches one week ago but now with the second revision he believes the Mesa code is in good shape and hopes to land the code in mainline Mesa by early next week. The set of 37 patches can be found on the Mesa-dev list and provides support for this OpenGL extension to core Mesa and is then hooked up by the i965 Mesa DRI driver. This extension for the Intel driver only works with Intel Ivy Bridge "Gen7" graphics and newer when using an OpenGL core context profile due to its dependence on OpenGL Geometry Shaders.

About The Author
Author picture

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter or contacted via

Related Mesa News
Popular News
Trending Reviews & Featured Articles