You are not logged in.

#1 2012-08-01 21:50:45

LordChaos73
Member
From: .nl
Registered: 2008-11-11
Posts: 118

[SOLVED] Full screen flash video tearing - intel sna acceleration

Hi,

Using the following hardware and packages below:

[ericd@vaiopro13 ~]$ lspci |grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Seymour XT/PRO [Radeon HD 7400M Series] (rev ff)
intel-dri 8.0.4-2
libva-driver-intel 1.0.18-1
xf86-video-intel 2.20.2-2
[ericd@vaiopro13 ~]$ cat /etc/X11/xorg.conf.d/20-intel.conf                                                                                                                                     
Section "Device"                                                                                                                                                                                
    Identifier  "Intel Graphics"                                                                                                                                                                
    Driver      "intel"                                                                                                                                                                         
    Option      "AccelMethod"  "sna"                                                                                                                                                            
EndSection

I´m experiencing the following:

I have disabled the discrete GPU using vgaswitcheroo and I'm using KDE (with OpenGL desktop effects & vsync) as my main desktop.
When watching full screen flash videos, there's noticable tearing. Switching to uxa acceleration doesn't make any difference, neither does disabling flash hardware acceleration in /etc/adobe/mms.cfg.

The only thing that seems to help funnily enough, is disabling vsync in KDE, which doesn't make any sense to me.
I have no issues watching any other type of video, this seems related to Flash videos only.

I'd like to know if anybody else, with a similar setup, is also experiencing this kind of behaviour.

Last edited by LordChaos73 (2012-08-08 05:54:15)

Offline

#2 2012-08-03 06:06:38

Hspasta
Member
Registered: 2011-12-24
Posts: 187
Website

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Experiencing tearing with vsync in general is a common thing. Any reason you must have it on?

Last edited by Hspasta (2012-08-03 06:06:50)

Offline

#3 2012-08-03 06:23:39

LordChaos73
Member
From: .nl
Registered: 2008-11-11
Posts: 118

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

And I thought having vsync enabled should minimize tearing...I guess I was wrong. No reason to have it enabled, no. I'm wondering if KDE enables it by default since I can't remember switching it on.

Offline

#4 2012-08-03 13:07:50

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

In Mageia KDE, I have to have vsync turned on to eliminate tearing.  For Arch, I am using XFCE with compiz.  This is on a ThinkPad X220 with Intel HD3000 graphics.

Tried full screen flash with the default uxa and also with sna.  Both run virtually free of tearing on a youtube video that I use for a test (I set the quality to 480p and run fullscreen).
http://www.youtube.com/watch?v=OhVlFna5DPQ

Some other info that you can compare to yours.
A line from /var/log/Xorg.0.log

[    12.928] (II) intel(0): SNA initialized with SandyBridge backend
$ glxinfo
name of display: :0.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_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_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, 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_multithread_makecurrent, 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
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL version string: 3.0 Mesa 8.0.4
OpenGL shading language version string: 1.30
OpenGL 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_SUN_multi_draw_arrays, GL_ARB_texture_border_clamp, 
    GL_ARB_texture_compression, GL_EXT_framebuffer_object, 
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_MESA_window_pos, 
    GL_NV_packed_depth_stencil, GL_NV_texture_rectangle, GL_NV_vertex_program, 
    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_ATI_envmap_bumpmap, GL_EXT_stencil_two_side, 
    GL_EXT_texture_cube_map, GL_NV_depth_clamp, GL_NV_vertex_program1_1, 
    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_MESA_ycbcr_texture, 
    GL_ARB_depth_clamp, GL_ARB_fragment_program_shadow, 
    GL_ARB_half_float_pixel, 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_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_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_MESA_texture_array, GL_ARB_copy_buffer, 
    GL_ARB_depth_buffer_float, GL_ARB_half_float_vertex, 
    GL_ARB_map_buffer_range, GL_ARB_texture_rg, GL_ARB_texture_swizzle, 
    GL_ARB_vertex_array_bgra, GL_EXT_separate_shader_objects, 
    GL_EXT_texture_swizzle, GL_EXT_vertex_array_bgra, 
    GL_NV_conditional_render, GL_ARB_ES2_compatibility, 
    GL_ARB_draw_elements_base_vertex, GL_ARB_explicit_attrib_location, 
    GL_ARB_fragment_coord_conventions, GL_ARB_provoking_vertex, 
    GL_ARB_sampler_objects, GL_ARB_seamless_cube_map, 
    GL_ARB_shader_texture_lod, GL_EXT_provoking_vertex, GL_EXT_texture_snorm, 
    GL_MESA_texture_signed_rgba, GL_ARB_robustness, GL_EXT_transform_feedback
{clipped remaining output}
$ vainfo
libva: VA-API version 0.33.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: Found init function __vaDriverInit_0_33
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.33 (libva 1.1.0)
vainfo: Driver version: Intel i965 driver - 1.0.18
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Baseline           :	VAEntrypointVLD
      VAProfileH264Baseline           :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD

EDIT:  Just booted Mageia KDE.  I see I have desktop effects turned on, using VSync, using OpenGL 2 Shaders, using OpenGL compositing.

EDIT2:  Yes, I see that just as you report regarding KDE (Mageia 2 here), I have tearing on viewing flash videos in my browser, but no tearing viewing the same video with VLC.  This is not the case using XFCE with compiz (no tearing).  Same laptop in both cases.

Last edited by David Batson (2012-08-03 13:41:47)

Offline

#5 2012-08-03 13:54:34

LordChaos73
Member
From: .nl
Registered: 2008-11-11
Posts: 118

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Hi,

When I disable vsync in KDE I have quite some tearing when moving Dolphin windows, for example.

I have compared your setup to mine, and it is the same. Laptop is different though, this one is a Vaio VPCSB36FG.

Cheers,

Eric

Offline

#6 2012-08-04 14:19:34

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

VSync should be turned on.

Experimenting a little more in Mageia 2 KDE, I find that checking the box: Desktop Effects > Advanced > Suspend desktop effects for fullscreen windows - makes an improvement for full screen flash videos.  It's still not quite as smooth as Arch XFCE w/compiz, but it's not bad.

Offline

#7 2012-08-05 15:10:26

LordChaos73
Member
From: .nl
Registered: 2008-11-11
Posts: 118

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Hi David,

Checking that box doesn't seem to have that much effect on my Arch KDE setup, but thank you for the suggestion anyway.
By the way, this is the video I'm using to test various options:

http://tweakers.net/video/5980/medal-of … ghter.html

Cheers,

Eric

Last edited by LordChaos73 (2012-08-05 15:35:52)

Offline

#8 2012-08-05 15:34:55

bwat47
Member
Registered: 2009-10-07
Posts: 637

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Hspasta wrote:

Experiencing tearing with vsync in general is a common thing. Any reason you must have it on?

vsync's function is to *eliminate* tearing.

Offline

#9 2012-08-05 15:38:49

kokoko3k
Member
Registered: 2008-11-14
Posts: 1,447

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Offline

#10 2012-08-07 17:34:11

LordChaos73
Member
From: .nl
Registered: 2008-11-11
Posts: 118

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Same situation using KDE 4.9.0, no significant changes.

Offline

#11 2012-08-07 20:59:08

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

I went back to Desktop Effects > Advanced.  Now I am using the following settings:

Compositing type: OpenGL
Keep window thumbnails: Only for Shown Windows
Scale method: Accurate
unchecked - Suspend desktop effects for fullscreen windows
unchecked - Use OpenGL 2 Shaders
checked - Use VSync

Seems to be no tearing now.  I believe unchecking "Use OpenGL 2 Shaders" was the key.
http://userbase.kde.org/Desktop_Effects … GL_Version

Offline

#12 2012-08-08 05:52:58

LordChaos73
Member
From: .nl
Registered: 2008-11-11
Posts: 118

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Yes! Disabling the 'OpenGL 2 shaders' did the trick! Thank you, marking as solved.

Offline

#13 2012-08-08 09:26:33

kokoko3k
Member
Registered: 2008-11-14
Posts: 1,447

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Cool, with sna i'm having tearing all over the desktop, i'll try disabling it too.

Offline

#14 2012-08-29 13:46:48

LordChaos73
Member
From: .nl
Registered: 2008-11-11
Posts: 118

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Using the following components the default KDE settings can be maintained and tearing has disappeared altogether (only tested in Firefox 15 so far):

local/flashplugin 11.2.202.238-1
local/intel-dri 8.0.4-2
local/libva-driver-intel 1.0.18-1
local/xf86-video-intel 2.20.5-1 (xorg-drivers xorg)

p.s. sna acceleration is _enabled_

Last edited by LordChaos73 (2012-08-29 13:48:02)

Offline

#15 2012-09-13 02:51:42

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

When I try to disable 'OpenGL 2 shaders' I get an error saying that desktop effects can't be started with the configured options and it just reverts to having them enabled. Did this happen to anyone else? (Maybe I have a problematic combo but... what exactly...?)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#16 2012-09-13 12:59:38

Haikarainen
Member
Registered: 2012-09-04
Posts: 90

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Why are you using Intel rendering when you have an AMD GPU? I might be mistaken but Ivy/Sandy bridge should not work with AMD GPUs?

Offline

#17 2012-09-13 22:14:32

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: [SOLVED] Full screen flash video tearing - intel sna acceleration

Haikarainen wrote:

Why are you using Intel rendering when you have an AMD GPU? I might be mistaken but Ivy/Sandy bridge should not work with AMD GPUs?

Who is this addressed to?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

Board footer

Powered by FluxBB