Bug 91051 - GT650M and Nouveau - NOUVEAU(0): [drm] failed to set drm interface version.
Summary: GT650M and Nouveau - NOUVEAU(0): [drm] failed to set drm interface version.
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Nouveau Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-22 08:10 UTC by Stuart Axon
Modified: 2015-10-22 02:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg (96.83 KB, text/plain)
2015-07-09 21:48 UTC, Stuart Axon
Details
dmesg.txt (105.80 KB, text/plain)
2015-07-09 22:00 UTC, Stuart Axon
Details
Xorg.0.log (31.14 KB, text/plain)
2015-07-09 22:02 UTC, Stuart Axon
Details
Xorg.8.log (6.25 KB, text/plain)
2015-07-09 22:05 UTC, Stuart Axon
Details
glxdemo with dri prime looks a bit glitchy (6.25 KB, image/png)
2015-07-09 22:46 UTC, Stuart Axon
Details

Description Stuart Axon 2015-06-22 08:10:42 UTC
Not sure if this is the right place...

OS:  
Ubuntu 15.04,  Using oibaf PPA.  Laptop: Asus N56VZ


I have GT650M with Intel.    The nouveau driver doesn't seem to load with this error in /var/log/Xorg.8.log:

NOUVEAU(0): [drm] failed to set drm interface version.

Googling, I've found people with the same issue, but no solution that is not "use the proprietary drivers" which is I prefer not to do as they are quite fragile during upgrades.

With earlier kernels (about 3 releases of Ubuntu back?) - Nouveau worked fine with bumblebee, it hasn't for quite a long time, I've got a suspicion that Nouveau and Bumblebee hasn't been working for anybody else during that time too (since searching for a fix on and off the last few years).


/var/log/Xorg.8.log
[  8990.687] 
X.Org X Server 1.17.1
Release Date: 2015-02-10
[  8990.687] X Protocol Version 11, Revision 0
[  8990.687] Build Operating System: Linux 3.2.0-61-generic x86_64 Ubuntu
[  8990.687] Current Operating System: Linux beezlebub 3.19.0-20-generic #20-Ubuntu SMP Fri May 29 10:10:47 UTC 2015 x86_64
[  8990.687] Kernel command line: BOOT_IMAGE=/vmlinuz-3.19.0-20-generic.efi.signed root=UUID=14ac372e-6980-4fe8-b247-fae92d54b0c5 ro quiet splash acpi_enforce_resources=lax intel_pstate=enable rcutree.rcu_idle_gp_delay=1 vt.handoff=7
[  8990.687] Build Date: 19 March 2015  09:26:59AM
[  8990.687] xorg-server 2:1.17.1-0ubuntu3 (For technical support please see http://www.ubuntu.com/support) 
[  8990.687] Current version of pixman: 0.32.6
[  8990.687] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  8990.687] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  8990.687] (==) Log file: "/var/log/Xorg.8.log", Time: Mon Jun 22 16:05:14 2015
[  8990.687] (++) Using config file: "/etc/bumblebee/xorg.conf.nouveau"
[  8990.687] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[  8990.687] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  8990.687] (==) ServerLayout "Layout0"
[  8990.687] (==) No screen section available. Using defaults.
[  8990.687] (**) |-->Screen "Default Screen Section" (0)
[  8990.687] (**) |   |-->Monitor "<default monitor>"
[  8990.688] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[  8990.688] (**) |   |-->Device "DiscreteNvidia"
[  8990.688] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[  8990.688] (**) Option "AutoAddDevices" "false"
[  8990.688] (**) Option "AutoAddGPU" "false"
[  8990.688] (**) Not automatically adding devices
[  8990.688] (==) Automatically enabling devices
[  8990.688] (**) Not automatically adding GPU devices
[  8990.688] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  8990.688] 	Entry deleted from font path.
[  8990.688] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  8990.688] 	Entry deleted from font path.
[  8990.688] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[  8990.688] 	Entry deleted from font path.
[  8990.688] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	built-ins
[  8990.688] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[  8990.688] (==) |-->Input Device "<default pointer>"
[  8990.688] (==) |-->Input Device "<default keyboard>"
[  8990.688] (==) The core pointer device wasn't specified explicitly in the layout.
	Using the default mouse configuration.
[  8990.688] (==) The core keyboard device wasn't specified explicitly in the layout.
	Using the default keyboard configuration.
