[cairo] [PATCH] [gl] Add shader support code for GL versions < 3.0.

Eric Anholt eric at anholt.net
Thu Feb 4 07:38:13 PST 2010

On Thu, 14 Jan 2010 11:49:04 -0600, Zach Laine <whatwasthataddress at gmail.com> wrote:
> On Wed, Jan 13, 2010 at 6:08 PM, Eric Anholt <eric at anholt.net> wrote:
> > Ultimately, we want all of our paths to use shaders when they are
> > exposed -- it brings us closer to GL 3.0 compatibility and it should
> > reduce the work that GL drivers have to do per operation to compute
> > the required hardware state.
> [snip]
> I had just finished working on this before I saw Eric's patch above,
> so there are conflicts with it.  If people like it in principle, I can
> easily modify Eric's patch to work with it.
> =============
> Adds cairo_gl_shader_program_t, and functions to manipulate same.  Multiple GL
> entry points for shaders are provided -- one for the pre-GL 2.0 extenstions
> entry points, and one for GL 2.0.  This code is well tested, but currently
> unused in the GL backend.

OK, I've pulled this in plus some of your linear gradients code, tweaked
it a bit, and got it basically passing the testsuite (gradient-alpha is
weird).  firefox-talos-svg times are cut in half.  \o/

I've also pushed a personal repo branch called gl-radial, which does the
other chunk of acceleration but results in a bunch of regressions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20100204/1a9b778b/attachment.pgp 

More information about the cairo mailing list