[Mesa-dev] [PATCH] glx: Do not advertise buffer_age on dri2
Ian Romanick
idr at freedesktop.org
Wed Apr 2 12:35:58 PDT 2014
On 03/30/2014 02:36 PM, Adel Gadllah wrote:
> Previously GLX_EXT_buffer_age has always been advertised as supported because
> both client_glx_support and client_glx_only where set. So it did not matter
> that direct_support is only set when running dri3 and we ended up always
> advertising it.
>
> Fix that by not setting client_glx_only for buffer_age in known_glx_extensions.
I believe this is correct. And it should still be advertised on DRI3
because the extension is marked direct_only.
> Signed-off-by: Adel Gadllah <adel.gadllah at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> src/glx/glxextensions.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/glx/glxextensions.c b/src/glx/glxextensions.c
> index ac1b4a7..ce5d66d 100644
> --- a/src/glx/glxextensions.c
> +++ b/src/glx/glxextensions.c
> @@ -103,7 +103,7 @@ static const struct extension_info known_glx_extensions[] = {
> { GLX(SGIX_visual_select_group), VER(0,0), Y, Y, N, N },
> { GLX(EXT_texture_from_pixmap), VER(0,0), Y, N, N, N },
> { GLX(INTEL_swap_event), VER(0,0), Y, N, N, N },
> - { GLX(EXT_buffer_age), VER(0,0), Y, N, Y, Y },
> + { GLX(EXT_buffer_age), VER(0,0), Y, N, N, Y },
> { NULL }
> };
>
>
More information about the mesa-dev
mailing list