[  8990.688] (II) Loader magic: 0x7f66b0169d80
[  8990.688] (II) Module ABI versions:
[  8990.688] 	X.Org ANSI C Emulation: 0.4
[  8990.688] 	X.Org Video Driver: 19.0
[  8990.688] 	X.Org XInput driver : 21.0
[  8990.688] 	X.Org Server Extension : 9.0
[  8990.688] (II) xfree86: Adding drm device (/dev/dri/card1)
[  8990.688] (II) xfree86: Adding drm device (/dev/dri/card0)
[  8990.689] (--) PCI: (0:1:0:0) 10de:0fd1:1043:2103 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[  8990.689] (II) LoadModule: "glx"
[  8990.689] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  8990.690] (II) Module glx: vendor="X.Org Foundation"
[  8990.690] 	compiled for 1.17.1, module version = 1.0.0
[  8990.690] 	ABI class: X.Org Server Extension, version 9.0
[  8990.690] (==) AIGLX enabled
[  8990.690] (II) LoadModule: "nouveau"
[  8990.690] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[  8990.690] (II) Module nouveau: vendor="X.Org Foundation"
[  8990.690] 	compiled for 1.17.1, module version = 1.0.11
[  8990.690] 	Module class: X.Org Video Driver
[  8990.690] 	ABI class: X.Org Video Driver, version 19.0
[  8990.690] (II) LoadModule: "mouse"
[  8990.690] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[  8990.690] (II) Module mouse: vendor="X.Org Foundation"
[  8990.690] 	compiled for 1.16.0, module version = 1.9.1
[  8990.690] 	Module class: X.Org XInput Driver
[  8990.690] 	ABI class: X.Org XInput driver, version 21.0
[  8990.690] (II) LoadModule: "kbd"
[  8990.690] (WW) Warning, couldn't open module kbd
[  8990.690] (II) UnloadModule: "kbd"
[  8990.690] (II) Unloading kbd
[  8990.690] (EE) Failed to load module "kbd" (module does not exist, 0)
[  8990.690] (II) NOUVEAU driver 
[  8990.690] (II) NOUVEAU driver for NVIDIA chipset families :
[  8990.690] 	RIVA TNT        (NV04)
[  8990.690] 	RIVA TNT2       (NV05)
[  8990.690] 	GeForce 256     (NV10)
[  8990.690] 	GeForce 2       (NV11, NV15)
[  8990.690] 	GeForce 4MX     (NV17, NV18)
[  8990.690] 	GeForce 3       (NV20)
[  8990.690] 	GeForce 4Ti     (NV25, NV28)
[  8990.690] 	GeForce FX      (NV3x)
[  8990.690] 	GeForce 6       (NV4x)
[  8990.690] 	GeForce 7       (G7x)
[  8990.690] 	GeForce 8       (G8x)
[  8990.691] 	GeForce GTX 200 (NVA0)
[  8990.691] 	GeForce GTX 400 (NVC0)
[  8990.691] (--) using VT number 7

[  8990.691] (II) [drm] nouveau interface version: 1.2.1
[  8990.691] (II) Loading sub module "dri2"
[  8990.691] (II) LoadModule: "dri2"
[  8990.691] (II) Module "dri2" already built-in
[  8990.691] (EE) NOUVEAU(0): [drm] failed to set drm interface version.
[  8990.691] (EE) NOUVEAU(0): [drm] error opening the drm
[  8990.691] (EE) NOUVEAU(0): 904: 
[  8990.691] (II) UnloadModule: "nouveau"
[  8990.691] (EE) Screen(s) found, but none have a usable configuration.
[  8990.691] (EE) 
Fatal server error:
[  8990.691] (EE) no screens found(EE) 
[  8990.691] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  8990.691] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[  8990.691] (EE) 
[  8990.691] (EE) Server terminated with error (1). Closing log file.
Comment 1 Stuart Axon 2015-07-09 18:27:13 UTC
Here is a collection of links to what looks like they may be the same bug

OpenSUSE - Jan 2015
https://forums.opensuse.org/showthread.php/504408-Trying-to-setup-Optimus-with-Nouveau


Ubuntu - 2013-02-04
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1115177


Arch Linux 2012
http://bbs.archbang.org/viewtopic.php?id=3697
Comment 2 Ilia Mirkin 2015-07-09 18:44:04 UTC
My guess is that there are errors in dmesg around gpu init. Perhaps you can avoid them by turning off runpm (nouveau.runpm=0).
Comment 3 Emil Velikov 2015-07-09 20:28:59 UTC
Keyword here is Bumblebee. Can you try without it for your first try. Additionally you can try Ilia's suggestion, but please provide the complete output of dmesg in either case.
Comment 4 Stuart Axon 2015-07-09 21:48:16 UTC
Created attachment 117021 [details]
dmesg
Comment 5 Ilia Mirkin 2015-07-09 21:49:18 UTC
Nouveau is not being loaded. Perhaps your distro has helpfully blacklisted it. This is why the DDX can't find the device.
Comment 6 Stuart Axon 2015-07-09 21:54:56 UTC
Ah, OK.

I think bumblebee has it blacklisted.

I can run the module with modprobe, but it doesn't seem to help ?

I'll try unblacklisting it and rebooting.
Comment 7 Stuart Axon 2015-07-09 22:00:49 UTC
Created attachment 117022 [details]
dmesg.txt
Comment 8 Stuart Axon 2015-07-09 22:02:35 UTC
Created attachment 117023 [details]
Xorg.0.log
Comment 9 Stuart Axon 2015-07-09 22:05:11 UTC
Created attachment 117024 [details]
Xorg.8.log
Comment 10 Stuart Axon 2015-07-09 22:06:38 UTC
primusrun does the same thing as optirun, kicks me out to login screen the first time, then the drm version error.

