[cairo] PATCH: GL: Create glyph mask surface only once per context, enlarge on demand

Mikko Strandborg Mikko.Strandborg at symbio.com
Fri Feb 15 06:15:41 PST 2013


Hi,

I'm not quite sure what you mean. Is the mask currently allocated and
released every draw call in order to work around a driver bug? Generally,
allocating new textures (or other GPU resources) every frame is considered
ineffective.

--Mikko

On 2/15/13 3:57 PM, "Chris Wilson" <chris at chris-wilson.co.uk> wrote:

>On Fri, Feb 15, 2013 at 01:38:43PM +0000, Mikko Strandborg wrote:
>> Hello,
>> 
>> In text rendering, when the rendering happens via a mask, the GL surface
>> allocates and releases a temporary mask surface for each text rendering
>> operation. This is very slow. The attached patch stores the mask
>>surface to GL
>> context. It is created lazily on first rendering, and enlarged on
>>demand. This
>> makes text rendering some 250% faster in some cases.
>
>By working around bugs in the drivers...
>-Chris
>
>-- 
>Chris Wilson, Intel Open Source Technology Centre



More information about the cairo mailing list