3D acceleration work in Xorg, but in XGL don't [SOLVED]

Predseda3D predseda at ik-net.cz
Sat Sep 9 11:08:20 PDT 2006


SOLVED.
I found solution, which is working for me. I don't know, if it is bug of ATI fglrx driver or XGL.

I found, that under XGL, if I run
CODE:
LIBGL_DEBUG=verbose glxinfo

It is saying something like trying found dri modules fglrx_dri.so under
/usr/X11R6/lib/modules/dri/, but on my system, that directory don't exist, I have Xorg 7.0.22
installed. I found that fglrx_dri.so is under /usr/lib/dri, so I create symbolic link to this
directory:
CODE:
ln -s /usr/lib/dri /usr/X11R6/lib/modules/dri

After creating this symbolic link and restarting X server, I get XGL running fine and accelerated
with ATI, that is cool.

> -----Original Message-----
> From: xorg-bounces at lists.freedesktop.org
> [mailto:xorg-bounces at lists.freedesktop.org] On Behalf Of Predseda3D
> Sent: Friday, September 08, 2006 11:10 AM
> To: xorg at lists.freedesktop.org
> Subject: ATI: 3D acceleration work in Xorg, but in XGL don't
> 
> Hi,
> I have problem running XGL. I have AMD64, ATI x300 (PCIE), Debian Etch 
> AMD64, fglrx driver 8.28.8, Xorg 7.0.22, Mesa 6.5.1+cvs20060824, XGL 
> 7.0.0+cvs20060625, linux kernel 2.6.16-2-amd64-k8.
> 
> I have configured Xorg to use proprietary ATI fglrx driver. 
> It is working good.
> 
> Under Xorg glxinfo say, that it is using ATI driver and 3D working 
> well:
> Code:
> 
> name of display: :0.0
> display: :0  screen: 0
> direct rendering: Yes
> server glx vendor string: SGI
> server glx version string: 1.2
> server glx extensions:
>     GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
>     GLX_EXT_import_context, GLX_OML_swap_method, 
> GLX_SGI_make_current_read,
>     GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
>     GLX_SGIX_fbconfig
> client glx vendor string: ATI
> client glx version string: 1.3
> client glx extensions:
>     GLX_EXT_visual_info, GLX_EXT_visual_rating, 
> GLX_EXT_import_context,
>     GLX_ARB_get_proc_address, GLX_SGI_video_sync, GLX_ARB_multisample,
>     GLX_ATI_pixel_format_float, GLX_ATI_render_texture GLX
> version: 1.2 GLX extensions:
>     GLX_EXT_visual_info, GLX_EXT_visual_rating, 
> GLX_EXT_import_context,
>     GLX_ARB_multisample
> OpenGL vendor string: ATI Technologies Inc.
> OpenGL renderer string: RADEON X300/X550 Series Generic OpenGL version 
> string: 2.0.6011 (8.28.8)
> 
> 
> But under XGL, glxinfo say, that it is using mesa driver:
> Code:
> 
> name of display: :1.0
> Xlib:  extension "XFree86-DRI" missing on display ":1.0".
> display: :1  screen: 0
> direct rendering: No
> server glx vendor string: SGI
> server glx version string: 1.2
> server glx extensions:
>     GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
>     GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
> GLX_OML_swap_method,
>     GLX_SGI_make_current_read, GLX_SGIS_multisample, 
> GLX_SGIX_hyperpipe,
>     GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig client glx vendor string: 
> ATI client glx version string: 1.3 client glx
> extensions:
>     GLX_EXT_visual_info, GLX_EXT_visual_rating, 
> GLX_EXT_import_context,
>     GLX_ARB_get_proc_address, GLX_SGI_video_sync, GLX_ARB_multisample,
>     GLX_ATI_pixel_format_float, GLX_ATI_render_texture GLX
> version: 1.2 GLX extensions:
>     GLX_EXT_visual_info, GLX_EXT_visual_rating, 
> GLX_EXT_import_context,
>     GLX_ARB_multisample
> OpenGL vendor string: Mesa project: www.mesa3d.org OpenGL renderer 
> string: Mesa GLX Indirect OpenGL version string: 1.2
> (1.2 (1.5 Mesa 6.4.2))
> 
> So XGL is very slow, compiz don't work, because don't have right 
> driver. I don't know why.
> 
> And now, when I try run XGL in windowed mode, that mean under Xorg 
> from xterm i run:
> Code:
> 
> Xgl :1 -fp /usr/share/fonts\X11\misc -ac -accel glx:pbuffer -accel 
> xv:pbuffer $
> 
> 
> After it start in new window, then in xterm i run:
> Code:
> 
> DISPLAY:=1 glxinfo
> 
> 
> it say:
> Code:
> 
> name of display: :0.0
> display: :0  screen: 0
> direct rendering: No
> server glx vendor string: SGI
> server glx version string: 1.2
> server glx extensions:
>     GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
>     GLX_EXT_import_context, GLX_OML_swap_method, 
> GLX_SGI_make_current_read,
>     GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
>     GLX_SGIX_fbconfig
> client glx vendor string: ATI
> client glx version string: 1.3
> client glx extensions:
>     GLX_EXT_visual_info, GLX_EXT_visual_rating, 
> GLX_EXT_import_context,
>     GLX_ARB_get_proc_address, GLX_SGI_video_sync, GLX_ARB_multisample,
>     GLX_ATI_pixel_format_float, GLX_ATI_render_texture GLX
> version: 1.2 GLX extensions:
>     GLX_EXT_visual_info, GLX_EXT_visual_rating, 
> GLX_EXT_import_context,
>     GLX_ARB_multisample
> OpenGL vendor string: ATI Technologies Inc.
> OpenGL renderer string: RADEON X300/X550 Series Generic OpenGL version 
> string: 2.0.6011 (8.28.8)
> 
> 
> so in windowed mode 3D acceleration work good. then i can start compiz 
> and everything going well, but only in windowed mode.
> 
> Here is my xorg.conf:
> Code:
> 
> # /etc/X11/xorg.conf (xorg X Window System server configuration file) 
> #
> 
> Section "ServerLayout"
>         Identifier     "Default Layout"
>         Screen      0  "aticonfig-Screen[0]" 0 0
>         InputDevice    "Generic Keyboard"
>         InputDevice    "Configured Mouse"
> EndSection
> 
> Section "Files"
> 
>         # path to defoma fonts
>         FontPath     "/usr/share/fonts/X11/misc"
>         FontPath     "/usr/X11R6/lib/X11/fonts/misc"
>         FontPath     "/usr/share/fonts/X11/cyrillic"
>         FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
>         FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
>         FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
>         FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
>         FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
>         FontPath     "/usr/share/fonts/X11/Type1"
>         FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
>         FontPath     "/usr/share/fonts/X11/100dpi"
>         FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
>         FontPath     "/usr/share/fonts/X11/75dpi"
>         FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
>         FontPath     
> "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
> EndSection
> 
> Section "Module"
>         Load  "dbe"      # Double buffer extension
>         SubSection "extmod"
>             Option        "omit xfree86-dga"   # don't 
> initialise the DGA extension
>         EndSubSection
>         Load  "type1"
>         Load  "freetype"
>         Load  "glx"
>         Load  "dri"
>         Load  "GLcore"
>         Load  "i2c"
>         Load  "bitmap"
>         Load  "ddc"
>         Load  "int10"
>         Load  "vbe"
> EndSection
> 
> Section "InputDevice"
>         Identifier  "Generic Keyboard"
>         Driver      "kbd"
>         Option      "CoreKeyboard"
>         Option      "XkbRules" "xorg"
>         Option      "XkbModel" "pc104"
>         Option      "XkbLayout" "us"
> EndSection
> 
> Section "InputDevice"
>         Identifier  "Configured Mouse"
>         Driver      "mouse"
>         Option      "CorePointer"
>         Option      "Device" "/dev/input/mice"
>         Option      "Protocol" "ExplorerPS/2"
>         Option      "Emulate3Buttons" "true"
> EndSection
> 
> Section "Monitor"
>         Identifier   "Generic Monitor"
>         HorizSync    28.0 - 51.0
>         VertRefresh  43.0 - 60.0
>         Option      "DPMS" "true"
> EndSection
> 
> Section "Monitor"
>         Identifier   "aticonfig-Monitor[0]"
>         Option      "VendorName" "ATI Proprietary Driver"
>         Option      "ModelName" "Generic Autodetecting Monitor"
>         Option      "DPMS" "true"
> EndSection
> 
> Section "Device"
>         Identifier  "ATI Technologies, Inc. RV370 5B60 [Radeon X300 
> (PCIE)]"
>         Driver      "radeon"
> EndSection
> 
> Section "Device"
>         Identifier  "aticonfig-Device[0]"
>         Driver      "fglrx"
>         Option        "mtrr" "off"
>         Option        "VideoOverlay" "on"
>         Option        "OpenGLOverlay" "off"
>         Option        "Capabilities" "0x00000800"
>         Option        "FSAAEnable" "on"
>         Option        "FSAAScale" "6"
>         Option        "FSAADisableGamma" "off"
>         Option        "FSAAMSPosX0" "0"
>         Option        "FSAAMSPosY0" "0"
>         Option        "FSAAMSPosX1" "0"
>         Option        "FSAAMSPosY1" "0"
>         Option        "FSAAMSPosX2" "0"
>         Option        "FSAAMSPosY2" "0"
>         Option        "FSAAMSPosX3" "0"
>         Option        "FSAAMSPosY3" "0"
>         Option        "FSAAMSPosX4" "0"
>         Option        "FSAAMSPosY4" "0"
>         Option        "FSAAMSPosX5" "0"
>         Option        "FSAAMSPosY5" "0"
>         Option        "FSAACustomizeMSPos" "yes"
>         Option        "UseFastTLS" "2"
>         Option        "UseInternalAGPGART" "yes"
>         Option        "KernelModuleParm" "locked-userpages=1"
>         Option        "BlockSignalsOnLock" "on"
>         BusID         "PCI:5:0:0"
> EndSection
> 
> Section "Screen"
>         Identifier "Default Screen"
>         Device     "ATI Technologies, Inc. RV370 5B60 [Radeon 
> X300 (PCIE)]"
>         Monitor    "Generic Monitor"
>         DefaultDepth     24
>         SubSection "Display"
>                 Depth     1
>                 Modes    "1024x768" "800x600" "640x480"
>         EndSubSection
>         SubSection "Display"
>                 Depth     4
>                 Modes    "1024x768" "800x600" "640x480"
>         EndSubSection
>         SubSection "Display"
>                 Depth     8
>                 Modes    "1024x768" "800x600" "640x480"
>         EndSubSection
>         SubSection "Display"
>                 Depth     15
>                 Modes    "1024x768" "800x600" "640x480"
>         EndSubSection
>         SubSection "Display"
>                 Depth     16
>                 Modes    "1024x768" "800x600" "640x480"
>         EndSubSection
>         SubSection "Display"
>                 Depth     24
>                 Modes    "1024x768" "800x600" "640x480"
>         EndSubSection
> EndSection
> 
> Section "Screen"
>         Identifier "aticonfig-Screen[0]"
>         Device     "aticonfig-Device[0]"
>         Monitor    "aticonfig-Monitor[0]"
>         DefaultDepth     24
>         SubSection "Display"
>                 Viewport   0 0
>                 Depth     24
>                 Modes    "1024x768" "800x600" "640x480"
>         EndSubSection
> EndSection
> 
> Section "DRI"
>         Mode         0666
> EndSection
> 
> 
> Can someone help what is wrong?
> 
> Thank
> Predseda
> 
> 
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg




More information about the xorg mailing list