Bug 33592 - everything is upside down when KDE desktop effects are enabled
Summary: everything is upside down when KDE desktop effects are enabled
Status: RESOLVED WORKSFORME
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Kenneth Graunke
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-27 06:52 UTC by Ronny Standtke
Modified: 2011-07-16 05:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
screenshot showing the issue (989.96 KB, image/png)
2011-01-27 06:52 UTC, Ronny Standtke
Details
Patch from Henri Verbeet that may fix the issue. (2.72 KB, patch)
2011-03-02 15:16 UTC, Kenneth Graunke
Details | Splinter Review
spec file for Mesa (43.45 KB, text/x-rpm-spec)
2011-05-27 03:27 UTC, aug04acc
Details
changes to original spec file (1.32 KB, patch)
2011-05-27 03:27 UTC, aug04acc
Details | Splinter Review
my installed packages 'pkg_list.gz' (31.69 KB, application/x-gzip)
2011-05-27 03:28 UTC, aug04acc
Details
Xorg.0.log file with applied patch (24.07 KB, application/octet-stream)
2011-05-27 03:29 UTC, aug04acc
Details
'xorg.conf' file used to test patch (2.60 KB, application/octet-stream)
2011-05-27 03:30 UTC, aug04acc
Details

Description Ronny Standtke 2011-01-27 06:52:46 UTC
Created attachment 42592 [details]
screenshot showing the issue

I have two machines:
The first one is a tower machine with a NVIDIA graphics card (GeForce 6200)
where all my users and applications are set up and XDMCP is enabled:
 - set Enable=true in the [Xdmcp] section of /etc/kde4/kdm/kdmrc
 - uncomment the following line in /etc/kde4/kdm/Xaccess
#*    #any host can get a login window

The second machine is a Dell Optiplex SX280, serving as a thin
client:
 - disable kdm (mv /etc/init/kdm.conf /etc/init/kdm.conf.not)
 - create /etc/init/thinclient.conf as follows:
----------------
start on net-device-up
stop on runlevel [016]
exec X -broadcast
---------------- 

Some info about the graphics board of my Dell Optiplex:

lspci:
00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated
Graphics Controller (rev 04)

lspci -n:
00:02.0 0300: 8086:2582 (rev 04)

