Bug 24549 - GLX 1.3 is not supported
Summary: GLX 1.3 is not supported
Status: RESOLVED NOTOURBUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: XOrg git
Hardware: Other Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 04:42 UTC by adres7
Modified: 2009-10-19 07:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg config (1.01 KB, patch)
2009-10-15 09:01 UTC, adres7
no flags Details | Splinter Review
Screen game on wine (205.96 KB, image/jpeg)
2009-10-15 10:18 UTC, adres7
no flags Details
Wine log with parametr -engine 0 (1.67 KB, application/octet-stream)
2009-10-16 09:22 UTC, adres7
no flags Details
Wine log without parametrs (1.85 KB, application/octet-stream)
2009-10-16 09:23 UTC, adres7
no flags Details
WINEDEBUG="+wgl" wine '/home/krzysztof/.wine/dosdevices/c:/Program Files/Tibia1/Tibia.exe' &> trace.log (255.59 KB, text/x-log)
2009-10-16 12:00 UTC, adres7
no flags Details
WINEDEBUG="+wgl" wine '/home/krzysztof/.wine/dosdevices/c:/Program Files/Tibia1/Tibia.exe' engine 0 &> trace1.log (55.19 KB, text/x-log)
2009-10-16 12:04 UTC, adres7
no flags Details
Glxinfo (18.39 KB, application/octet-stream)
2009-10-17 03:05 UTC, adres7
no flags Details

Description adres7 2009-10-15 04:42:44 UTC
ubuntu@ubuntu-desktop:~$ '/home/ubuntu/Tibia'
WARNING: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3 is not supported! This is an application bug!
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request: 136 (XFree86-DRI)
  Minor opcode of failed request: 7 ()
  Resource id in failed request: 0x3400008
  Serial number of failed request: 66
  Current serial number in output stream: 66

Ubuntu 9.10
Radeon 9600 and open drivers.
Comment 1 Alex Deucher 2009-10-15 07:16:10 UTC
Please attach your xorg log and config.  GLX 1.3/1.4 is only available with dri2 which requires kms on radeon.
Comment 2 adres7 2009-10-15 09:01:20 UTC
Created attachment 30452 [details] [review]
Xorg config
Comment 3 adres7 2009-10-15 09:06:57 UTC
You can download this game on: http://download.tibia.com/tibia852.tgz
I upload here all informations: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/452296
Comment 4 Alex Deucher 2009-10-15 09:45:44 UTC
The graphics stack you are using only supports glx 1.2.  The game needs to check what version of GLX is supported before using 1.3 functions.
Comment 5 adres7 2009-10-15 10:16:19 UTC
So how I fix it? On Windows this game works excellent. On wine and screen:

*fixme:mixer:ALSA_MixerInit No master control found on MPU-401 UART, disabling mixer
fixme:reg:GetNativeSystemInfo (0x32fcec) using GetSystemInfo()
fixme:win:EnumDisplayDevicesW ((null),0,0x32f590,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),1,0x32f590,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32e60c,0x00000000), stub!
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:win:EnumDisplayDevicesW ((null),0,0x32e2fc,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32d604,0x00000000), stub!
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(600,450)/(null)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(600,450)/(null)
err:d3d_surface:IWineD3DSurfaceImpl_ModifyLocation 0x1ab9380: Surface does not have any up to date location
err:d3d_surface:IWineD3DSurfaceImpl_ModifyLocation 0x1ab9380: Surface does not *have any up to date location

Requirements this game:
a) Windows:
* Windows 95/98/ME/XP/2000/Vista
* DirectX version 5.0 or later
* 38 MB free space on your hard disk
* A connection to the internet
b) Linux:
# Linux with libc version 6 or later
# X-Window system installed
# Hardware accelerated graphics driver
# 40 MB free hard disk space
# A connection to the interne
Comment 6 adres7 2009-10-15 10:18:42 UTC
Created attachment 30454 [details]
Screen game on wine
Comment 7 Alex Deucher 2009-10-15 10:38:50 UTC
(In reply to comment #5)
> So how I fix it? On Windows this game works excellent. On wine and screen:

Windows doesn't use glx so it's not an issue there.  It's a game bug.  The game needs to check the version of glx supported by the xserver and only use the entry points for that version of glx.

If fixing the game is not an option, then you might try kms, but that involves upgrading most of your graphics stack. I believe karmic provides the option to try kms.  I'm not sure about older versions;  maybe via ppa.
Comment 8 Ian Romanick 2009-10-15 17:23:35 UTC
(In reply to comment #5)
> So how I fix it? On Windows this game works excellent. On wine and screen:

This is a Wine bug.
Comment 9 Henri Verbeet 2009-10-16 08:32:40 UTC
Do you have a (Wine) +wgl log for this? (Or alternatively, does there already exist a Wine bug for this?)
Comment 10 adres7 2009-10-16 09:22:47 UTC
Created attachment 30482 [details]
Wine log with parametr -engine 0
Comment 11 adres7 2009-10-16 09:23:30 UTC
Created attachment 30483 [details]
Wine log without parametrs
Comment 12 adres7 2009-10-16 09:26:27 UTC
Do you have a (Wine) +wgl log for this? (Or alternatively, does there already
exist a Wine bug for this?)

You need something else? Look here, too: 
1. Screen without parametrs: http://bugs2.winehq.org/attachment.cgi?id=24164
2. Screen with -engine 0: http://bugs2.winehq.org/attachment.cgi?id=24165 

And here: http://bugs.winehq.org/show_bug.cgi?id=5586
Comment 13 Henri Verbeet 2009-10-16 11:00:52 UTC
I posted a reply in the Wine bug wrt the misplaced graphics. For this bug, could you start the game as following:

WINEDEBUG="+wgl" wine '/home/krzysztof/.wine/dosdevices/c:/Program Files/Tibia1/Tibia.exe' &> trace.log

and attach the trace.log file that creates?
Comment 14 adres7 2009-10-16 12:00:22 UTC
Created attachment 30485 [details]
WINEDEBUG="+wgl" wine '/home/krzysztof/.wine/dosdevices/c:/Program Files/Tibia1/Tibia.exe' &> trace.log
Comment 15 adres7 2009-10-16 12:04:49 UTC
Created attachment 30486 [details]
WINEDEBUG="+wgl" wine '/home/krzysztof/.wine/dosdevices/c:/Program Files/Tibia1/Tibia.exe' engine 0 &> trace1.log
Comment 16 adres7 2009-10-16 12:07:10 UTC
When game starts with "engine 0", game works good but slow and look at "Screen with -engine 0".
Comment 17 adres7 2009-10-17 03:05:27 UTC
Created attachment 30497 [details]
Glxinfo
Comment 18 Henri Verbeet 2009-10-19 02:20:33 UTC
Right, so this only happens with the Linux Tibia Client. (Which makes it not a Wine bug either.)
Comment 19 Corbin Simpson 2009-10-19 07:41:41 UTC
Stop posting to this bug. GLX 1.3 *is* supported for the drivers which can do it (all DRI2 drivers) with latest Xserver from git. That's enough for this bug to be closed.

If your game still isn't working after you've made sure you're using GLX 1.3+ and no longer getting that warning, feel free to open a *new* bug. Or go open a Wine bug, since this appears to be theirs and not ours.

~ C.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.