Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenGL/WebGL on i915: glxgears works, uses sw rendering
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jeffk
l33t
l33t


Joined: 13 Sep 2003
Posts: 671

PostPosted: Sun Apr 03, 2011 9:42 pm    Post subject: OpenGL/WebGL on i915: glxgears works, uses sw rendering Reply with quote

I'd like to get OpenGL and WebGL (Firefox 4, newer webkit based browser) working on my ~amd64 Lenovo Thinpad x201 with integrated Intel i915 graphics. Firefox 4 from Mozilla Overlay and Webkit browsers e.g. Luakit at any WebGL demo page will simply display "WebGL could not be initialized, sorry!". I know that I got http://playtankworld.com working (probably with sw rendering) one time in the last 3 days, but it doesn't work today.

I know this hardware won't be fast for OpenGL, but I'd like to have something better than the current software rendering for OpenGL and nonworking WebGL. Any help with configuration tips would be greatly appreciated.

Here is the output from glxgears, which runs, but not fast. The output seems to indicate a software renderer in use. Is it significant that VMWare shows up as GL_VENDOR (I don't have VMWare products installed), or is Mesa Gallium code provided by that company?
Code:
$ glxgears -info
GL_RENDERER   = Gallium 0.4 on softpipe
GL_VERSION    = 2.1 Mesa 7.10.1
GL_VENDOR     = VMware, Inc.
GL_EXTENSIONS = GL_ARB_copy_buffer GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_half_float_vertex GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_shader_objects GL_ARB_shader_stencil_export GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_transpose_matrix GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_texture GL_EXT_draw_buffers2 GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture3D GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_vertex_array_bgra GL_EXT_vertex_array GL_OES_EGL_image GL_OES_read_format GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ATI_blend_equation_separate GL_ATI_separate_stencil GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_window_pos GL_MESA_ycbcr_texture GL_NV_blend_square GL_NV_conditional_render GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays

The eselect mesa output is fairly unknown to me. I presume only the first category applies to my hardware, but to the other configuration defaults have any effect on application's OpenGL renderer selection, i.e. do they need to be removed somehow?
Code:
$ sudo eselect mesa list                                                                                                 
64bit i915 (Intel 915, 945)
  [1]   classic *
  [2]   gallium
64bit i965 (Intel 965, G/Q3x, G/Q4x)
  [1]   classic *
  [2]   gallium
64bit r300 (Radeon R300-R500)
64bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
64bit sw (Software renderer)
  [1]   classic
  [2]   gallium *
32bit i915 (Intel 915, 945)
  [1]   classic *
  [2]   gallium
32bit i965 (Intel 965, G/Q3x, G/Q4x)
  [1]   classic *
  [2]   gallium
32bit r300 (Radeon R300-R500)
  [1]   classic
  [2]   gallium *
32bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
  [1]   classic *
  [2]   gallium
32bit sw (Software renderer)
  [1]   classic
  [2]   gallium *

Code:
$ sudo emerge mesa mesa-progs -pv
[ebuild   R   ] media-libs/mesa-7.10.1  USE="classic gallium nptl -debug -gles -hardened -llvm -motif -pic (-selinux)" VIDEO_CARDS="intel -mach64 -mga -nouveau -r128 -radeon -savage -sis -tdfx -via -vmware" 0 kB
[ebuild   R   ] x11-apps/mesa-progs-8.0.1  0 kB

There is no OpenGL configuration in my xorg.conf:
Code:
$ less /etc/X11/xorg.conf                                                                                                 
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "record"
#        SubSection  "extmod"
#          Option    "omit xfree86-dga"   # don't initialise the DGA extension
#        EndSubSection
#        Load  "freetype"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "evdev"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "evdev"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
        Option      "Resolution" "256"
EndSection

Section "ServerFlags"
# Fix no-mouse, no-keyboard after update to x11-base/xorg-server-1.5.3
     Option "AllowEmptyInput" "false"
     Option "IgnoreABI" "True"
EndSection

Section "Monitor"
    Identifier  "ThinkPad 15.4-inch WSXGA+ LCD"
    HorizSync   31.5 - 64.3
    VertRefresh 50-70
EndSection

Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver     "vga"
EndSection

Section "Device"
        Identifier  "Intel HD"
        Driver      "intel"
        BusID       "PCI:0:2:0"
        VendorName  "Intel"
        BoardName   "Intel HD Integrated Graphics"
EndSection

I am running xorg 1.9, as I had a segfault with 1.10, see below:
Code:
$ sudo emerge xorg-drivers xorg-server -pv
[ebuild     U ] x11-base/xorg-drivers-1.10 [1.9] INPUT_DEVICES="evdev -acecad -aiptek -elographics -fpit -joystick -keyboard -mouse -penmount -synaptics -tslib -virtualbox -vmmouse -void -wacom" VIDEO_CARDS="fbdev intel vesa -apm -ark -ast -chips -cirrus -dummy -epson -fglrx (-geode) -glint -i128 (-i740) (-impact) -mach64 -mga -neomagic (-newport) -nouveau -nv -nvidia (-omapfb) -qxl% -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -via -virtualbox -vmware (-voodoo)" 0 kB
[ebuild     U ] x11-base/xorg-server-1.10.0.901 [1.9.5] USE="dmx ipv6 kdrive nptl udev xorg -doc -minimal -static-libs -tslib" 5,218 kB

The error with xorg-1.10:
Code:
$ cat ~/admin/Xorg.0.log
[   453.172]
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
[   453.177]
X.Org X Server 1.10.0.901 (1.10.1 RC 1)
Release Date: 2011-03-29
[   453.179] X Protocol Version 11, Revision 0
[   453.179] Build Operating System: Linux 2.6.38-gentoo-r1 x86_64 Gentoo
[   453.180] Current Operating System: Linux thinkpad 2.6.38-gentoo-r1 #1 SMP Mon Mar 28 12:04:42 PDT 2011 x86_64
[   453.181] Kernel command line: BOOT_IMAGE=/boot/kernel-genkernel-x86_64-2.6.38-gentoo-r1 root=UUID=6a7f65f4-c269-48dd-aba4-1d20f479dbea ro
[   453.182] Build Date: 31 March 2011  05:36:38PM
[   453.182] 
[   453.183] Current version of pixman: 0.20.2
[   453.184]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   453.186] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   453.188] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar 31 18:07:24 2011
[   453.189] (==) Using config file: "/etc/X11/xorg.conf"
[   453.190] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   453.191] (==) ServerLayout "X.org Configured"
[   453.191] (**) |-->Screen "Screen0" (0)
[   453.191] (**) |   |-->Monitor "<default monitor>"
[   453.191] (**) |   |-->Device "Intel HD"
[   453.191] (==) No monitor specified for screen "Screen0".
        Using a default monitor configuration.
[   453.191] (**) |-->Input Device "Mouse0"
[   453.191] (**) |-->Input Device "Keyboard0"
[   453.191] (**) Option "IgnoreABI" "True"
[   453.192] (**) Ignoring ABI Version
[   453.192] (==) Automatically adding devices
[   453.192] (==) Automatically enabling devices
[   453.192] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   453.192]    Entry deleted from font path.
[   453.192] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   453.192]    Entry deleted from font path.
[   453.192] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   453.192]    Entry deleted from font path.
[   453.192] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   453.192]    Entry deleted from font path.
[   453.192]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   453.192] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   453.192]    Entry deleted from font path.
[   453.192]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   453.192] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   453.192]    Entry deleted from font path.
[   453.192] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   453.192]    Entry deleted from font path.
[   453.192] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   453.192]    Entry deleted from font path.
[   453.192] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   453.192]    Entry deleted from font path.
[   453.192]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   453.192] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   453.192]    Entry deleted from font path.
[   453.192]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   453.192] (**) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/misc/
[   453.192] (**) ModulePath set to "/usr/lib64/xorg/modules"
[   453.192] (II) Loader magic: 0x7d7160
[   453.192] (II) Module ABI versions:
[   453.192]    X.Org ANSI C Emulation: 0.4
[   453.192]    X.Org Video Driver: 10.0
[   453.192]    X.Org XInput driver : 12.2
[   453.192]    X.Org Server Extension : 5.0
[   453.192] (--) PCI:*(0:0:2:0) 8086:0046:17aa:215a rev 2, Mem @ 0xf2000000/4194304, 0xd0000000/268435456, I/O @ 0x00001800/8
[   453.192] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   453.192] (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
[   453.192] (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
[   453.192] (II) "glx" will be loaded by default.
[   453.192] (II) "record" will be loaded. This was enabled by default and also specified in the config file.
[   453.192] (II) "dri" will be loaded by default.
[   453.192] (II) "dri2" will be loaded by default.
[   453.192] (II) LoadModule: "dbe"
[   453.193] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[   453.193] (II) Module dbe: vendor="X.Org Foundation"
[   453.193]    compiled for 1.10.0.901, module version = 1.0.0
[   453.193]    Module class: X.Org Server Extension
[   453.193]    ABI class: X.Org Server Extension, version 5.0
[   453.193] (II) Loading extension DOUBLE-BUFFER
[   453.193] (II) LoadModule: "extmod"
[   453.193] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[   453.193] (II) Module extmod: vendor="X.Org Foundation"
[   453.193]    compiled for 1.10.0.901, module version = 1.0.0
[   453.193]    Module class: X.Org Server Extension
[   453.193]    ABI class: X.Org Server Extension, version 5.0
[   453.193] (II) Loading extension MIT-SCREEN-SAVER
[   453.193] (II) Loading extension XFree86-VidModeExtension
[   453.193] (II) Loading extension XFree86-DGA
[   453.193] (II) Loading extension DPMS
[   453.193] (II) Loading extension XVideo
[   453.193] (II) Loading extension XVideo-MotionCompensation
[   453.193] (II) Loading extension X-Resource
[   453.193] (II) LoadModule: "record"
[   453.193] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[   453.193] (II) Module record: vendor="X.Org Foundation"
[   453.193]    compiled for 1.10.0.901, module version = 1.13.0
[   453.193]    Module class: X.Org Server Extension
[   453.193]    ABI class: X.Org Server Extension, version 5.0
[   453.193] (II) Loading extension RECORD
[   453.193] (II) LoadModule: "glx"
[   453.193] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   453.193] (II) Module glx: vendor="X.Org Foundation"
[   453.193]    compiled for 1.10.0.901, module version = 1.0.0
[   453.193]    ABI class: X.Org Server Extension, version 5.0
[   453.193] (==) AIGLX enabled
[   453.193] (II) Loading extension GLX
[   453.193] (II) LoadModule: "dri"
[   453.193] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
[   453.194] (II) Module dri: vendor="X.Org Foundation"
[   453.194]    compiled for 1.10.0.901, module version = 1.0.0
[   453.194]    ABI class: X.Org Server Extension, version 5.0
[   453.194] (II) Loading extension XFree86-DRI
[   453.194] (II) LoadModule: "dri2"
[   453.194] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[   453.194] (II) Module dri2: vendor="X.Org Foundation"
[   453.194]    compiled for 1.10.0.901, module version = 1.2.0
[   453.194]    ABI class: X.Org Server Extension, version 5.0
[   453.194] (II) Loading extension DRI2
[   453.194] (II) LoadModule: "intel"
[   453.194] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   453.194] (II) Module intel: vendor="X.Org Foundation"
[   453.194]    compiled for 1.9.3.901, module version = 2.14.0
[   453.194]    Module class: X.Org Video Driver
[   453.194]    ABI class: X.Org Video Driver, version 8.0
[   453.194] (WW) module ABI major version (8) doesn't match the server's version (10)
[   453.195] (II) LoadModule: "evdev"
[   453.195] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[   453.195] (II) Module evdev: vendor="X.Org Foundation"
[   453.195]    compiled for 1.9.3.901, module version = 2.6.0
[   453.195]    Module class: X.Org XInput Driver
[   453.195]    ABI class: X.Org XInput driver, version 11.0
[   453.195] (WW) module ABI major version (11) doesn't match the server's version (12)
[   453.196] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
        i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
        E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
        965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
        4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
        Sandybridge, Sandybridge, Sandybridge, Sandybridge, Sandybridge,
        Sandybridge, Sandybridge
[   453.196] (--) using VT number 7

[   453.201] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   453.201]
Backtrace:
[   453.201] 0: /usr/bin/X (xorg_backtrace+0x28) [0x4a21b8]
[   453.201] 1: /usr/bin/X (0x400000+0x63629) [0x463629]
[   453.201] 2: /lib64/libpthread.so.0 (0x7f500fce1000+0xf4d0) [0x7f500fcf04d0]
[   453.201] 3: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f500ce29000+0xea79) [0x7f500ce37a79]
[   453.201] 4: /usr/bin/X (xf86DeleteScreen+0x7c) [0x46de8c]
[   453.201] 5: /usr/bin/X (InitOutput+0x879) [0x472df9]
[   453.201] 6: /usr/bin/X (0x400000+0x24938) [0x424938]
[   453.201] 7: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7f500ec31ebd]
[   453.201] 8: /usr/bin/X (0x400000+0x24699) [0x424699]
[   453.201] Segmentation fault at address 0xc380
[   453.201]
Fatal server error:
[   453.201] Caught signal 11 (Segmentation fault). Server aborting
[   453.201]
[   453.201]
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   453.201] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   453.201]

Here are portions of my kernel 2.6.38-r1 config that might have something to do with graphics (let me know if others apply)
Code:
$ grep -e "915\|KMS\|DRM" kernel-config-x86_64-2.6.38-gentoo-r1
CONFIG_DRM=m
CONFIG_DRM_KMS_HELPER=m
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=m
CONFIG_DRM_I915_KMS=y
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set

