[Intel-gfx] Switching mesa to gallium causes graphics to crash on glxgears
Mark Knecht
markknecht at gmail.com
Fri Jan 21 22:33:33 CET 2011
Hi,
Following Gordon Jin's announcement a couple of weeks ago I decided
to try and get my Intel DH55HC/Core i5-661 machine updated. I
attempted to meet the requirements shown here:
http://intellinuxgraphics.org/2010Q4.html
Distro is Gentoo Here's where I am at the moment:
firefly ~ # uname -a
Linux firefly 2.6.37-gentoo #1 SMP PREEMPT Fri Jan 21 11:54:08 PST
2011 x86_64 Intel(R) Core(TM) i5 CPU 661 @ 3.33GHz GenuineIntel
GNU/Linux
firefly ~ #
firefly ~ # emerge -pv xorg-server xorg-drivers xf86-video-intel mesa
libdrm cairo
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] x11-libs/libdrm-2.4.23 USE="libkms -static-libs"
VIDEO_CARDS="intel vmware -nouveau -radeon" 0 kB [0]
[ebuild R ] media-libs/mesa-7.10 USE="classic gallium nptl -debug
-gles -llvm -motif -pic (-selinux)" VIDEO_CARDS="intel vmware -mach64
-mga -nouveau -r128 -radeon -savage -sis -tdfx -via" 0 kB [0]
[ebuild R ] x11-libs/cairo-1.10.2-r1 USE="X opengl qt4 svg xcb
(-aqua) -debug -directfb -doc (-drm) (-gallium) (-openvg)
-static-libs" 0 kB [0]
[ebuild R ] x11-base/xorg-server-1.9.3.901 USE="ipv6 kdrive nptl
udev xorg -dmx -doc -minimal -static-libs -tslib" 0 kB [0]
[ebuild R ] x11-drivers/xf86-video-intel-2.14.0 USE="dri" 0 kB [0]
[ebuild R ] x11-base/xorg-drivers-1.10 INPUT_DEVICES="evdev
keyboard mouse -acecad -aiptek -elographics -fpit -joystick -penmount
-synaptics -tslib -virtualbox -vmmouse -void -wacom"
VIDEO_CARDS="fbdev intel vmware -apm -ark -ast -chips -cirrus -dummy
-epson -fglrx (-geode) -glint -i128 (-i740) (-impact) -mach64 -mga
-neomagic (-newport) -nouveau -nv -nvidia (-omapfb) -r128 -radeon
-rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2)
(-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx
-tga -trident -tseng -v4l -vesa -via -virtualbox (-voodoo) (-xgi)" 0
kB [1]
Total: 6 packages (6 reinstalls), Size of downloads: 0 kB
Portage tree and overlays:
[0] /usr/portage
[1] /var/lib/layman/x11
firefly ~ #
Rendering seems to be enabled:
firefly ~ # glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Desktop GEM
20100330 DEVELOPMENT
firefly ~ # cat /var/log/Xorg.0.log | grep render
[ 21.102] (II) intel(0): direct rendering: DRI2 Enabled
firefly ~ #
OK, so far so good as far as I can tell. I do use an xorg.conf file
because I'm dual screen and I haven't determined how to get KDE to
show me things correctly without it. It's shown below.
Now, two things I'd like to address:
1) When I ran glxgears a year ago it gave me about 1000FPS. Today it
seems locked to the refresh rate:
firefly ~ # glxgears -info
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
GL_RENDERER = Mesa DRI Intel(R) Ironlake Desktop GEM 20100330 DEVELOPMENT
GL_VERSION = 2.1 Mesa 7.10
GL_VENDOR = Tungsten Graphics, Inc
GL_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_framebuffer_blit
GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object
GL_EXT_fog_coord 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_texture 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_rectangle
GL_EXT_texture_sRGB GL_EXT_texture_swizzle GL_EXT_timer_query
GL_EXT_vertex_array GL_EXT_vertex_array_bgra
GL_3DFX_texture_compression_FXT1 GL_APPLE_client_storage
GL_APPLE_packed_pixels GL_APPLE_vertex_array_object
GL_APPLE_object_purgeable GL_ATI_blend_equation_separate
GL_ATI_envmap_bumpmap GL_ATI_texture_env_combine3
GL_ATI_separate_stencil 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_ycbcr_texture GL_MESA_window_pos
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_program GL_NV_vertex_program1_1 GL_OES_read_format
GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp
GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
GL_SUN_multi_draw_arrays GL_OES_EGL_image
290 frames in 5.0 seconds = 57.688 FPS
276 frames in 5.0 seconds = 55.024 FPS
^C
firefly ~ #
2) Not sure if this is an issue but it I switch the Intel interface to
gallium then the whole graphics environment crashes:
firefly ~ # eselect mesa list
i915 (Intel 915, 945)
[1] classic *
[2] gallium
i965 (Intel 965, G/Q3x, G/Q4x)
[1] classic *
[2] gallium
r300 (Radeon R300-R500)
r600 (Radeon R600-R700, Evergreen, Northern Islands)
sw (Software renderer)
[1] classic *
[2] gallium
firefly ~ #
I suspect there's a better xorg.conf setup for me to be using.
Hopefully someone can show me the way.
Thanks,
Mark
firefly ~ # cat /usr/src/linux/.config | grep INTEL
CONFIG_HAVE_INTEL_TXT=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_CPU_SUP_INTEL=y
CONFIG_X86_MCE_INTEL=y
CONFIG_MICROCODE_INTEL=y
CONFIG_INTEL_IDLE=y
CONFIG_HW_RANDOM_INTEL=y
# CONFIG_I2C_INTEL_MID is not set
CONFIG_AGP_INTEL=m
CONFIG_SND_HDA_INTEL=m
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_LEDS_INTEL_SS4200 is not set
# CONFIG_INTEL_MID_DMAC is not set
# CONFIG_INTEL_IOATDMA is not set
# CONFIG_INTEL_TXT is not set
CONFIG_CRYPTO_CRC32C_INTEL=y
# CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL is not set
# CONFIG_CRYPTO_AES_NI_INTEL is not set
firefly ~ # cat /usr/src/linux/.config | grep AGP
CONFIG_AGP=m
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=m
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
firefly ~ # cat /usr/src/linux/.config | grep FB
CONFIG_FB=y
# CONFIG_FB_DDC is not set
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
CONFIG_FB_CFB_FILLRECT=m
CONFIG_FB_CFB_COPYAREA=m
CONFIG_FB_CFB_IMAGEBLIT=m
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not set
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_TMIO is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_BROADSHEET is not set
# CONFIG_FB_CON_DECOR is not set
firefly ~ # cat /usr/src/linux/.config | grep DRM
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
firefly ~ #
firefly ~ # cat /etc/X11/xorg.conf
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 "extmod"
Load "glx"
Load "dri"
Load "dbe"
Load "dri2"
Load "record"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Clarkdale Integrated Graphics Controller"
BusID "PCI:0:2:0"
Option "monitor-VGA1" "Samsung172s"
Option "monitor-HDMI2" "Samsung2333"
Option "AccelMethod" "UXA"
Option "Tiling" "FALSE"
EndSection
Section "ServerLayout"
Identifier "Mark_DualHead"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Monitor"
Identifier "Samsung172s"
VendorName "Samsung"
ModelName "172s"
Option "PreferredMode" "1280x1024"
HorizSync 30-81
VertRefresh 56-75
EndSection
Section "Monitor"
Identifier "Samsung2333"
VendorName "Samsung"
ModelName "2333"
Option "PreferredMode" "1920x1080"
HorizSync 30-81
VertRefresh 56-75
Option "RightOf" "Samsung172s"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Samsung172s"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
# Device "Card0"
Monitor "Samsung2333"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1920x1080"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1920x1080"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
firefly ~ #
firefly ~ # lspci
00:00.0 Host bridge: Intel Corporation Clarkdake DRAM Controller (rev 12)
00:02.0 VGA compatible controller: Intel Corporation Clarkdale
Integrated Graphics Controller (rev 12)
00:16.0 Communication controller: Intel Corporation Ibex Peak HECI
Controller (rev 06)
00:16.2 IDE interface: Intel Corporation Ibex Peak PT IDER Controller (rev 06)
00:16.3 Serial controller: Intel Corporation Ibex Peak KT Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82578DC Gigabit Network
Connection (rev 06)
00:1a.0 USB Controller: Intel Corporation Ibex Peak USB2 Enhanced Host
Controller (rev 06)
00:1b.0 Audio device: Intel Corporation Ibex Peak High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation Ibex Peak PCI Express Root Port 1 (rev 06)
00:1c.4 PCI bridge: Intel Corporation Ibex Peak PCI Express Root Port 5 (rev 06)
00:1d.0 USB Controller: Intel Corporation Ibex Peak USB2 Enhanced Host
Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Ibex Peak LPC Interface
Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation Ibex Peak 6 port SATA AHCI
Controller (rev 06)
00:1f.3 SMBus: Intel Corporation Ibex Peak SMBus Controller (rev 06)
03:00.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet
Pro 100 (rev 05)
03:01.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b
Link Layer Controller (rev 01)
03:02.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall
DSP (rev 6c)
firefly ~ #
firefly ~ # eselect mesa list
i915 (Intel 915, 945)
[1] classic *
[2] gallium
i965 (Intel 965, G/Q3x, G/Q4x)
[1] classic *
[2] gallium
r300 (Radeon R300-R500)
r600 (Radeon R600-R700, Evergreen, Northern Islands)
sw (Software renderer)
[1] classic *
[2] gallium
firefly ~ #
firefly ~ # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU 661 @ 3.33GHz
stepping : 2
cpu MHz : 1197.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl
vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida
arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 6650.53
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU 661 @ 3.33GHz
stepping : 2
cpu MHz : 1197.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl
vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida
arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 6649.63
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU 661 @ 3.33GHz
stepping : 2
cpu MHz : 1197.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl
vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida
arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 6649.63
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU 661 @ 3.33GHz
stepping : 2
cpu MHz : 1197.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 5
initial apicid : 5
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl
vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida
arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 6649.63
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
firefly ~ #
More information about the Intel-gfx
mailing list