http://bugs.winehq.org/show_bug.cgi?id=12944
Summary: AvP1 Demo (Alien): vertical line and flicker artifacts Product: Wine Version: 0.9.61. Platform: PC URL: http://www.fileplanet.com/10556/10000/fileinfo/Aliens- vs.-Predator-(Alien-Demo) OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: liquid.acid@gmx.net
Created an attachment (id=12678) --> (http://bugs.winehq.org/attachment.cgi?id=12678) screenshot from the intro sequence, notice the vertical lines
Hi there,
I've set the component to d3d because that's most likely the thing where the problem originates problem. I'm not completly sure about it, so if someone can identify a different component then please switch it.
The problems are visual errors in the old DirectX game AvP1 (the alien demo).
Both vertical lines of different color appear and flickering artifacts. See the screenshots for a better explanation.
The problem does not only appear with AvP1 but also with the System Shock 2 demo, but there we have some more problems.
The demo is free to download from FilePlanet (you just need a (free) account). I didn't try finding other mirrors.
I also want to point out that the number of lines on the screen seems to be related to the overall brightness of the screen content. During the startup sequence of the AvP1 demo a movie is played, producing a sort of lightning effect which illuminates the screen and therefore increases brightness a lot. During this lightning the number of lines explodes.
I'm still trying to capture this, but I'm having a hard time finding the right moment to take a screenshot.
Tests were done on a i915 with: mesa-7.0.3 xf86-video-intel-2.3.0
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #1 from Roderick Colenbrander thunderbird2k@gmx.net 2008-05-03 16:05:45 --- Most likely this is the same issue as you saw in System Shock II namely a PBO bug. Try to disable GL_ARB_pixel_buffer_object by commenting the extension line in dlls/wined3d/directx.c. See if that helps.
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #2 from Tobias Jakobi liquid.acid@gmx.net 2008-05-03 16:06:01 --- Created an attachment (id=12679) --> (http://bugs.winehq.org/attachment.cgi?id=12679) a screenshot from the flash effect i mentioned
however i failed to capture the moment the amount of vertical lines exploded
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #3 from Tobias Jakobi liquid.acid@gmx.net 2008-05-03 16:08:18 --- Created an attachment (id=12681) --> (http://bugs.winehq.org/attachment.cgi?id=12681) screenshot showing the second artifact type
additionaly to the vertical lines comes this horizontal visual garbage the second artifact is present all the time, it's flickering so you don't see it on all screenshots (frequency isn't very high though)
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #4 from Tobias Jakobi liquid.acid@gmx.net 2008-05-03 16:09:51 --- Created an attachment (id=12682) --> (http://bugs.winehq.org/attachment.cgi?id=12682) screenshot from the outro sequence
notice how the amount of lines and color changed
http://bugs.winehq.org/show_bug.cgi?id=12944
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jb.faq@gmx.de
--- Comment #5 from Tobias Jakobi liquid.acid@gmx.net 2008-05-03 16:11:36 --- glxinfo output:
name of display: :0.0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.2 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_visual_select_group client glx vendor string: SGI client glx version string: 1.4 client glx extensions: GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, 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 version: 1.2 GLX extensions: GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group OpenGL vendor string: Tungsten Graphics, Inc OpenGL renderer string: Mesa DRI Intel(R) 915GM 20061017 x86/MMX/SSE2 OpenGL version string: 1.3 Mesa 7.0.3 OpenGL extensions: GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_point_parameters, 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_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, 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_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint, GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_histogram, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_EXT_subtexture, GL_EXT_texture, 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_texture_rectangle, GL_EXT_vertex_array, GL_3DFX_texture_compression_FXT1, GL_APPLE_client_storage, GL_APPLE_packed_pixels, GL_ATI_blend_equation_separate, GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent, GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program, GL_NV_vertex_program1_1, GL_OES_read_format, GL_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SUN_multi_draw_arrays
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 ---------------------------------------------------------------------- 0x23 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x24 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x25 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x26 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x27 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x28 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x29 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x2a 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x2b 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x2c 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None 0x2d 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x2e 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x2f 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x30 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow 0x31 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x32 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x65 32 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 Ncon
@Roderick: the driver doesn't expose PBO and FBO extensions, so it won't make any difference disabling this cap in the source, right?
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #6 from Roderick Colenbrander thunderbird2k@gmx.net 2008-05-03 16:31:58 --- Correct, though I really expect this to be a driver bug ...
http://bugs.winehq.org/show_bug.cgi?id=12944
Alexander Dorofeyev alexd4@inbox.lv changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexd4@inbox.lv
--- Comment #7 from Alexander Dorofeyev alexd4@inbox.lv 2008-05-03 16:44:42 --- I also have a feeling it's the driver. Strange that it's happening in particular stages in game though(I understand it so that AVP doesn't have this in game). Perhaps, it's render target locking that triggers this problem? Maybe it can be checked by setting RenderTargetLockMode=disable in registry.
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #8 from Tobias Jakobi liquid.acid@gmx.net 2008-05-03 17:06:51 --- I disabled the RenderTargetLock and now I get this: err:d3d_surface:IWineD3DSurfaceImpl_UnlockRect The application tries to write to the render target, but render target locking is disabled
However I also tried setting the mode to textex: What can I say?! It works, the vertical lines are gone and also the flickering artifacts are not there anymore. Furthermore the performance is greatly improved. The video playback does not skip anymore and input reaction is fast and precise in the game menu.
The only thing related to the locking mode is: fixme:d3d_surface:IWineD3DSurfaceImpl_LockRect Reading from render target with a texture isn't implemented yet, falling back to framebuffer reading
Now what do you guys say? Should I report this to the mesa team? Or could it nevertheless be a wine bug?
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #9 from Roderick Colenbrander thunderbird2k@gmx.net 2008-05-04 07:45:03 --- textex isn't implemented in wine (it just falls back to readtex). Just set the option to readtex which is fine.
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #10 from Tobias Jakobi liquid.acid@gmx.net 2008-05-04 17:28:09 --- After updating my drivers (see this bug for details: http://bugs.winehq.org/show_bug.cgi?id=12557) the vertical line artifacts with RenderTargetLockMode set to auto are gone.
The (horizontal) flicker artifacts are still there, but only during the first frames (see new screenshot for infos). As soon as the "real movie" beings these are also gone.
With readtex everything is fine.
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #11 from Tobias Jakobi liquid.acid@gmx.net 2008-05-04 17:29:57 --- Created an attachment (id=12720) --> (http://bugs.winehq.org/attachment.cgi?id=12720) horizontal flicker is still there
during this part of the intro sequence the flickering artifacts are still there RenderTargetLockMode is set to auto
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #12 from Jan Buecken jb.faq@gmx.de 2008-05-15 07:50:52 --- Hi, I only want to mention that there is no problem on my nvidia card with nvidia-drivers.
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #13 from Tobias Jakobi liquid.acid@gmx.net 2008-05-15 08:24:26 --- Problem also appears on Intel i945 (mesa-6.5.2). There also during the entire intro sequence (and not only the first frames). Tested with RenderTargetLockMode set to auto.
With LIBGL_ALWAYS_INDIRECT=1 the problem is gone.
Still a driver bug? I'm reporting this on the mesa bugtracker.
http://bugs.winehq.org/show_bug.cgi?id=12944
Tobias Jakobi liquid.acid@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #14 from Tobias Jakobi liquid.acid@gmx.net 2008-06-19 15:29:15 --- Closing this one.
I can no longer reproduce the problem. My currently installed wine version is 1.0. I think it was a i915 graphics driver bug, and I further think that this (http://gitweb.freedesktop.org/?p=mesa/mesa.git;a=commit;h=cf29ab3ba075905cca...) might have fixed it.
Cheers, Tobias
http://bugs.winehq.org/show_bug.cgi?id=12944
Alexander Dorofeyev alexd4@inbox.lv changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID
--- Comment #15 from Alexander Dorofeyev alexd4@inbox.lv 2008-06-19 15:44:56 --- Yes I guess a driver bug, so better to resolve as invalid, because we didn't really fix anything in Wine :).
http://bugs.winehq.org/show_bug.cgi?id=12944
--- Comment #16 from Tobias Jakobi liquid.acid@gmx.net 2008-06-19 15:54:05 --- OK Alexander, thanks :-)
http://bugs.winehq.org/show_bug.cgi?id=12944
Alexander Dorofeyev alexd4@inbox.lv changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexander Dorofeyev alexd4@inbox.lv 2008-06-20 08:47:12 --- should be closed now, i guess