And the specific graphics hardware present:
Code:
$ sudo lspci -k
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
        Subsystem: Lenovo Device 2193
        Kernel driver in use: agpgart-intel
        Kernel modules: intel-agp
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
        Subsystem: Lenovo Device 215a
        Kernel driver in use: i915
        Kernel modules: i915
...

Thanks for reading through this long list. I'm very grateful for any tips from someone who knows how to get OpenGL and WebGL working.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Sun Apr 03, 2011 9:49 pm    Post subject: Reply with quote

First thing: remove your xorg.conf. Second, are you in the video group? Third, Firefox blacklists everything for WebGL except the nvidia blob. With good reason, there's lots of crashes with other drivers. It's possible to bypass the blacklist, but like I said, it's there for a reason.
Back to top
View user's profile Send private message
jeffk
l33t
l33t


Joined: 13 Sep 2003
Posts: 671

PostPosted: Sun Apr 03, 2011 10:03 pm    Post subject: Reply with quote

Thank you. I have removed xorg.conf, X11 seems to work perfectly, I'm glad to be config-less. I was not in group video, I added my user, and restarted X. These have not had any effect on glxinfo output or glxgears -info, etc.

Your point is well taken about WebGL blacklists. I don't have any ambitions to run WebGL on a daily basis, but I do need to test it out a bit with average non-gaming laptop hardware like this i915, so I can evaluate whether to target WebGL in application development.

Now that I have no xorg.conf, Do I need to do anything to tell X that it should load OpenGL extensions if it can find them?

Thanks.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Mon Apr 04, 2011 9:54 am    Post subject: Reply with quote

Did you log out after adding yourself to the video group? Just restarting X is not enough. Or you go the overkill, but effective route - reboot.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Mon Apr 04, 2011 2:27 pm    Post subject: Reply with quote

Code:
[   453.195] (WW) module ABI major version (11) doesn't match the server's version (12)
You forgot to rebuild X drivers after upgrading xorg-server.
Back to top
View user's profile Send private message
jeffk
l33t
l33t


Joined: 13 Sep 2003
Posts: 671

PostPosted: Thu Apr 14, 2011 9:00 pm    Post subject: Reply with quote

Sorry to be a squeaky wheel, I'm up on xorg-x11 1.10.0.902 now, have all mesa and X components rebuilt, have rebooted, and have glxgears running accelerated. Is there any reason I shouldn't be able to get WebGL force-enabled on any of Firefox 4, Chromium-9999, Webkit-gtk luakit, etc? As mentioned previously, I don't expect fast, nor necessarily stable WebGL on this hardware. But I'd like to be able to try it at least, to evaluate as a web application target.
Code:
x11-base/xorg-server-1.10.0.902  USE="dmx ipv6 kdrive nptl udev xorg -doc -minimal -static-libs -tslib"

I've tried all the about:config settings on Firefox 4:
Code:
webgl.disabled false
webgl.force-enabled true (user set)
webgl.force_osmesa false
webgl.osmesalib /usr/lib64/opengl/xorg-x11/lib/libGL.so.1  (user set)
webgl.prefer-native-gl true (user set)
webgl.shader_validator true
webgl.verbose false

And ran with:
Code:
MOZ_GLX_IGNORE_BLACKLIST=1 /usr/bin/firefox

On chromium-9999, I tried:
Code:
LD_LIBRARY_PATH="/usr/lib/opengl/$(eselect opengl show)/lib" chromium-live --no-sandbox --enable-webgl


These and other browsers all return a similar message: could not initialize WebGL, sorry!

I have glxgears running great, almost certainly hardware-accelerated (such as it is on the i915).
Code:
~ $ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
~ $ glxinfo
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap,
    GLX_INTEL_swap_event
GLX version: 1.4
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap,
    GLX_INTEL_swap_event
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
OpenGL version string: 2.1 Mesa 7.10.2
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_ARB_copy_buffer, GL_ARB_depth_clamp, GL_ARB_depth_texture,
    GL_ARB_draw_buffers, GL_ARB_draw_elements_base_vertex,
    GL_ARB_explicit_attrib_location, GL_ARB_fragment_coord_conventions,
    GL_ARB_fragment_program, GL_ARB_fragment_program_shadow,
    GL_ARB_fragment_shader, GL_ARB_framebuffer_object,
    GL_ARB_half_float_pixel, GL_ARB_half_float_vertex,
    GL_ARB_map_buffer_range, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object,
    GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_provoking_vertex,
    GL_ARB_seamless_cube_map, GL_ARB_shader_objects,
    GL_ARB_shading_language_100, GL_ARB_shadow, GL_ARB_sync,
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
    GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle,
    GL_ARB_texture_rg, GL_ARB_texture_swizzle, GL_ARB_transpose_matrix,
    GL_ARB_vertex_array_bgra, GL_ARB_vertex_array_object,
    GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader,
    GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, GL_EXT_draw_buffers2,
    GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_framebuffer_blit,
    GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_object,
    GL_EXT_gpu_program_parameters, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels,
    GL_EXT_pixel_buffer_object, GL_EXT_point_parameters,
    GL_EXT_polygon_offset, GL_EXT_provoking_vertex, GL_EXT_rescale_normal,
    GL_EXT_secondary_color, GL_EXT_separate_shader_objects,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture3D, GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
    GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_texture,
    GL_EXT_texture_rectangle, GL_EXT_texture_sRGB, GL_EXT_texture_swizzle,
    GL_EXT_timer_query, GL_EXT_vertex_array_bgra, GL_EXT_vertex_array,
    GL_OES_EGL_image, GL_OES_read_format, GL_3DFX_texture_compression_FXT1,
    GL_APPLE_client_storage, GL_APPLE_object_purgeable,
    GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object,
    GL_ATI_blend_equation_separate, GL_ATI_envmap_bumpmap,
    GL_ATI_separate_stencil, GL_ATI_texture_env_combine3,
    GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_MESA_pack_invert, GL_MESA_texture_signed_rgba, GL_MESA_window_pos,
    GL_MESA_ycbcr_texture, GL_NV_blend_square, GL_NV_depth_clamp,
    GL_NV_light_max_exponent, GL_NV_packed_depth_stencil,
    GL_NV_texgen_reflection, GL_NV_texture_env_combine4,
    GL_NV_texture_rectangle, GL_NV_vertex_program1_1, GL_NV_vertex_program,
    GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

32 GLX Visuals
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x021 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x022 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x09c 24 tc  0  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x09d 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x09e 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x09f 24 tc  0  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0a0 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0a1 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0a2 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0a3 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0a4 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0a5 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0a6 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0a7 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x0a8 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0a9 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x0aa 24 dc  0  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0ab 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0ac 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0ad 24 dc  0  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0ae 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0af 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0b0 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0b1 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0b2 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x0b3 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0b4 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0b5 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x0b6 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x0b7 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x0b8 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x06b 32 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None

48 GLXFBConfigs:
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x06c  0 tc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x06d  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x06e  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x06f  0 tc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x070  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x071  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x072 24 tc  0  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x073 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x074 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x075 24 tc  0  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x076 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x077 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x078 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x079 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x07a 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x07b 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x07c 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x07d 32 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x07e  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x07f  0 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x080 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x081 24 tc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x082 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x083 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
0x084  0 dc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x085  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x086  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x087  0 dc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x088  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x089  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x08a 24 dc  0  24  0 r  . .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x08b 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x08c 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0  0  0  0  0  0  0  0 0 None
0x08d 24 dc  0  24  0 r  . .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x08e 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x08f 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x090 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x091 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x092 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0  0  0  0  0  0 0 None
0x093 24 dc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x094 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x095 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x096  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x097  0 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x098 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8  0  0  0  0  0 0 None
0x099 24 dc  0  24  0 r  y .   8  8  8  0 .  .  0 24  8 16 16 16  0  0 0 Slow
0x09a 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8  0  0  0  0  0 0 None
0x09b 24 dc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  0 0 Slow
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum