Today out of curiosity I started Battlefield Bad Company 2 with Wine. It started out of the box. However, graphics are a bit broken. Black rectangles are all over the place. They disappear when I change "Effects quality" to "Low" in advanced video settings (all the rest is on High). I don't know if it's the driver's problem or just Wine/DirectX thing, but please have a look.
There is also one element on the screen that is supposed to be a marker of where I should go. Instead of the marker, a part of my desktop is shown. The funny thing is, once I move, it rotates. ;) This is probably related to Radeon or Gallium - the game itself wouldn't be able to capture some content of my desktop I think.
I have Radeon 7870. I'm using Arch Linux with mesa 10.1.2. Using Glamor/Gallium.
(Yes, it's weird what I'm doing.)
Please attach the corresponding Xorg.0.log and output of dmesg and glxinfo.
Are your 32-bit Mesa binaries the same version as the 64-bit ones?
Do you have the 32-bit version of the txc-dxtn or S2TC library installed?
Thank you for digging into my case. Both Mesa and texture compression are installed for both architectures and have the same version.
ati-dri 10.1.3-1 [installed]
lib32-ati-dri 10.1.3-1 [installed]
libtxc_dxtn 1.0.1-5 [installed]
lib32-libtxc_dxtn 1.0.1-5 [installed]
Logs soon to come.
This dmesg is from my linux-grsec kernel, but the same thing happens on vanilla kernel as well.
Another interesting screenshot. Two textures leaking to the game. On the minimap there is a part of my desktop (letters "u" and bold "d" visible). On the right there is something I didn't have on my screen, I don't know what this is.
Please attach files here directly instead of referencing external sites.
Can you create an apitrace which demonstrates the problem?
@Michel, lib32-apitrace is broken in my distro. I will take my time to fix it, and then return to it.
(In reply to comment #5)
> @Michel, lib32-apitrace is broken in my distro. I will take my time to fix
> it, and then return to it.
OK, got the apitrace dump. I also captured a second dump where I set "Effects quality" to "Low" to get rid of the rectangles. Maybe this will help you locate broken GL calls by filtering out good ones from the latter.
You are interested in the calls just from the end of the dump. It takes a while to go through the intro, main menu, game loading etc. to play the game. In each run I did the same - after starting the real game I rotate and take a look at the buggy tree. Then I hit ALT+F4 to immediately close the game. This way the tree, on which rectangles appear in the first dump, is more or less the last thing that happened.
I had to upload it to my server - the files are 1.3GB in total.
http://upload.nowaker.net/nwkr/1400092320_bfbc2-low.trace (no rects)
@Laurent carlier, good to know - thanks! I used lib32-apitrace-git instead. ;)
@Michel, I also found this bug in Tappy Chicken, an Unreal Engine Linux build demo.
Since the game is dead simple, apitrace will probably more usable than from BFBC2. You can find it here:
BTW, now using Mesa 10.2.2.
The apitrace plays back fine for me now, probably thanks to Marek's recent NaN fixes.
I had the very same bug in The Witcher 2 (wine) but unfortunately with current stack it hangs while starting it.