Skip to contentSkip to conversation

Second Life - Advanced Lighting Model shader fails to compile on Radeon SI driver

Bug 93970 [email protected] 1 participant 6 messages Feb 2, 2016 – Feb 3, 2016

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 93970
Summary: Second Life - Advanced Lighting Model shader fails to
compile on Radeon SI driver
Product: Mesa
Version: 11.0
Hardware: Other
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 121467
--> https://bugs.freedesktop.org/attachment.cgi?id=121467&action=edit
Shader compilation log

Advanced Lighting Model shader for Second Life fails to compile. When enabled, the menu waits for a moment then turns the option back off. I attached a log of the messages printed to the console during shader activation... there seem to be a lot of complaints about FXAA.

The problem only exists in the RadeonSI driver, not the R600 driver! Until yesterday I had a Radeon HD 6870 video card (AMD BARTS) and the shader worked perfectly, now I got a Radeon R7 370 (AMD PITCAIRN) and the problem occurs since I installed it.

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

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

#1 lore raw

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

MirceaKitsune <[email protected]> changed:

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

                 CC|                            |sonichedgehog_hyperblast00@
                   |                            |yahoo.com

--- Comment #1 from MirceaKitsune <[email protected]> --- Created attachment 121468
--> https://bugs.freedesktop.org/attachment.cgi?id=121468&action=edit
System data from the Help -> About menu

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

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

#2 lore raw
In reply to [email protected]

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

--- Comment #2 from Ilia Mirkin <[email protected]> ---
Try running with force_glsl_extensions_warn=true in the environment. Looks like the shader tries to use some advanced functionality without enabling the extensions. It checks with #ifdef GL_ARB_gpu_shader5, without enabling the ext, which is unfortunate. My understanding is that the preprocessor macros are set to 1 even when the ext isn't enabled with #extension.

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

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

#3 lore raw
In reply to [email protected]

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

MirceaKitsune <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO

--- Comment #3 from MirceaKitsune <[email protected]> --- (In reply to Ilia Mirkin from comment #2)

Thank you, that got the shader working again! I already had to add allow_glsl_extension_directive_midshader=true to my ~/.profile file for Second Life shaders, so until either the driver or SL fix this I'll include that one too. If the problem lies with Mesa this bug should stay open, if not someone close it please.

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

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

#4 lore raw
In reply to [email protected]

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

--- Comment #4 from Ilia Mirkin <[email protected]> --- There's a drirc entry for Second Life already:

<application name="Second Life"
executable="do-not-directly-run-secondlife-bin">
<option name="allow_glsl_extension_directive_midshader"
value="true" />
</application>

You could just add the other option there as well - no need to set them globally (in fact, it might cause other things to break as a result - various exts can cause older shaders to become invalid, as keywords are added/etc).

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

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

#5 lore raw
In reply to [email protected]

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

Michel D�nzer <[email protected]> changed:

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

           Assignee|[email protected] |[email protected].
                   |.org                        |org
          Component|Drivers/Gallium/radeonsi    |Mesa core
         QA Contact|[email protected] |[email protected].
                   |.org                        |org
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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