[cairo] Reducing GL context switches

Henry (Yu) Song - SISA hsong at sisa.samsung.com
Mon Aug 6 11:36:39 PDT 2012


Hi, Martin

With our GPU-proxy/thread/process, I hope we can eliminate that code, but for now, it should be there to reduce context switch.

Thanks

Henry
________________________________________
From: cairo-bounces+hsong=sisa.samsung.com at cairographics.org [cairo-bounces+hsong=sisa.samsung.com at cairographics.org] on behalf of Martin Robinson [mrobinson at igalia.com]
Sent: Monday, August 06, 2012 9:52 AM
To: cairo at cairographics.org
Subject: Re: [cairo] Reducing GL context switches

On 03/07/2012 09:47 PM, Martin Robinson wrote:
>> https://github.com/mrobinson/cairo/tree/reduce-context-switches

> I've updated this branch (needs to be re-pulled completely) with some
> bug fixes and collapsing cairo_glx_device_set_thread_aware and
> cairo_egl_device_set_thread_aware, into simply
> cairo_gl_device_set_thread_aware.

I've updated one of my patches in the branch with the following change:
The commit "gl: Intelligently release the context" no longer makes the
previous GL context current when releasing a GL device. Instead, if the
previous GL context was the same as the one controlled by the GL device,
releasing will not call glXMakeCurrent/eglMakeCurrent.

I haven't heard any objections to these patches for months, so I plan on
committing them, if no one objects to the new branch.

--Martin
--
cairo mailing list
cairo at cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo


More information about the cairo mailing list