NV_fill_rectangle Coming To Gallium3D/Nouveau

Written by Michael Larabel in Nouveau on 25 March 2017 at 07:52 AM EDT. 16 Comments
NOUVEAU
Red Hat developer Lyude Paul is working on OpenGL NV_fill_rectangle support for Gallium3D and the Nouveau driver.

Lyude has published a set of six patches for adding GL_NV_fill_rectangle support to Gallium3D and wires it up in the Nouveau NVC0 driver for GM200+ hardware.

As explained by the OpenGL registry, "This extension adds a new PolygonMode setting where a triangle is rasterized by computing and filling its axis-aligned screen-space bounding box, disregarding the actual triangle edges. This can be useful for drawing a rectangle without being split into two triangles with an internal edge. It is also useful to minimize the number of primitives that need to be drawn, particularly for a user-interface."

NV_fill_rectangle isn't currently part of any released version of the OpenGL specification. Interesting to see Red Hat working on this vendor extension as I am not familiar with any big open-source user of this extension, but appears to be in use by some games.

The NV_fill_rectangle patches for Gallium/Nouveau can be found on Mesa-dev.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,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 OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week