[Mesa-dev] [PATCH 00/12] Computing GL versions without gl_context

Emil Velikov emil.l.velikov at gmail.com
Sun Aug 3 09:44:46 PDT 2014


On 03/08/14 16:18, Marek Olšák wrote:
> Hi everyone,
> 
> GLX_MESA_query_renderer can return supported GL versions before any context is created, but Gallium drivers and st/dri have not way to know which versions are supported, because the version computations take place in st/mesa at context creation.
> 
> This patch series adjusts mesa/main, st/mesa, and st/dri to make computing all GL versions without a context possible. With this series, all supported GL versions (core, compatibility, ES1, ES2) are computed at DRIscreen (and pipe_screen) creation, which brings us closer to adding support for GLX_MESA_query_renderer.
> 
> Please review.
> 
Great work Marek,

A ages ago when I initially looked at this I was thinking of extending (some
of) the extension/limits to be a API_OPENGL_LAST+1 sized array(s). This way we
don't need to do the {mesa,st}_init_{constants,extensions} dance four times.
The idea was to avoid making our glMakeCurrent even slower than it actually
is. Perhaps you shuffled things around and this is no longer relevant ?

While there I was planning on deflating the size of gl_context (~150K) my
moving gl_constants (~1K) and gl_extensions (~0.2K) to DRIScreen, and storing
just a pointers in gl_context. This way we can avoid having yet another copy
of the constants (another ~0.2K) into glsl :) Yet I feel that all that is
slightly orthogonal to the original topic.

I will dust off the rest of the GLX_MESA_query_renderer patches against your work.

Emil

> Marek
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 



More information about the mesa-dev mailing list