glx: Enable GLX_SGI_make_current_read in the core
GLX 1.3 implies equivalent functionality, so this is safe to enable unconditionally, and bindContext always takes both drawable and readable arguments in any case. Mesa stopped exporting the __DRI_READ_DRAWABLE extension in 8.0 (when the DRI1 drivers were removed) so this will restore the extension string. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
9b2fc6d986
commit
15af78fc56
|
@ -92,7 +92,7 @@ static const struct extension_info known_glx_extensions[] = {
|
||||||
|
|
||||||
{ GLX(MESA_copy_sub_buffer), VER(0,0), N, },
|
{ GLX(MESA_copy_sub_buffer), VER(0,0), N, },
|
||||||
{ GLX(OML_swap_method), VER(0,0), Y, },
|
{ GLX(OML_swap_method), VER(0,0), Y, },
|
||||||
{ GLX(SGI_make_current_read), VER(1,3), N, },
|
{ GLX(SGI_make_current_read), VER(1,3), Y, },
|
||||||
{ GLX(SGI_swap_control), VER(0,0), N, },
|
{ GLX(SGI_swap_control), VER(0,0), N, },
|
||||||
{ GLX(SGIS_multisample), VER(0,0), Y, },
|
{ GLX(SGIS_multisample), VER(0,0), Y, },
|
||||||
{ GLX(SGIX_fbconfig), VER(1,3), Y, },
|
{ GLX(SGIX_fbconfig), VER(1,3), Y, },
|
||||||
|
|
|
@ -900,13 +900,6 @@ initializeExtensions(__GLXDRIscreen * screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; extensions[i]; i++) {
|
for (i = 0; extensions[i]; i++) {
|
||||||
if (strcmp(extensions[i]->name, __DRI_READ_DRAWABLE) == 0) {
|
|
||||||
__glXEnableExtension(screen->glx_enable_bits,
|
|
||||||
"GLX_SGI_make_current_read");
|
|
||||||
|
|
||||||
LogMessage(X_INFO, "AIGLX: enabled GLX_SGI_make_current_read\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0) {
|
if (strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0) {
|
||||||
screen->texBuffer = (const __DRItexBufferExtension *) extensions[i];
|
screen->texBuffer = (const __DRItexBufferExtension *) extensions[i];
|
||||||
__glXEnableExtension(screen->glx_enable_bits,
|
__glXEnableExtension(screen->glx_enable_bits,
|
||||||
|
|
|
@ -414,7 +414,6 @@ initializeExtensions(__GLXDRIscreen * screen)
|
||||||
__glXEnableExtension(screen->glx_enable_bits, "GLX_EXT_framebuffer_sRGB");
|
__glXEnableExtension(screen->glx_enable_bits, "GLX_EXT_framebuffer_sRGB");
|
||||||
__glXEnableExtension(screen->glx_enable_bits, "GLX_ARB_fbconfig_float");
|
__glXEnableExtension(screen->glx_enable_bits, "GLX_ARB_fbconfig_float");
|
||||||
__glXEnableExtension(screen->glx_enable_bits, "GLX_EXT_fbconfig_packed_float");
|
__glXEnableExtension(screen->glx_enable_bits, "GLX_EXT_fbconfig_packed_float");
|
||||||
__glXEnableExtension(screen->glx_enable_bits, "GLX_SGI_make_current_read");
|
|
||||||
|
|
||||||
extensions = screen->core->getExtensions(screen->driScreen);
|
extensions = screen->core->getExtensions(screen->driScreen);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue