[Mesa-dev] [PATCH] i965: Only update renderbuffers on initial intelMakeCurrent

Matt Turner mattst88 at gmail.com
Fri Jan 17 17:49:38 PST 2014


On Fri, Jan 17, 2014 at 5:21 PM, Kristian Høgsberg <krh at bitplanet.net> wrote:
> We call intel_prepare_render() in intelMakeCurrent() to make sure we have
> renderbuffers before calling _mesa_make_current().  The only reason we
> do this is so that we can have valid defaults for width and height.
> If we already have buffers for the drawable we're making current, we
> don't need to do this.
>
> In itself, this is a small optimization, but it also avoids a round trip
> that could block on the display server in a unexpected place.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=72540
> https://bugs.freedesktop.org/show_bug.cgi?id=72612
>
> Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>
> Review-by: Chad Versace <chad.versace at linux.intel.com>

Reviewed. :)


More information about the mesa-dev mailing list