Skip to contentSkip to conversation

shader failure - r600_sb::bc_finalizer::cf_peephole() when starting Second Life

Bug 86089 [email protected] 1 participant 13 messages Nov 10, 2014 – Feb 2, 2015

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 86089
Summary: [r600g] shader failure -
r600_sb::bc_finalizer::cf_peephole() when starting Second Life
Product: Mesa
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
Assignee: [email protected]
Reporter: [email protected]

Compiling November 10th build of git master for rv6xx:

kernel: 3.18.0-0.rc3.git2.2.fc22.1.x86_64 mesa-dri-drivers-10.4-0.devel.100.20141110.fc21.x86_64 (custom using Fedora's .spec file)

I am using R600_DEBUG=hyperz

I get the following crash:

Program received signal SIGSEGV, Segmentation fault. 0x00007fffe916bb4e in r600_sb::bc_finalizer::cf_peephole (this=this@entry=0x7fffffffb350) at sb/sb_bc_finalize.cpp:877
877 c->jump_target =
static_cast<cf_node*>(c->jump_target->next);

Full stack dump attached

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=86089

--- Comment #1 from Shawn Starr <[email protected]> --- Created attachment 109185
--> https://bugs.freedesktop.org/attachment.cgi?id=109185&action=edit
Crash from gdb stacktrace

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

author Reviewed-by Francisco Jerez
#2 lore raw
In reply to [email protected]

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

--- Comment #2 from Shawn Starr <[email protected]> --- Bisecting came up with this as bad commit:

73dd50acf6d244979c2a657906aa56d3ac60d550 is the first bad commit commit 73dd50acf6d244979c2a657906aa56d3ac60d550

Author: Tapani Pälli <[email protected]>
Date:   Wed Aug 6 09:46:54 2014 +0300

glsl: implement switch flow control using a loop

Patch removes old variable based logic for handling a break inside switch. Switch is put inside a loop so that existing infrastructure for loop flow control can be used for the switch, now also dead code elimination works properly.

Possible 'continue' call inside a switch needs now special handling which is taken care of by detecting continue, breaking out and calling continue for the outside loop.

v2: remove one unnecessary ir_expression (Curro)

Fixes following Piglit tests:

fs-exec-after-break.shader_test
fs-conditional-break.shader_test

No Piglit or es3conform regressions.

:040000 040000 eac8a47066723ff804317ef11bb006dd0bb80d0f
b73ed6cc78a66c54d684635f69a358fd54f65929 M src

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=86089

--- Comment #3 from Shawn Starr <[email protected]> --- A second bisect, repeated this. So this is the commit that breaks r600 SB compiler.

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=86089

Shawn Starr <[email protected]> changed:

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

            Summary|[r600g] shader failure -    |[r600g][mesa 10.4.0-dev]
                   |r600_sb::bc_finalizer::cf_p |shader failure -
                   |eephole() when starting     |r600_sb::bc_finalizer::cf_p
                   |Second Life                 |eephole() when starting
                   |                            |Second Life
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=86089

Emil Velikov <[email protected]> changed:

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

                 CC|                            |sonichedgehog_hyperblast00@
                   |                            |yahoo.com

--- Comment #4 from Emil Velikov <[email protected]> --- *** Bug 86418 has been marked as a duplicate of this bug. ***

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

#6 lore raw
In reply to [email protected]

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

--- Comment #5 from Emil Velikov <[email protected]> ---

Quoted 1 line

From bug 86418:

I tried launching the Second Life viewer (Kokua 3.7.8 x64) using the latest GIT version of MESA, and noticed the viewer crashes as soon as it's time to render the world. The crash only happens when Basic Shaders are enabled.

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

#7 lore raw
In reply to [email protected]

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

--- Comment #6 from MirceaKitsune <[email protected]> --- As mentioned in the related bug report, I can confirm this. I did a GIT bisect and the same commit causes this crash for me too. I'm ready to test the fix once one is in place.

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

#8 lore raw
In reply to [email protected]

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

--- Comment #7 from Dave Airlie <[email protected]> --- Created attachment 110153
--> https://bugs.freedesktop.org/attachment.cgi?id=110153&action=edit
fix loops with no repeat.

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

#9 lore raw
In reply to [email protected]

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

--- Comment #8 from Shawn Starr <[email protected]> --- Patch causes lockup, discounting the other issues now fixed. This looks to be missing something else.

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

#10 lore raw
In reply to [email protected]

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

Dave Airlie <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Dave Airlie <[email protected]> --- should be fixed in master a while back.

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

#11 lore raw
In reply to [email protected]

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

--- Comment #10 from MirceaKitsune <[email protected]> --- Confirming that it's fixed, the SL viewer works again with latest MESA GIT master.

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

#12 lore raw
In reply to [email protected]

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

Shawn Starr <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED

--- Comment #11 from Shawn Starr <[email protected]> --- +1 here

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