https://bugs.freedesktop.org/show_bug.cgi?id=96762
Bug ID: 96762 Summary: [radeonsi] Firewatch: nothing rendered in scrollable (text) areas Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: kai@dev.carbon-project.org QA Contact: dri-devel@lists.freedesktop.org Blocks: 77449
Created attachment 124836 --> https://bugs.freedesktop.org/attachment.cgi?id=124836&action=edit Graphics settings menu for Firewatch: no resolution options are rendered in the scrollable area
Before I start with the description: this might be a duplicate of either bug 96672 or bug 95551 or both if those two are duplicates of each other as well. Feel free to resolve it that way.
When playing Firewatch with the stack detailed below, scrollable text areas (for example the resolution selection in the settings menu (see attached screenshot) or the "notes reader" menu for notes you've collected are lacking any visible text. The text area's border as well as scrolling controls are rendered.
Most likely unrelated/a different issue, but I'd like to note, that the start-up of the game is *really* slow and for at least a minute or so you see the main menu screen go from black to the fully rendered screen with background animation frame by frame (the same issue can be observed, when Alt-Tabing out and back into the game). It almost feels like the process has frozen. Once it's loaded everything runs smooth. (Btw: launching the game with MESA_GLSL_VERSION_OVERRIDE=300 MESA_GL_VERSION_OVERRIDE=3.0 avoids this issue entirely, but still nothing rendered in scrollable areas)
In any case, the Player.log of the underlying Unity engine shows a couple of shader-related warnings:
WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Diffuse IBL' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Diffuse IBL' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Diffuse IBL' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Diffuse IBL' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Diffuse IBL' - Pass 'DEFERRED' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Diffuse IBL' - All passes removed WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL' - Pass 'DEFERRED' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL' - All passes removed WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Trees' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Trees' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Trees' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Trees' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Trees' - Pass 'DEFERRED' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Cross Cards' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Cross Cards' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Cross Cards' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Cross Cards' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Cross Cards' - Pass 'DEFERRED' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Cross Cards' - All passes removed WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Double Faces' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Double Faces' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Double Faces' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Double Faces' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Diffuse IBL Double Faces' - Pass 'DEFERRED' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Specular IBL' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Specular IBL' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Specular IBL' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Specular IBL' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Specular IBL' - Pass 'DEFERRED' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Specular IBL' - All passes removed WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Specular IBL' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Specular IBL' - Pass 'FORWARD' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Specular IBL' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Specular IBL' - Pass 'PREPASS' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Specular IBL' - Pass 'DEFERRED' has no vertex shader WARNING: Shader Unsupported: 'Marmoset/Transparent/Cutout/Bumped Specular IBL' - All passes removed WARNING: Shader Unsupported: 'Hidden/Dof/DX11Dof' - Pass '' has no vertex shader WARNING: Shader Unsupported: 'Hidden/Dof/DX11Dof' - Setting to default shader. WARNING: Shader Unsupported: 'Hidden/NoiseAndGrainDX11' - Pass '' has no vertex shader WARNING: Shader Unsupported: 'Hidden/NoiseAndGrainDX11' - Setting to default shader.
There is also a couple of audio-related (WWise) warnings and a null pointer exception in there, but the exception is probably "on close" as it's the very last entry in the log. Let me know, if you want to see the full log file from Unity3D.
The stack used was (Debian testing, fully updated, as a base): GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/d8d6091a84 libdrm: 2.4.68-1 LLVM: SVN:trunk/r274279 (3.9 devel) + http://reviews.llvm.org/D21551?id=61349&download=true X.Org: 2:1.18.3-1 Linux: 4.6.3 Firmware: firmware-amd-graphics/20160110-1 libclc: Git:master/20d977a3e6 DDX: 1:7.7.0-1
Let me know, if you need something else (shader dump, apitrace, etc.). Please specify if you want me to provide these with or without the override variables mentioned above.
Referenced Bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=77449 [Bug 77449] Tracker bug for all bugs related to Steam titles
https://bugs.freedesktop.org/show_bug.cgi?id=96762
--- Comment #1 from Kai kai@dev.carbon-project.org --- Created attachment 124837 --> https://bugs.freedesktop.org/attachment.cgi?id=124837&action=edit Firewatch: the notes reader doesn't show the text
https://bugs.freedesktop.org/show_bug.cgi?id=96762
--- Comment #2 from Nicolai Hähnle nhaehnle@gmail.com --- Do you see the issue also in an apitrace? If so, could you upload it? If not, yes, probably a duplicate to bug 95551.
https://bugs.freedesktop.org/show_bug.cgi?id=96762
--- Comment #3 from Kai kai@dev.carbon-project.org --- (In reply to Nicolai Hähnle from comment #2)
Do you see the issue also in an apitrace? If so, could you upload it?
Yes, I can! Find the trace at http://dev.carbon-project.org/debian/mesa.bugs/96762/firewatch.trace. You'll need your login credentials – you should have from a previous trace file – to download it (I just want to prevent needless traffic, if I should reset your password, let me know and I e-mail you a new one); other known Mesa developers without login credentials can contact me by private e-mail and I'm happy to set them up.
The trace shows the launch of the game and then the graphics settings menu as shown in attachment 124836.
Let me know, if you need something else.
https://bugs.freedesktop.org/show_bug.cgi?id=96762
Kai kai@dev.carbon-project.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[radeonsi] Firewatch: |[radeonsi,apitrace] |nothing rendered in |Firewatch: nothing rendered |scrollable (text) areas |in scrollable (text) areas Whiteboard| |apitrace
--- Comment #4 from Kai kai@dev.carbon-project.org --- NB: IMHO the "Keywords" field should be extended to also allow "apitrace"
https://bugs.freedesktop.org/show_bug.cgi?id=96762
--- Comment #5 from Nicolai Hähnle nhaehnle@gmail.com --- Thanks. I can reproduce the empty "Resolutions" scroll area.
https://bugs.freedesktop.org/show_bug.cgi?id=96762
--- Comment #6 from Kai kai@dev.carbon-project.org --- Still an issue with a current stack (Debian testing, fully updated, as a base): GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/3d69357da9 libdrm: 2.4.68-1 LLVM: SVN:trunk/r276522 (4.0 devel) X.Org: 2:1.18.4-1 Linux: 4.6.4 Firmware: firmware-amd-graphics/20160110-1 libclc: Git:master/785bfd3719 DDX: 1:7.7.0-1
https://bugs.freedesktop.org/show_bug.cgi?id=96762
--- Comment #7 from Nicolai Hähnle nhaehnle@gmail.com --- The discard statement in shaderObj = 53 is miscompiled, which leads to a mask for those UI elements to be discarded entirely. I'm investigating further.
https://bugs.freedesktop.org/show_bug.cgi?id=96762
--- Comment #8 from Nicolai Hähnle nhaehnle@gmail.com --- The patch at https://patchwork.freedesktop.org/patch/100834/ fixes the trace for me.
https://bugs.freedesktop.org/show_bug.cgi?id=96762
--- Comment #9 from Kai kai@dev.carbon-project.org --- (In reply to Nicolai Hähnle from comment #8)
The patch at https://patchwork.freedesktop.org/patch/100834/ fixes the trace for me.
I can confirm, that this patch fixes the issue for me, with the stack detailed below (Debian testing as a base): GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1) Mesa: Git:master/5d76690f17 + https://patchwork.freedesktop.org/patch/100834/raw/ libdrm: 2.4.68-1 LLVM: SVN:trunk/r276522 (4.0 devel) X.Org: 2:1.18.4-1 Linux: 4.6.4 Firmware: firmware-amd-graphics/20160110-1 libclc: Git:master/785bfd3719 DDX: 1:7.7.0-1
You can have my Tested-by: Kai Wasserbäch kai@dev.carbon-project.org
Thanks a lot for investigating and fixing this!
https://bugs.freedesktop.org/show_bug.cgi?id=96762
Nicolai Hähnle nhaehnle@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #10 from Nicolai Hähnle nhaehnle@gmail.com --- The fix has been pushed to Mesa master.
dri-devel@lists.freedesktop.org