https://bugs.freedesktop.org/show_bug.cgi?id=93767
Bug ID: 93767 Summary: Glitches with soft shadows and MSAA in Knights of the Old Republic 2 Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: daniel@constexpr.org QA Contact: dri-devel@lists.freedesktop.org
Created attachment 121127 --> https://bugs.freedesktop.org/attachment.cgi?id=121127&action=edit Screenshot of the glitch
When enabling both soft shadows and antialiasing in Knights of the Old Republic 2 [0], there are lines visible in addition to the shadows.
Here is an apitrace showing the problem:
http://constexpr.org/tmp/KotOR2-shadows-radeonsi.trace.xz (37 MiB)
The same trace (and the game) render fine with Catalyst 15.12.
Disabling either soft shadows or antialiasing also fixes the rendering.
GPU: Radeon HD 7950 (TAHITI) Mesa 11.2.0-devel (git-d018619) LLVM r255414
From what I can tell the problem first appears in e.g. draw call 1919333 in my
trace - the stencil buffer has value 127 everywhere except for parts covered by the shadow volumes. The color buffer however contains jagged lines afterwards in addition to the pixels covered by the shadows.
NB: The game also has fog issues like those worked around in the ATI_fs implementation [1] for the first KotOR game, but they are also present with Catalyst and even in one of the official screenshots [2] on the game's Steam store page. I think its fair to assume that that is a game bug, but if anyone wants to try it out with another driver / HW, here is another apitrace:
http://constexpr.org/tmp/KotOR2-fog-radeonsi.trace.xz (35 MiB)
[0] http://store.steampowered.com/app/208580/ [1] http://lists.freedesktop.org/archives/mesa-dev/2015-December/103263.html [2] http://cdn.akamai.steamstatic.com/steam/apps/208580/ss_e2043ae5d872d5576fd16...