Bug#405859: xserver-xorg-video-mga: freeglut error if there's no Virtual line in xorg config file
Hi Michel,
thanks for your hints.
On Sun, Jan 07, 2007 at 02:31:39PM +0100, Michel Dänzer wrote:
> On Sun, 2007-01-07 at 14:01 +0100, Jens Seidel wrote:
> > On Sun, Jan 07, 2007 at 12:51:17PM +0100, Michel Dänzer wrote:
> > > On Sat, 2007-01-06 at 20:59 +0100, Jens Seidel wrote:
> > > > Package: xserver-xorg-video-mga
> > > >
> > > > An OpenGL application fails to start using the following error message:
> > > >
> > > > My xorg config file contains:
> > > >
> > > > SubSection "Display"
> > > > Depth 24
> > > > Modes "1280x1024" "1024x768" "800x600" "640x480"
> > > > # Virtual 1600 1200
> > > > EndSubSection
> > > >
> > > > If I comment the Virtual line out it works with both GLUT_ALPHA and
> > > > GLUT_RGB.
> > >
> > (EE) MGA(0): Static buffer allocation failed, not initializing the DRI
> > (EE) MGA(0): Need at least 22500 kB video memory at this resolution, bit depth
> > (II) MGA(0): Using 1421 lines for offscreen memory.
> >
>
> Does it work with direct rendering enabled if you set
> LIBGL_ALWAYS_INDIRECT=1 (and maybe disable AIGLX)?
I removed the virtual line to ensure sufficient memory is available
and set LIBGL_ALWAYS_INDIRECT=1 but fail to start my application with
the same error. But the xorg log doesn't contain any errors anymore
(only AIGLX related warnings).
I don't know how to disable AIGLX. I removed the glx module from the
xorg config and can no longer start my application:
freeflut: OpenGL GLX extension not supported by display ':0.0'
I googled for it and added:
Section "ServerFlags"
Option "AIGLX" "off"
EndSection
Section "Extensions"
Option "Composite" "Disable"
EndSection
The log file patch against the previous attempt (LIBGL_ALWAYS_INDIRECT=1)
is attached and warnings are no longer contained. But even after setting
LIBGL_ALWAYS_INDIRECT=1 the application fails to start.
> BTW, what exactly is GLUT_ALPHA supposed to achieve?
I'm not sure but believe it just enables Alpha Blending, e.g.
transparency. I didn't wrote this application and just adapt it.
Thanks,
Jens
--- /tmp/Xord.log1 2007-01-08 22:50:07.000000000 +0100
+++ /tmp/Xord.log0 2007-01-08 23:08:11.000000000 +0100
@@ -11,7 +11,7 @@
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
-(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan 8 22:44:20 2007
+(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan 8 23:07:25 2007
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
@@ -45,6 +45,8 @@
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
(==) RgbPath set to "/etc/X11/rgb"
(==) ModulePath set to "/usr/lib/xorg/modules"
+(**) Option "AIGLX" "off"
+(**) Extension "Composite" is disabled
(II) Open ACPI successful (/var/run/acpid.socket)
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.3
@@ -240,7 +242,7 @@
(II) Module glx: vendor="X.Org Foundation"
compiled for 7.1.1, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.3
-(==) AIGLX enabled
+(**) AIGLX disabled
(II) Loading extension GLX
(II) LoadModule: "int10"
(II) Loading /usr/lib/xorg/modules/libint10.so
@@ -394,7 +396,7 @@
(II) MGA(0): VESA VBE DDC Level 2
(II) MGA(0): VESA VBE DDC transfer in appr. 1 sec.
(II) MGA(0): VESA VBE DDC read successfully
-(II) MGA(0): VBE DDC Monitor info: 0x82278b8
+(II) MGA(0): VBE DDC Monitor info: 0x8227980
(II) MGA(0): Manufacturer: REL Model: 786 Serial#: 16843009
(II) MGA(0): Year: 1998 Week: 48
(II) MGA(0): EDID Version: 1.1
@@ -701,7 +703,7 @@
(II) MGA(0): [drm] DRM interface version 1.2
(II) MGA(0): [drm] created "mga" driver at busid "pci:0000:01:00.0"
(II) MGA(0): [drm] added 8192 byte SAREA at 0xd0b15000
-(II) MGA(0): [drm] mapped SAREA 0xd0b15000 to 0xa630d000
+(II) MGA(0): [drm] mapped SAREA 0xd0b15000 to 0xa62ab000
(II) MGA(0): [drm] framebuffer handle = 0xe4000000
(II) MGA(0): [drm] added 1 reserved context for kernel
(II) MGA(0): [dri] visual configs initialized
@@ -750,31 +752,13 @@
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
-drmOpenDevice: node name is /dev/dri/card0
-drmOpenDevice: open result is 9, (OK)
-drmOpenByBusid: Searching for BusID pci:0000:01:00.0
-drmOpenDevice: node name is /dev/dri/card0
-drmOpenDevice: open result is 9, (OK)
-drmOpenByBusid: drmOpenMinor returns 9
-drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
-(WW) AIGLX: 3D driver claims to not support visual 0x23
-(WW) AIGLX: 3D driver claims to not support visual 0x24
-(WW) AIGLX: 3D driver claims to not support visual 0x25
-(WW) AIGLX: 3D driver claims to not support visual 0x26
-(WW) AIGLX: 3D driver claims to not support visual 0x27
-(WW) AIGLX: 3D driver claims to not support visual 0x28
-(WW) AIGLX: 3D driver claims to not support visual 0x29
-(WW) AIGLX: 3D driver claims to not support visual 0x2a
-(WW) AIGLX: 3D driver claims to not support visual 0x2b
-(WW) AIGLX: 3D driver claims to not support visual 0x2c
-(WW) AIGLX: 3D driver claims to not support visual 0x2d
-(WW) AIGLX: 3D driver claims to not support visual 0x2e
-(WW) AIGLX: 3D driver claims to not support visual 0x2f
-(WW) AIGLX: 3D driver claims to not support visual 0x30
-(WW) AIGLX: 3D driver claims to not support visual 0x31
-(WW) AIGLX: 3D driver claims to not support visual 0x32
-(II) AIGLX: Loaded and initialized /usr/lib/dri/mga_dri.so
-(II) GLX: Initialized DRI GL provider for screen 0
+(II) Loading local sub module "GLcore"
+(II) LoadModule: "GLcore"
+(II) Loading /usr/lib/xorg/modules/extensions/libGLcore.so
+(II) Module GLcore: vendor="X.Org Foundation"
+ compiled for 7.1.1, module version = 1.0.0
+ ABI class: X.Org Server Extension, version 0.3
+(II) GLX: Initialized MESA-PROXY GL provider for screen 0
(**) Option "CoreKeyboard"
(**) Generic Keyboard: Core Keyboard
(**) Option "Protocol" "standard"
Reply to: