summaryrefslogtreecommitdiff
path: root/glx/extension_string.h
diff options
context:
space:
mode:
authorTomasz Lis <tomasz.lis@intel.com>2013-03-11 10:21:28 +0100
committerKeith Packard <keithp@keithp.com>2013-03-18 10:02:00 -0700
commitcf89aa53748b964f9d9eceaa12a7d6f1a076d1ee (patch)
tree46c8e4ba7b451f64d96c3a9633178c297a029214 /glx/extension_string.h
parent679ccecd8bc6d797e99f3b707f8041b727ca7a49 (diff)
Full support of sRGB capable fbconfigs.
Changes to correctly initialize the sRGB capability attribute and transfer it between XServer and the client. Modifications include extension string, transferring visual config attribs and fbconfig attribs. Also, attribute is initialized in the modules which do not really use it (xquartz and xwin). This version advertises both ARB and EXT strings, and initializes the capability to default value of FALSE. It has corrected required GLX version and does not influence swrast. The sRGB capable attribute is attached only to those configs which do have this capability. Both ARB and EXT versions share the same GLX extension enabling bit. Signed-off-by: Tomasz Lis <tomasz.lis@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glx/extension_string.h')
-rw-r--r--glx/extension_string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/glx/extension_string.h b/glx/extension_string.h
index 7a4a8b1c2..81b7de372 100644
--- a/glx/extension_string.h
+++ b/glx/extension_string.h
@@ -39,6 +39,7 @@ enum {
ARB_create_context_bit = 0,
ARB_create_context_profile_bit,
ARB_create_context_robustness_bit,
+ ARB_framebuffer_sRGB_bit,
ARB_multisample_bit,
EXT_create_context_es2_profile_bit,
EXT_import_context_bit,
@@ -58,6 +59,10 @@ enum {
__NUM_GLX_EXTS,
};
+/* For extensions which have identical ARB and EXT implementation
+ * in GLX area, use one enabling bit for both. */
+#define EXT_framebuffer_sRGB_bit ARB_framebuffer_sRGB_bit
+
#define __GLX_EXT_BYTES ((__NUM_GLX_EXTS + 7) / 8)
extern int __glXGetExtensionString(const unsigned char *enable_bits,