Borderlands 2 rendering issues with recent mesa/llvm
https://bugs.freedesktop.org/show_bug.cgi?id=101651
Bug ID: 101651
Summary: [radeonsi][hawaii] Borderlands 2 rendering issues with
recent mesa/llvm
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]
Created attachment 132354
--> https://bugs.freedesktop.org/attachment.cgi?id=132354&action=edit
screenshot (wrong rendering)
AFAICS it's related to the VCCZ bug. There is a workaround for SI/CIK in the AMDGPU LLVM backend (SIInsertWaitcnts.cpp) but it doesn't handle this case.
The attached patch fixes it for me by relaxing the workaround condition, but probably it can be improved if there is a detailed info on that bug. OTOH I guess it won't have a noticeable effect on performance anyway, so maybe it's safer to use the patch as is.
The issue is reproducible with the reduced OpenCL test in the attachment:
$ make
// run on cpu - reference result
$ ./testcpu 117
// OpenCL/gpu - wrong result
$ LD_PRELOAD=/opt/llvm64_master/lib/libLLVM-5.0svn.so ./testgpu 99
// OpenCL/gpu + patch - correct result
$ LD_PRELOAD=/opt/llvm64_patched/lib/libLLVM-5.0svn.so ./testgpu 117
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
https://bugs.freedesktop.org/show_bug.cgi?id=101651
--- Comment #1 from Vadim Girlin <[email protected]> --- Created attachment 132355
--> https://bugs.freedesktop.org/attachment.cgi?id=132355&action=edit
screenshot (correct rendering)
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
https://bugs.freedesktop.org/show_bug.cgi?id=101651
--- Comment #2 from Vadim Girlin <[email protected]> --- Created attachment 132356
--> https://bugs.freedesktop.org/attachment.cgi?id=132356&action=edit
llvm patch
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
https://bugs.freedesktop.org/show_bug.cgi?id=101651
--- Comment #3 from Vadim Girlin <[email protected]> --- Created attachment 132357
--> https://bugs.freedesktop.org/attachment.cgi?id=132357&action=edit
reduced test
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
https://bugs.freedesktop.org/show_bug.cgi?id=101651
--- Comment #4 from Gregor Münch <[email protected]> ---
Can confirm the bug on SI (Radeon HD 7970) and Borderlands: The Pre-Sequel LLVM 5.0.0svn_r306967
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
https://bugs.freedesktop.org/show_bug.cgi?id=101651
Gregor Münch <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #5 from Gregor Münch <[email protected]> --- Looks good now for me.
Still an issue for you?
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
https://bugs.freedesktop.org/show_bug.cgi?id=101651
Timothy Arceri <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEEDINFO |RESOLVEDSignature · 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