Bug 71138 - flashlight bug in L4D2
Summary: flashlight bug in L4D2
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-01 19:48 UTC by yashax
Modified: 2014-04-11 17:31 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
The black spots. (2.45 MB, image/png)
2013-11-01 19:48 UTC, yashax
Details
Re-uploading the first screenshot. (2.45 MB, image/png)
2013-11-01 19:51 UTC, yashax
Details
Another screenshot showing the black spots. (1.44 MB, image/png)
2013-11-01 19:53 UTC, yashax
Details

Description yashax 2013-11-01 19:48:08 UTC
Created attachment 88506 [details]
The black spots.

When I'm looking on my teammates with flashlight, there are black spots on them. The black spots are moving very fast. It doesn't happens with walls/zombies, only with teammates.

-------------------
System information:

Radeon HD 4850
Ubuntu 12.04.3
Linux 3.12-rc7
X.Org server version: 1.11.3
libdrm2 version: 2.4.47+git1310301030.45810d~gd~p
xserver-xorg-video-radeon version: 7.2.0+git1310021050.f1dc67~gd~p
OpenGL renderer string: Gallium 0.4 on AMD RV770
OpenGL version string: 3.0 Mesa 10.0.0-devel (git-b16b3c8 precise-oibaf-ppa)
OpenGL shading language version string: 1.30
Comment 1 yashax 2013-11-01 19:51:12 UTC
Created attachment 88507 [details]
Re-uploading the first screenshot.
Comment 2 yashax 2013-11-01 19:53:53 UTC
Created attachment 88508 [details]
Another screenshot showing the black spots.
Comment 3 Vadim Girlin 2013-11-01 21:44:09 UTC
This looks like z-fighting issues. You might want to try disabling compiler backends via R600_DEBUG environment variable:

R600_DEBUG=nollvm
R600_DEBUG=nosb
R600_DEBUG=nollvm,nosb
Comment 4 yashax 2013-11-01 23:39:27 UTC
(In reply to comment #3)
> This looks like z-fighting issues. You might want to try disabling compiler
> backends via R600_DEBUG environment variable:
> 
> R600_DEBUG=nollvm
> R600_DEBUG=nosb
> R600_DEBUG=nollvm,nosb

The bug still exists with these environment variables.
The bug report and my last tests were done with shader detail setting on low.
I found that the bug happens with shader detail on low and medium, but on high and very high the bug disappears.
Comment 5 Benjamin Bellec 2013-12-02 10:04:00 UTC
I'm experiencing the same issue, with the same hardware.
I tried different graphics settings. The corruption exists only when the "shader detail" ("Détails de l'image" in french) is set to "low" or "mid". When set on "high" or "very high", there is no problem. All other settings doesn't change anything.

Note that when the character is in the sunlight, then the flashlight have less incidence (less blinking textures).

Here is a video showing the bug (199.6 MiB):
http://ubuntuone.com/12CfgEkAOwaBvgXKQILIxR

I have also a Radeon HD 5870 (AMD CYPRESS), and there is no such problem with this card (same software config).

-------------------
System information:

Radeon HD 4850 (RV770)
Fedora 19 x86-64
Linux 3.11.9-200.fc19.x86_64
libdrm 2.4.49-1.i686
OpenGL renderer string: Gallium 0.4 on AMD RV770
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.1.0-devel (git-5455c81)
OpenGL core profile shading language version string: 1.40
Comment 6 Benjamin Bellec 2013-12-21 16:53:46 UTC
It seems that nv50 (GT218) has the same issue.
Comment 7 Benjamin Bellec 2014-02-12 12:44:03 UTC
Disabling Hyper-Z with R600_DEBUG=nohyperz doesn't fix the bug (tested on RV770 and current master).
Comment 8 Benjamin Bellec 2014-03-14 12:45:19 UTC
I tested with an old Mesa release (9.0 from the spot.fedorapeople.org/steam repo) on Fedora 17, and the problem is already here.

It would be nice if somebody can test with the proprietary driver and with intel driver.
Comment 9 yashax 2014-04-11 13:11:22 UTC
It looks like this bug is fixed with current mesa master. Can you please verify that on your hardware?

-------------------
System information:
Radeon HD 4850
Ubuntu 13.10 x86_64
Linux 3.14
libdrm 2.4.53+git1404110630.504d60
xserver-xorg-video-radeon 7.3.99+git1404022026.ed0cfb
OpenGL renderer string: Gallium 0.4 on AMD RV770
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.2.0-devel (git-55f9bbd saucy-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
Comment 10 Benjamin Bellec 2014-04-11 17:31:02 UTC
Yes I confirm this is now fixed.
I can even add the fix was:

commit: e9822f77a9cc024f528d30382fd5ad21c73a173b
title: glsl: Skip making a temporary for assignments when we don't need one.
author: Eric Anholt <eric@anholt.net>
date: 2014-04-08 07:59:47 (GMT)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.