Skip to contentSkip to conversation

Bioshock Infinite: LLVM triggered Diagnostic Handler: Illegal instruction detected: Operand has incorrect register class.

Bug 96877 [email protected] 1 participant 6 messages Jul 10, 2016 – Jul 12, 2016

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 96877
Summary: Bioshock Infinite: LLVM triggered Diagnostic Handler:
Illegal instruction detected: Operand has incorrect register class.
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

This happens on my HD 7970M.

"Very Low" graphics settings work fine but trying to start with "Medium" settings throws this error before it even gets to the menu.

The files are bit too big for bugzilla I think, so

Here is an stderr log with R600_DEBUG="vs,ps,gs,tes,tcs":
http://haagch.frickel.club/files/err.txt.gz

Here is an apitrace that causes the error:
http://haagch.frickel.club/files/bioshock.i386.trace.xz

Happened with latest mesa git and llvm 3.9.0svn_r274975 and now with 3.9.0svn_r275008 too.

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

#1 lore raw

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

--- Comment #1 from Nicolai Hähnle <[email protected]> --- Created attachment 124987
--> https://bugs.freedesktop.org/attachment.cgi?id=124987&action=edit
Reduced test case, fails with llc -march=amdgcn -verify-machineinstrs

I can reproduce this, and I obtained the attached reduced testcase which has an error since r274954 "AMDGPU: Improve offset folding for register indexing". I'm not sure how that change is related to the particular error that I get...

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

--- Comment #2 from Nicolai Hähnle <[email protected]> --- Created attachment 124989
--> https://bugs.freedesktop.org/attachment.cgi?id=124989&action=edit
Treat insert and extract equally in selectMOVRELOffsetImpl

The attached patch fixes the bug for me.

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

--- Comment #3 from Michel Dänzer <[email protected]> --- FWIW, Nicolai's patch seems to fix lots of piglit regressions on my Kaveri.

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

--- Comment #4 from Nicolai Hähnle <[email protected]> --- Another update: there are two separate problems in LLVM which "cooperate" to lead to this bug. http://reviews.llvm.org/D22210 and
http://reviews.llvm.org/D22217 fix both problems (and either is sufficient for this bug here).

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

Christoph Haag <[email protected]> changed:

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

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

--- Comment #5 from Christoph Haag <[email protected]> --- Both of these are in in llvm svn now.

Enabling and disabling anti aliasing works without this error. Thanks for the fix.

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