When I log in at the thin client, everything is upside down (see attachment). Only if I disable desktop effects, the issue is not triggered.
Comment 1 Chris Wilson 2011-01-27 07:06:24 UTC
Can you also switch between 'xrender' and 'gl' based desktop effects and see if the problem persists?
Comment 2 Ronny Standtke 2011-01-27 12:21:47 UTC
Indeed, the problem does not show up when using xrender based desktop effects.
Comment 3 Chris Wilson 2011-01-28 10:41:26 UTC
A continuation of bug 24084?
Comment 4 Ronny Standtke 2011-01-28 11:10:27 UTC
(In reply to comment #3)
> A continuation of bug 24084?

I don't really know, I am just a mortal user, no developer, but the issue looks very similar.
Comment 5 Kenneth Graunke 2011-03-02 15:16:54 UTC
Created attachment 44039 [details] [review]
Patch from Henri Verbeet that may fix the issue.

Henri Verbeet recently sent a patch to the mailing list that looks like it may fix this issue.  Could you please test it?
Comment 6 Ronny Standtke 2011-03-03 22:44:44 UTC
> Could you please test it?

Unfortunately, I currently lack both the skills and time to test this patch. I don't even know where to start... But I am motivated to help. Do you have simple step-by-step instructions how to test this patch?
Comment 7 aug04acc 2011-05-27 03:25:42 UTC
I have exactly the same problem with slightly different hardware. If I use the
'intel' driver with out composite then the graphics is OK. Enabling composite,
i.e. Option "Composite" "enable", results in the upside down mirrored
behavior, except for the positioning of the panel at the bottom of the
display, see "xorg.conf".

My system is installed with openSUSE 11.4 and uses a i5-2500K CPU with HD 3000
graphics. 


my_srv:~ # lspci -n 
00:00.0 0600: 8086:0100 (rev 09)
00:02.0 0300: 8086:0112 (rev 09)
...

my_srv:~ # lspci 
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
...

Currently I have installed kernel 2.6.39, with Mesa 7.10.2. Some packages from
Tumbleweed and X11:XOrg repository. Full package list and the repositories is
given in "pkg_list.gz". 

Linux my_srv 2.6.39-30-desktop #1 SMP PREEMPT Fri May 20 18:23:02 UTC 2011 (a64b7f7) x86_64 x86_64 x86_64 GNU/Linux

To test the patch I have updated the rpm for Mesa and included the patch, see
"Mesa.spec.diff" and "Mesa.spec".

After I installed the package unfortunately the problem was not resolved.
Comment 8 aug04acc 2011-05-27 03:27:03 UTC
Created attachment 47221 [details]
spec file for Mesa
Comment 9 aug04acc 2011-05-27 03:27:38 UTC
Created attachment 47222 [details] [review]
changes to original spec file
Comment 10 aug04acc 2011-05-27 03:28:14 UTC
Created attachment 47223 [details]
my installed packages 'pkg_list.gz'
Comment 11 aug04acc 2011-05-27 03:29:07 UTC
Created attachment 47224 [details]
Xorg.0.log file with applied patch
Comment 12 aug04acc 2011-05-27 03:30:59 UTC
Created attachment 47225 [details]
'xorg.conf' file used to test patch
Comment 13 Eric Anholt 2011-07-13 11:42:38 UTC
With Mesa 7.10.3, 915GM hardware, I just installed kde 4.6.4 or so from Debian, started X with "startkde", desktop effects were enabled by default, and everything is right side up.  Note that 7.10.3 doesn't have Henri's patch.

I'm going to need some more details on how to reproduce the issue.
Comment 14 Eric Anholt 2011-07-13 17:43:16 UTC
Comment on attachment 44039 [details] [review]
Patch from Henri Verbeet that may fix the issue.

frederikh says that 4.6 doesn't use gl_FragCoord except for the "snow" effect, so it's not going to be this patch.

Still don't know how to reproduce the problem.
Comment 15 aug04acc 2011-07-16 05:25:30 UTC
The problem is now solved for me too. The problem was left over libraries from a Nvidia driver installation. I detected that cause when I typed 

mach@user > glxinfo
name of display: :0
Xlib:  extension "NV-GLX" missing on display ":0".
display: :0  screen: 0
direct rendering: No
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: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync, 
    GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGI_swap_control, GLX_EXT_swap_control, GLX_ARB_create_context, 
    GLX_ARB_create_context_profile, GLX_NV_float_buffer, 
    GLX_ARB_fbconfig_float, GLX_EXT_fbconfig_packed_float, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_framebuffer_sRGB,
    GLX_NV_present_video, GLX_NV_copy_image, GLX_NV_multisample_coverage,
    GLX_NV_video_capture, GLX_EXT_create_context_es2_profile,
    GLX_ARB_create_context_robustness
GLX extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGI_swap_control,
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_ARB_get_proc_address
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Desktop
OpenGL version string: 1.4 (2.1 Mesa 7.10.3)
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
    GL_ARB_fragment_program_shadow, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_point_parameters, GL_ARB_point_sprite,
    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_transpose_matrix,
    GL_ARB_vertex_program, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
    GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_minmax,
    GL_EXT_blend_subtract, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
    GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_texture3D,
    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_vertex_array,
    GL_IBM_texture_mirrored_repeat, GL_NV_blend_square, GL_NV_depth_clamp,
    GL_NV_light_max_exponent, 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_lod
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

***
*** WARNING: Direct Rendering is NOT enabled
***


   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x22 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x90 24 tc  0 24  0 r  .  .  8  8  8  0  0  0  0  0  0  0  0  0 0 None
0x91 24 tc  0 24  0 r  y  .  8  8  8  0  0  0  0  0  0  0  0  0 0 None
0x92 24 tc  0 24  0 r  y  .  8  8  8  0  0  0  0  0  0  0  0  0 0 None
0x93 24 tc  0 24  0 r  .  .  8  8  8  0  0 24  8  0  0  0  0  0 0 None
0x94 24 tc  0 24  0 r  y  .  8  8  8  0  0 24  8  0  0  0  0  0 0 None
0x95 24 tc  0 24  0 r  y  .  8  8  8  0  0 24  8  0  0  0  0  0 0 None
0x96 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x97 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x98 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x99 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x9a 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x9b 24 tc  0 24  0 r  y  .  8  8  8  0  0 24  8  0  0  0  0  0 0 None
0x9c 24 tc  0 24  0 r  y  .  8  8  8  0  0 24  8 16 16 16  0  0 0 Slow
0x9d 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x9e 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x9f 24 dc  0 24  0 r  .  .  8  8  8  0  0  0  0  0  0  0  0  0 0 None
0xa0 24 dc  0 24  0 r  y  .  8  8  8  0  0  0  0  0  0  0  0  0 0 None
0xa1 24 dc  0 24  0 r  y  .  8  8  8  0  0  0  0  0  0  0  0  0 0 None
0xa2 24 dc  0 24  0 r  .  .  8  8  8  0  0 24  8  0  0  0  0  0 0 None
0xa3 24 dc  0 24  0 r  y  .  8  8  8  0  0 24  8  0  0  0  0  0 0 None
0xa4 24 dc  0 24  0 r  y  .  8  8  8  0  0 24  8  0  0  0  0  0 0 None
0xa5 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0xa6 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0xa7 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0xa8 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0xa9 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0xaa 24 dc  0 24  0 r  y  .  8  8  8  0  0 24  8  0  0  0  0  0 0 None
0xab 24 dc  0 24  0 r  y  .  8  8  8  0  0 24  8 16 16 16  0  0 0 Slow
0xac 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0xad 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow


[  1392.041] (WW) intel(0): Option "AllowGLXWithComposite" is not used
[  1392.041] (WW) intel(0): Option "XAANoOffscreenPixmaps" is not used
[  1392.041] (WW) intel(0): Option "AddARGBGLXVisuals" is not used
[  1392.041] (WW) intel(0): Option "DisableGLXRootClipping" is not used
name of display: :0

Definitely, "NV-GLX" was wrong. Then I looked at the open files and saw 

lsof|grep nvidia|sed -e 's@.* \(/.*\)$@\1@'|sort -u
lsof|grep 260.19.36|sed -e 's@.* \(/.*\)$@\1@'|sort -u

that still the three libraries from a former Nvidia driver installation (version 260.19.36 was the latest Nvidia driver I had installed with the Nvidia install script, not rpm package) was present. I assume that they were loaded instead of the Mesa libGL since they might have appeared first in the paths were the system looked for libraries.

/usr/lib64/libnvidia-glcore.so.260.19.36
/usr/lib64/tls/libnvidia-tls.so.260.19.36
/usr/X11R6/lib64/libGL.so.260.19.36

After I removed the directory "/usr/X11R6/lib64" everything is now working for me fine. Thanks for having a look at the problem.


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.