Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164012 - games-simulation/openttd pseudotransparent instead of solid color w/ libsdl-1.2.11 and ATI videocard
Summary: games-simulation/openttd pseudotransparent instead of solid color w/ libsdl-1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL: http://apollo.dq.fct.unl.pt/~al1133/t...
Whiteboard: fixed with ati-drivers-8.32.5
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-27 02:18 UTC by Renato Alves
Modified: 2007-01-29 17:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-libs/libsdl-1.2.11-r1.ebuild (libsdl-1.2.11-r1.ebuild,4.78 KB, text/plain)
2007-01-27 10:35 UTC, Sergey Belyashov
Details
files/libsdl-1.2.11-asm-blit-fix.patch (libsdl-1.2.11-asm-blit-fix.patch,568 bytes, patch)
2007-01-27 10:36 UTC, Sergey Belyashov
Details | Diff
openttd pseudo-transparency screenshot 1 (screen1.jpg,95.41 KB, image/jpeg)
2007-01-27 20:53 UTC, Renato Alves
Details
openttd pseudo-transparency screenshot 2 (screen2.jpg,86.33 KB, image/jpeg)
2007-01-27 20:53 UTC, Renato Alves
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Renato Alves 2007-01-27 02:18:16 UTC
This is a problem I noticed in at least two games. Both based on SDL.

My machine is: Pentium M 2.0GHz, 1Gb RAM, ATI X700 256Mb

libsdl-1.2.11 flags are (X aalib alsa libcaca opengl xv)

xorg-server-1.1.1-r4 flags are (aiglx dri input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 nptl sdl video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa xorg)

ati-drivers-8.30.3-r1

The games where I noticed that this happens are openttd [in portage] (in a small menu) and paraball [http://ahuh.free.fr/paraball/] (the whole background).

So far I have tested the games only in my PC and another with an nvidia graphic card. This problem didn't occur in the nvidia pc.

Another thing I noticed is that if I try to screenshot the window it only displays the 'background', while usually should display the 'background' and the other graphics... Dunno why this happens. Here is a screenshot: http://img296.imageshack.us/my.php?image=shot4cc.png

I did a cam movie showing the pseudo-transparency problem and the corruption that happens when some window passes over it. This was made with fluxbox but I already excluded the possibility of being WM related. http://apollo.dq.fct.unl.pt/~al1133/thabug.avi

I'm not sure if this is an SDL, X.org or ATI specific problem! I tested this with the opensource drivers and the problem persisted. Rebuild libsdl and nothing changed...

So either some weird flag is missing or this is specific to ATI...

If someone with ATI graphics could test this and see if the same happens, or else any info or help will be extremely welcome.

Thanks in advance

Reproducible: Always
Comment 1 Sergey Belyashov 2007-01-27 10:35:09 UTC
This is SDL-1.2.11 (also may be 1.2.10 and 1.2.9) problem. SVN version of SDL 1.2 branch is fixed. You can get patch for libsdl-1.2.11 here: http://www.libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/src/video/SDL_blit_A.c?r1=2781&r2=2914&view=patch
I create libsdl-1.2.11-r1.ebuild in my local overlay which fixes it.
Comment 2 Sergey Belyashov 2007-01-27 10:35:54 UTC
Created attachment 108266 [details]
media-libs/libsdl-1.2.11-r1.ebuild
Comment 3 Sergey Belyashov 2007-01-27 10:36:30 UTC
Created attachment 108267 [details, diff]
files/libsdl-1.2.11-asm-blit-fix.patch
Comment 4 Renato Alves 2007-01-27 15:03:06 UTC
(In reply to comment #2)
> Created an attachment (id=108266) [edit]
> media-libs/libsdl-1.2.11-r1.ebuild
> 

This did not fix the problem. Rebuilt libsdl with the patch, and openttd. The problem was still there... Any other suggestions? flags maybe?
Comment 5 Sergey Belyashov 2007-01-27 16:08:53 UTC
I have not any problems with openttd. Can you post openttd screenshot and how to produce this bug?
I cannot recompile paraball for amd64 platform (because I do not known what compiler needed).
Also try to downgrade libsdl to 1.2.8 version.

P.S.: I have nvidia video card.
Comment 6 Renato Alves 2007-01-27 20:51:44 UTC
I Used GIMP to do the rainbow image that was behind the openttd one. The menu in the screen is the music one.

I had to use a cam to take the pic, the screenshot approach didn't show the rainbow, instead showed a black screen. The song's title was clear in white without any corruption.

About paraball, it seems that the compiler used is fenix [http://fenix.divsite.net/index.php?opcion=1&lang=en].

Strangely I cannot compile any of the previous versions. They all fail at some point. libsdl-1.2.7-r3 fails when addressing something about libcaca. But even without the libcaca and aalib flags it fails.

Comment 7 Renato Alves 2007-01-27 20:53:15 UTC
Created attachment 108309 [details]
openttd pseudo-transparency screenshot 1
Comment 8 Renato Alves 2007-01-27 20:53:55 UTC
Created attachment 108311 [details]
openttd pseudo-transparency screenshot 2
Comment 9 Renato Alves 2007-01-27 20:58:21 UTC
Btw recompiling aalib and libcaca didn't solve the libsdl compilation problem.
Comment 10 Renato Alves 2007-01-27 21:09:33 UTC
My mistake ... sorry about that. It seems that the libcaca flag was still active and that breaks all (stable) before libsdl-1.2.11

built libsdl 1.2.7-r3 and rebuilt openttd, but no change.

Any ideas?

I'm getting the feeling that this really has something to do with ATI graphics cards...
Comment 11 Renato Alves 2007-01-28 18:35:49 UTC
Did a bit more testing with some friends with opensource vs fglrx drivers and the conclusion is... ati-drivers are guilty!

The opensource drivers don't display the corruption.

I won't close the bug atm. New ati-drivers or libsdl might solve this problem, in the meantime wait...

Thanks for all of you that spent some time trying to work around this bug.
Comment 12 Sergey Belyashov 2007-01-29 09:29:35 UTC
I try to check it.
I try both libsdl-1.2.8 and libsdl-1.2.11-r1 (which in portage).
I try both ati-drivers and xorg-x11 drivers.
OpenTTD works fine. No corruptions found.
Comment 13 Renato Alves 2007-01-29 15:51:05 UTC
(In reply to comment #12)
> I try to check it.
> I try both libsdl-1.2.8 and libsdl-1.2.11-r1 (which in portage).
> I try both ati-drivers and xorg-x11 drivers.
> OpenTTD works fine. No corruptions found.
> 

Can you post your xorg.conf? I' not sure if any option could change the behavior but I will test all possibilities.

I haven't tested the latest ati-drivers (8.32.5) cause X doesn't start with those.. Only tested 8.30.3-r1. The stable drivers don't build in my system.
 
Comment 14 Renato Alves 2007-01-29 17:54:11 UTC
I was able to install ati-drivers-8.32.5 without locking up X... it used to lock up after loading some dockapps dunno why. I've been messing with xorg.conf and something went right :)

After installation tested the drivers and the problem is gone. openttd and paraball are corruption clean.

Thank you Sergey Belyashov for all your help on this.