Bug 219178 - the "invert effect" of kwin doesn't work with fglrx and can't be "activated"
Summary: the "invert effect" of kwin doesn't work with fglrx and can't be "activated"
Status: RESOLVED DUPLICATE of bug 173556
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-18 13:52 UTC by Mat
Modified: 2011-03-31 18:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mat 2009-12-18 13:52:40 UTC
Version:           4.3.80 (using Devel)
Compiler:          gcc 4.4.2 
OS:                Linux
Installed from:    Compiled sources

when enabling the "invert" effect in systemsettings under the "All effects" tab kwin says that it (the effect) can't / couldn't be activated

when starting kwin from the console and looking at its output it says:

kwin(8138) KWin::Workspace::slotReconfigure: Workspace::slotReconfigure()
kwin(8138) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x
"4"  render: 0x "a"  fixes: 0x "40"
kwin(8138) KWin::CompositingPrefs::detect: glx version is  1 . 4
kwin(8138) KWin::CompositingPrefs::detectDriverAndVersion: GL vendor is "ATI
Technologies Inc."
kwin(8138) KWin::CompositingPrefs::detectDriverAndVersion: GL renderer is "ATI
Radeon HD 5700 Series"
kwin(8138) KWin::CompositingPrefs::detectDriverAndVersion: GL version is "1.4
(2.1.9116)"
kwin(8138) KWin::CompositingPrefs::detectDriverAndVersion: XGL: no
kwin(8138) KWin::CompositingPrefs::detectDriverAndVersion: Detected driver
"fglrx" , version "2.1.9116"
kwin(8138) KWin::CompositingPrefs::applyDriverSpecificOptions: fglrx >=
2.1.7412, enabling compositing
kwin(8138) KDecorationPlugins::loadPlugin: kwin : path 
"/usr/lib64/kde4/kwin3_crystal.so"  for  "kwin3_crystal"
kwin(8138) KWin::EffectsHandlerImpl::loadEffect: Trying to load 
"kwin4_effect_invert"
kwin(8138) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect :
Effect  "kwin4_effect_invert"  is not supported 
kwin(8138)/kdeui (KNotification) KNotification::slotReceivedId: 0
kwin(8138)/kdeui (KNotification) KNotification::close: 0
kwin(8138)/kdeui (KNotification) KNotification::~KNotification: -2

this has been happening with several versions of fglrx / the AMD/ATI Catalyst driver up to 9.11 (haven't tested 9.12 yet)


the needed extensions are available so it could be a bug with kwin:

glxinfo | grep -iE '(shad)|(string)'

server glx vendor string: ATI
server glx version string: 1.4
client glx vendor string: ATI
client glx version string: 1.4
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 5700 Series
OpenGL version string: 2.1.9116
OpenGL shading language version string: 1.40
    GL_AMDX_random_access_target, GL_AMDX_vertex_shader_tessellator, 
    GL_AMD_vertex_shader_tessellator, GL_ARB_color_buffer_float, 
    GL_ARB_fragment_program, GL_ARB_fragment_program_shadow, 
    GL_ARB_fragment_shader, GL_ARB_framebuffer_object, 
    GL_ARB_framebuffer_sRGB, GL_ARB_geometry_shader4, GL_ARB_half_float_pixel, 
    GL_ARB_seamless_cube_map, GL_ARB_shader_objects, 
    GL_ARB_shader_texture_lod, GL_ARB_shading_language_100, GL_ARB_shadow, 
    GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp, 
    GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos, 
    GL_ATI_draw_buffers, GL_ATI_envmap_bumpmap, GL_ATI_fragment_shader, 
    GL_EXT_geometry_shader4, GL_EXT_gpu_program_parameters, 
    GL_EXT_gpu_shader4, GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil, 
    GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_EXT_subtexture,

--------------------------------------------------------------------------------------

more information:

http://ati.cchtml.com/show_bug.cgi?id=1713
Comment 1 Martin Flöser 2009-12-18 14:19:39 UTC
A known problem of the ATi driver

*** This bug has been marked as a duplicate of bug 173556 ***
Comment 2 Thomas Mitterfellner 2011-03-31 15:11:39 UTC
The link mentioned above (http://ati.cchtml.com/show_bug.cgi?id=1713) is dead. I cannot find any information at the ati/amd site that this is a bug in the driver. More than a year has passed since this has been reported. With the most recent version of the fglrx driver (11.3/8.831.2-1), the invert effect still cannot be enabled.

OpenGL vendor string:                   ATI Technologies Inc.
OpenGL renderer string:                 ATI Radeon HD 4300/4500 Series       
OpenGL version string:                  1.4 (3.3.10600 Compatibility Profile Context)
Driver:                                 Catalyst
Driver version:                         1.4
GPU class:                              R700
OpenGL version:                         1.4
X server version:                       1.9.3
Linux kernel version:                   2.6.37
Direct rendering:                       no
Requires strict binding:                yes
GLSL shaders:                           no
Texture NPOT support:                   yes
kwin(15455) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_invert"  is not supported

Can anyone familiar with the reasons for this problem point me to some information about it? I can't believe it's so hard for the ati/amd guys to fix this.
Comment 3 Thomas Lübking 2011-03-31 16:07:44 UTC
just read through the dupe or
gg:fglrx glsl
and click through the results - much fun reading.

you should be able to enforce direct rendering by exporting KWIN_DIRECT_GL=1

general help for dri:
https://wiki.archlinux.org/index.php/ATI_Catalyst#Direct_Rendering_Doesn.27t_Work

but notice that arch has actually dropped catalyst for its lousy quality ;-P
http://www.archlinux.org/news/ati-catalyst-support-dropped/

use the Xorg driver if it works for you. seriously.
Comment 4 Martin Flöser 2011-03-31 16:34:57 UTC
> you should be able to enforce direct rendering by exporting
> KWIN_DIRECT_GL=1
that works, but trust me it is so slow that you don't want to use it.
Comment 5 Thomas Mitterfellner 2011-03-31 18:10:55 UTC
(In reply to comment #3)
> use the Xorg driver if it works for you. seriously.

I just did that – invert works, track mouse works, zooming works. Thank you very much for that hint!

with fglrx and KWIN_DIRECT_GL=1 kwin --replace I can also make these effects work. Direct rendering with fglrx is slow indeed.

I guess I'll be using the radeon driver now hoping that one day its 3D features will mature over time as to support glossy shading in my favourite molecular modeling application UCSF chimera.