[cairo] [PATCH] gl: Use vertex attributes to store solid color for constant operations

Eric Anholt eric at anholt.net
Fri Mar 22 11:38:41 PDT 2013


Martin Robinson <mrobinson at igalia.com> writes:

> From b23b51e4489131c41c268c7bcd98f9593cd79a83 Mon Sep 17 00:00:00 2001
> From: "Alejandro G. Castro" <alex at igalia.com>
> Date: Thu, 21 Feb 2013 13:01:47 -0800
> Subject: [PATCH] gl: Use vertex attributes to store solid color for constant
>  operations
>
> Add a rendering mode in which constant color information is passed to
> shaders via vertex attributes instead of uniforms. This allows rendering
> low-vertex geometry of different colors without flushing.

It would be really nice to see performance numbers with changes like
these -- I've totally checked out of cairo-gl stuff because nobody seems
to be justifying changes being made.  If you're looking for an easy way
to do the stats,

http://anholt.net/compare-perf/
-------------- 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/20130322/a801b172/attachment.pgp>


More information about the cairo mailing list