Skip to contentSkip to conversation

Portal Stories Mel: Player's hands appear black at high shader quality

Bug 96512 [email protected] 1 participant 9 messages Jun 13, 2016 – Jul 26, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=96512

Bug ID: 96512
Summary: Portal Stories Mel: Player's hands appear black at
high shader quality
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 124512
--> https://bugs.freedesktop.org/attachment.cgi?id=124512&action=edit
Example from Portal Stories: Mel. Upper picture: Shader quality "Very high" (or high), Lower picture: Shader quality "medium" (or lower)

Hello,

this is my first bug report, so I hope the information provided is sufficient.

In Portal Stories: Mel and Portal 2 (reportedly), the player's arms and hands (and a few other objects, as demonstrated in the attached picture) appear black when the shader quality setting is set to "High" or "Very High", but appears normal if it is medium or lower.

This seems to only happen to a few objects, like the arms. In Portal 2 this is not visible as often, as the player's arms are usually not visible like that. Not sure if this is a Mesa bug, but it has been pointed out that the reports have so far only been on different versions of Mesa, so.. just thought I'd report it here in case.
I actually wanted to provide apitrace files, but I could not get it to work, sadly.

I sorted this under radeonsi because this is the driver I use, but among the other reports have been Intel systems. Please correct the bug report classification if not accurate.

The bug on Valve's git: https://github.com/ValveSoftware/portal2/issues/255

My system:
Kubuntu 16.04
Intel i5-2400
8 GB DDR3 RAM
Radeon HD 7950 Boost
(Steam Overlay deactivated)

OpenGL renderer string: Gallium 0.4 on AMD TAHITI (DRM 2.43.0 / 4.4.0-24-generic, LLVM 3.9.0)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 12.1.0-devel - padoka PPA (git-42624ea)
OpenGL core profile shading language version string: 4.20

Please let me know if there's something else you need

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=96512

--- Comment #2 from Torbjörn Andersson <[email protected]> --- Since I filed the original bug on Valve's git...

Any tips on how to get an apitrace out out Portal 2? I saw some suggestions about setting the GAME_DEBUGGER environment variable, but I wasn't able to get it to work. Maybe I didn't install all the necessary packages? (I'm using Debian unstable.)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=96512

--- Comment #3 from Nicolai Hähnle <[email protected]> ---
For me, the most reliable way to get an apitrace out of Steam games tends to be the (actually somewhat discouraged) LD_PRELOAD method: start Steam itself from a terminal with LD_PRELOAD=...apitrace-build-dir/wrappers/glxtrace.so steam

Of course, apitrace must have been built with the correct bitness (32 or 64 bits) depending on the game.

Watch the log for messages about apitrace being loaded.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=96512

--- Comment #4 from [email protected] ---
Hi Nicolai, it seems to have worked with self-built 32-bit apitrace; the portal2_linux.trace popped up in the game's folder.

I tested the trace by replaying it, and it shows the same visual issues like when I run the game itself.
I hope you don't mind it containing the loading screen etc. until the scene actually loads.As it has become rather big (700MB), I had to upload it externally on Google Drive.
https://drive.google.com/open?id=0B1pv42ci1XWxOXpDRmN5UjR2Qkk

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=96512

--- Comment #5 from Nicolai Hähnle <[email protected]> --- Thank you. I can reproduce the issue with the trace, this is very helpful.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=96512

--- Comment #6 from Torbjörn Andersson <[email protected]> --- Ah, good, you won't be needing my trace then? (It turned out that I did get one after all, I just didn't see it at first.) I was wondering what on earth to do with that 1 GB file... :-)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=96512

--- Comment #7 from Torbjörn Andersson <[email protected]> --- Just in case the traces I made are useful in some way after all, I've gzipped them and uploaded to
https://drive.google.com/open?id=0B364GtFAb7hUc21ONi15ODdmMTg

There are two files there, but they're just two different playthroughs of the same scene.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=96512

Nicolai Hähnle <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |NOTOURBUG
             Status|NEW                         |RESOLVED

--- Comment #8 from Nicolai Hähnle <[email protected]> --- I believe that this is a game bug.

Some of the black objects are rendered in draw calls between 526669 and 526714 of the provided trace. They're using program 2823, which contains fragment shader 2811, which uses a shadow sampling instruction on sampler 15, but the texture bound to texture 15 is a 1x1 GL_SRGB texture.

The GLSL 4.50 spec in the section on Texture Functions says: "If a shadow texture call is made to a sampler that does not represent a depth texture, then results are undefined." -- that is, the game is invoking undefined behaviour, hence this is not our bug.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel