xserver-multidpi/hw/xquartz/GL
Adam Jackson 392da389d7 glx: Fix computation of GLX_X_RENDERABLE fbconfig attribute
>From the GLX spec:

    "GLX_X_RENDERABLE is a boolean indicating whether X can be used to
    render into a drawable created with the GLXFBConfig. This attribute
    is True if the GLXFBConfig supports GLX windows and/or pixmaps."

Every backend was setting this to true unconditionally, and then the
core ignored that value and sent true unconditionally on its own. This
is broken for ARB_fbconfig_float and EXT_fbconfig_packed_float, which
only apply to pbuffers, which are not renderable from non-GLX APIs.

Instead compute GLX_X_RENDERABLE from the supported drawable types. The
dri backends were getting _that_ wrong too, so fix that as well.

This is not a functional change, as there are no mesa drivers that claim
to support __DRI_ATTRIB_{UNSIGNED_,}FLOAT_BIT yet.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2016-09-06 10:29:14 -04:00
..
capabilities.c XQuartz: Ensure <dix-config.h> is included in capabilities.c 2013-02-14 09:20:46 -08:00
capabilities.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
glcontextmodes.c glx: Fix computation of GLX_X_RENDERABLE fbconfig attribute 2016-09-06 10:29:14 -04:00
glcontextmodes.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
indirect.c glx: Compute the GLX extension string from __glXScreenInit 2016-03-30 11:13:57 -04:00
Makefile.am XQuartz GL: Add $(GL_CFLAGS) to CFLAGS 2010-12-08 22:58:12 -08:00
visualConfigs.c glx: Fix computation of GLX_X_RENDERABLE fbconfig attribute 2016-09-06 10:29:14 -04:00
visualConfigs.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00