[PATCH 2/3] winex11.drv: remove workaround for ancient ATI drivers
Emil Velikov
emil.l.velikov at gmail.com
Sun Oct 10 15:06:18 CDT 2021
Remove the UseFastTls workaround. It was added in 2007 and should no
longer be required.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
dlls/winex11.drv/opengl.c | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 6741daa42fb..ea2912837d2 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -439,24 +439,9 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
attr.border_pixel = 0;
vis = pglXChooseVisual(gdi_display, screen, attribList);
- if (vis) {
-#ifdef __i386__
- WORD old_fs, new_fs;
- __asm__( "mov %%fs,%0" : "=r" (old_fs) );
- /* Create a GLX Context. Without one we can't query GL information */
+ if (vis)
ctx = pglXCreateContext(gdi_display, vis, None, GL_TRUE);
- __asm__( "mov %%fs,%0" : "=r" (new_fs) );
- __asm__( "mov %0,%%fs" :: "r" (old_fs) );
- if (old_fs != new_fs)
- {
- ERR( "%%fs register corrupted, probably broken ATI driver, disabling OpenGL.\n" );
- ERR( "You need to set the \"UseFastTls\" option to \"2\" in your X config file.\n" );
- goto done;
- }
-#else
- ctx = pglXCreateContext(gdi_display, vis, None, GL_TRUE);
-#endif
- }
+
if (!ctx) goto done;
root = RootWindow( gdi_display, vis->screen );
--
2.33.0
More information about the wine-devel
mailing list