Have uploaded new logs from after I got kicked to login screen + logged back in.
Comment 11 Ilia Mirkin 2015-07-09 22:12:45 UTC
Using anything relating to primusrun, optirun, bumblebee, etc is entirely unsupported by nouveau. Feel free to ask those projects for support.

Your Xorg.0.log shows that nouveau got detected as a secondary GPU and that it detects your HDMI-1 screen just fine. If you follow the steps at http://nouveau.freedesktop.org/wiki/Optimus/ then it should all work.
Comment 12 Emil Velikov 2015-07-09 22:17:22 UTC
Seems like the short version was too brief, here is a longer one:

Bumblebee likes to disable/pull out the card from under the kernel driver to safe power. On the userspace it uses a form of GL/GLX proxy.

If you're using recent kernel/mesa you don't need any part for Bumblebee, as the kernel driver will automatically power up/down the device. On the userspace, use $DRI_PRIME=1 glxgears to start glxgears with the "other" (nvidia) card, or just $glxgears to use the integrated (intel) one.

nouveau.runpm=0 disables the automatic power up/down. You might want to experiment if things work without it.
Comment 13 Stuart Axon 2015-07-09 22:34:51 UTC
glxgears seems to work, glxspheres showed a black window


glxgears - no prime, works
$ 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) Ivybridge Mobile 
GL_VERSION    = 3.0 Mesa 10.7.0-devel (git-9565e34 2015-07-04 vivid-oibaf-ppa)
GL_VENDOR     = Intel Open Source Technology Center
GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_clear_buffer_object GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_multi_bind GL_ARB_seamless_cubemap_per_texture GL_ARB_texture_mirror_clamp_to_edge GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_INTEL_performance_query GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_derivative_control GL_ARB_pipeline_statistics_query GL_EXT_polygon_offset_clamp GL_KHR_context_flush_control 
VisualID 215, 0xd7
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 1337 requests (1337 known processed) with 0 events remaining.



glxgears - prime, works
DRI_PRIME=1 glxgears -info
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
GL_RENDERER   = Gallium 0.4 on NVE7
GL_VERSION    = 3.0 Mesa 10.7.0-devel (git-9565e34 2015-07-04 vivid-oibaf-ppa)
GL_VENDOR     = nouveau
GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_fog_distance GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_texture_barrier GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_precision GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_NV_vdpau_interop GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_clear_buffer_object GL_ARB_explicit_uniform_location GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_stencil_texturing GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_ARB_buffer_storage GL_ARB_multi_bind GL_ARB_seamless_cubemap_per_texture GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_derivative_control GL_ARB_pipeline_statistics_query GL_ARB_texture_barrier GL_EXT_polygon_offset_clamp GL_KHR_context_flush_control 
VisualID 215, 0xd7


glxspheres without prime, works:

$ /opt/VirtualGL/bin/glxspheres64 
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0xd7
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Ivybridge Mobile 
62.931289 frames/sec - 70.231319 Mpixels/sec
59.957172 frames/sec - 66.912204 Mpixels/sec
59.935004 frames/sec - 66.887464 Mpixels/sec
60.527296 frames/sec - 67.548463 Mpixels/sec
59.995838 frames/sec - 66.955355 Mpixels/sec
60.004534 frames/sec - 66.965059 Mpixels/sec


glxspheres with prime, has black window:

$ DRI_PRIME=1 /opt/VirtualGL/bin/glxspheres64 
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0xd7
Context is Direct
OpenGL Renderer: Gallium 0.4 on NVE7
591.549318 frames/sec - 660.169039 Mpixels/sec
590.910468 frames/sec - 659.456083 Mpixels/sec
590.470718 frames/sec - 658.965321 Mpixels/sec
591.435418 frames/sec - 660.041926 Mpixels/sec
591.123774 frames/sec - 659.694132 Mpixels/sec
590.733668 frames/sec - 659.258773 Mpixels/sec
590.989291 frames/sec - 659.544049 Mpixels/sec
591.200122 frames/sec - 659.779336 Mpixels/sec
Comment 14 Stuart Axon 2015-07-09 22:46:33 UTC
Created attachment 117025 [details]
glxdemo with dri prime looks a bit glitchy

Just noticed this glitchyness.
Comment 15 Stuart Axon 2015-10-03 07:34:57 UTC
Changing the intel driver to use SNA seems to have fixed the black window problem AND the glitchyness in glxdemo when using DRI_PRIME=1


I followed advice here
https://ask.fedoraproject.org/en/question/32960/black-windows-in-gnome-3-suddenly/

and set /etc/X11/xorg.conf to this below.

- anyone on optimnus having similar problems should probably try this.  - In the meantime this bug can be closed.




Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "AccelMethod" "sna"
EndSection


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.