Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278942 - OpenGL rendering
Summary: OpenGL rendering
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 16:46 UTC by momesana
Modified: 2009-07-24 18:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
xorg.conf (xorg.conf,2.88 KB, text/plain)
2009-07-24 16:47 UTC, momesana
Details
Xorg.0.log (Xorg log file) (Xorg.0.log,23.20 KB, text/plain)
2009-07-24 16:48 UTC, momesana
Details
Xorg.0.log (Xorg log file) (Xorg.0.log,20.21 KB, text/plain)
2009-07-24 17:55 UTC, momesana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description momesana 2009-07-24 16:46:43 UTC
I don't have OpenGL acceleration on my box with an intel 945GM/GME/GMS chipset:
The Xorg log says this:
      momesana # grep -i aiglx /var/log/Xorg.0.log
      (==) AIGLX enabled
      (EE) AIGLX error: dlopen of /usr/lib/dri/i915_dri.so failed (/usr/lib /dri/i915_dri.so: cannot open shared object file: No such file or directory)
      (EE) AIGLX: reverting to software rendering
      (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
  
      momesana # glxinfo | grep direct
      direct rendering: Yes

The used intel driver version is this:
*  x11-drivers/xf86-video-intel
      Latest version available: 2.6.3-r1
      Latest version installed: 2.6.3-r1
      Size of files: 771 kB
      Homepage:      http://xorg.freedesktop.org/
      Description:   X.Org driver for Intel cards
      License:       xf86-video-intel



Reproducible: Always

Actual Results:  
when I try to enable Desktop effects on KDE it falls back to XRender because OpenGL cannot be activated.

Expected Results:  
Pretty opengl accelerated Kde Desktop!
Comment 1 momesana 2009-07-24 16:47:39 UTC
Created attachment 198998 [details]
xorg.conf
Comment 2 momesana 2009-07-24 16:48:21 UTC
Created attachment 198999 [details]
Xorg.0.log (Xorg log file)
Comment 3 momesana 2009-07-24 16:49:24 UTC
momesana@momesana ~ $ emerge --info
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/layman/profiles/repo_name
        /usr/portage/local/layman/profiles/repo_name
        /usr/local/portage/standard/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.                  
Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686)
=================================================================                                            
System uname: Linux-2.6.29-gentoo-r5-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-glibc2.0                 
Timestamp of tree: Fri, 24 Jul 2009 13:30:01 +0000                                                           
ccache version 2.4 [enabled]                                                                                 
app-shells/bash:     3.2_p39                                                                                 
dev-java/java-config: 2.1.8-r1                                                                               
dev-lang/python:     2.5.4-r3                                                                                
dev-util/ccache:     2.4-r7                                                                                  
dev-util/cmake:      2.6.4                                                                                   
sys-apps/baselayout: 1.12.11.1                                                                               
sys-apps/sandbox:    1.6-r2                                                                                  
sys-devel/autoconf:  2.13, 2.63                                                                              
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                               
sys-devel/binutils:  2.18-r3                                                                                 
sys-devel/gcc-config: 1.4.1                                                                                  
sys-devel/libtool:   1.5.26                                                                                  
virtual/os-headers:  2.6.27-r2                                                                               
ACCEPT_KEYWORDS="x86"                                                                                        
CBUILD="i686-pc-linux-gnu"                                                                                   
CFLAGS="-march=native -O2 -pipe"                                                                             
CHOST="i686-pc-linux-gnu"                                                                                    
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"     
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CPPFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fa fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/openrc /usr/local/portage/standard /usr/portage/local/layman /usr/local/portage/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa apache2 apm audiofile berkdb bidi bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dga dio directfb dri dts dv dvd dvdr dvdread eds emboss encode esd evo exif fam fbcon ffmpeg firefox flac fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv icq ieee1394 imagemagick ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kdeenablefinal kdexdeltas ldap libnotify lm_sensors mad midi mikmod mmx mng mozilla mp3 mpeg msn mudflap mysql ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl openmp pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime readline reflection scanner sdl session speex spell spl sse sse2 ssl startup-notification svg svga sysfs tcpd theora threads tidy tiff truetype unicode usb v4l vcd vhosts vorbis wifi win32codecs x86 xcomposite xine xinerama xml xorg xpm xsl xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fa fr" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 momesana 2009-07-24 16:53:23 UTC
Here is the output of lspci -v:
momesana@momesana ~ $ /usr/sbin/lspci -v
...
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])                                                                                                 
        Subsystem: Fujitsu Limited. Device 1381                                                                                 
        Flags: bus master, fast devsel, latency 0, IRQ 16                                                                       
        Memory at f0300000 (32-bit, non-prefetchable) [size=512K]                                                               
        I/O ports at 1800 [size=8]                                                                                              
        Memory at e0000000 (32-bit, prefetchable) [size=256M]                                                                   
        Memory at f0400000 (32-bit, non-prefetchable) [size=256K]                                                               
        Capabilities: <access denied>                                                                                           

00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
        Subsystem: Fujitsu Limited. Device 1381                                                                               
        Flags: bus master, fast devsel, latency 0                                                                             
        Memory at f0380000 (32-bit, non-prefetchable) [size=512K]                                                             
        Capabilities: <access denied>                                                                                         
...
Comment 5 momesana 2009-07-24 17:55:55 UTC
Created attachment 199007 [details]
Xorg.0.log (Xorg log file)
Comment 6 momesana 2009-07-24 17:58:45 UTC
With mesa build with the intel use flag the drm module is built and the error message is gone. But enabling OpenGL is still not possible within KDE. Take a look at the plenty error messages in Xorg.0.log after disabling the KDE functionality tests in controlcenter > desktop effects > advanced ...

momesana momesana # cat /var/log/Xorg.0.log | grep -i aiglx
(**) Option "AIGLX" "true"
(**) AIGLX enabled
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
(II) AIGLX: enabled GLX_texture_from_pixmap with driver support
(II) AIGLX: Loaded and initialized /usr/lib/dri/i915_dri.so
Comment 7 momesana 2009-07-24 18:04:07 UTC
Here is a closer look of the performance.
momesana@momesana ~ $ glxgears
242 frames in 5.0 seconds = 48.367 FPS
290 frames in 5.0 seconds = 57.850 FPS
211 frames in 5.0 seconds = 41.964 FPS
255 frames in 5.0 seconds = 50.573 FPS
219 frames in 5.0 seconds = 43.758 FPS
275 frames in 5.0 seconds = 54.867 FPS
277 frames in 5.0 seconds = 55.255 FPS
282 frames in 5.0 seconds = 56.379 FPS
260 frames in 5.0 seconds = 51.897 FPS
277 frames in 5.0 seconds = 55.125 FPS
286 frames in 5.0 seconds = 57.108 FPS
280 frames in 5.0 seconds = 55.946 FPS
284 frames in 5.0 seconds = 56.648 FPS
285 frames in 5.0 seconds = 56.641 FPS
272 frames in 5.0 seconds = 54.275 FPS
278 frames in 5.0 seconds = 55.586 FPS
282 frames in 5.0 seconds = 56.128 FPS
216 frames in 5.0 seconds = 43.071 FPS