diff options
author | Daniel Czarnowski <daniel.czarnowski@intel.com> | 2013-10-21 19:48:38 +0200 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-10-24 11:48:04 -0700 |
commit | c671e935e7c44d4711ba9588ee96cb9796b879e6 (patch) | |
tree | c09a0bb9c8a56d4c55961c9505d0b558c3725fb9 /glx/glxdri2.c | |
parent | ccc8bb1153ec669f7540a174a81a8ec0e0d6dd67 (diff) |
glx: Enable GLX_ARB_fbconfig_float for DRI2 drivers
v2 (idr): Maintain sort order of extension list. Fixed rebase error
(comment header for initializeExtensions was in front of
__glXDRIinvalidateBuffers). Re-write commit message.
Signed-off-by: Daniel Czarnowski <daniel.czarnowski@intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r-- | glx/glxdri2.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index f662b2188..843f603ea 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -845,6 +845,11 @@ glxDRILeaveVT(ScrnInfoPtr scrn) scrn->LeaveVT = glxDRILeaveVT; } +/** + * Initialize extension flags in glx_enable_bits when a new screen is created + * + * @param screen The screen where glx_enable_bits are to be set. + */ static void initializeExtensions(__GLXDRIscreen * screen) { @@ -889,6 +894,12 @@ initializeExtensions(__GLXDRIscreen * screen) LogMessage(X_INFO, "AIGLX: enabled GLX_EXT_framebuffer_sRGB\n"); } + /* enable ARB_fbconfig_float extension (even if there are no float fbconfigs) */ + { + __glXEnableExtension(screen->glx_enable_bits, "GLX_ARB_fbconfig_float"); + LogMessage(X_INFO, "AIGLX: enabled GLX_ARB_fbconfig_float\n"); + } + for (i = 0; extensions[i]; i++) { #ifdef __DRI_READ_DRAWABLE if (strcmp(extensions[i]->name, __DRI_READ_DRAWABLE) == 0) { |