From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 93300] New: Two Worlds 2 renders water incorrectly Date: Tue, 08 Dec 2015 19:18:22 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0375227804==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0375227804== Content-Type: multipart/alternative; boundary="1449602302.CC1DBF1.15051"; charset="UTF-8" --1449602302.CC1DBF1.15051 Date: Tue, 8 Dec 2015 19:18:22 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93300 Bug ID: 93300 Summary: Two Worlds 2 renders water incorrectly Product: Mesa Version: git Hardware: Other OS: All Status: NEW Keywords: regression Severity: normal Priority: medium Component: Drivers/DRI/nouveau Assignee: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Reporter: gyebro69-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org QA Contact: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org CC: imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org Created attachment 120416 --> https://bugs.freedesktop.org/attachment.cgi?id=120416&action=edit screenshot In Two Worlds 2 (running in Wine 1.8-rc3) water is not rendered properly: it looks as if textures are "split up" into several pieces, as it can be seen in the attached screenshot. The problem doesn't occur with the software renderer (LIBGL_ALWAYS_SOFTWARE=1). Disabling optimizations doesn't help (NV50_PROG_OPTIMIZE=0). According to my testing the problem was introduced by commit abd326e81b06f58797be94bd655ee06b17a34f0c Author: Ilia Mirkin Date: Fri Dec 4 15:21:11 2015 -0500 nv50/ir: propagate indirect loads into instructions This way $r1 = $r0 + 4; c1[$r1] becomes c1[$r0+4]. On SM35: total instructions in shared programs : 6206257 -> 6185058 (-0.34%) total gprs used in shared programs : 911045 -> 910722 (-0.04%) total local used in shared programs : 39072 -> 39072 (0.00%) local gpr inst bytes helped 0 417 4195 4195 hurt 0 280 0 0 Reverting the commit on current Mesa git resolves the problem here. Apitrace log (uncompressed 150 MB): https://drive.google.com/open?id=0B-tTbLKBl-tOQ0xNMFJlSS00S1E The trace replays correctly on Nvidia binary drivers 340.96. Fedora 23 32-bit Kernel 4.4.0-rc4 X Server 1.18.0 OpenGL vendor string: nouveau OpenGL renderer string: Gallium 0.4 on NV92 OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.0-devel (git-f61ceeb) OpenGL core profile shading language version string: 3.30 -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug. --1449602302.CC1DBF1.15051 Date: Tue, 8 Dec 2015 19:18:22 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 93300
Summary Two Worlds 2 renders water incorrectly
Product Mesa
Version git
Hardware Other
OS All
Status NEW
Keywords regression
Severity normal
Priority medium
Component Drivers/DRI/nouveau
Assignee nouveau@lists.freedesktop.org
Reporter gyebro69@gmail.com
QA Contact nouveau@lists.freedesktop.org
CC imirkin@alum.mit.edu

Created attachment 120416 [details]
screenshot

In Two Worlds 2 (running in Wine 1.8-rc3) water is not rendered properly: it
looks as if textures are "split up" into several pieces, as it can be seen in
the attached screenshot.
The problem doesn't occur with the software renderer (LIBGL_ALWAYS_SOFTWARE=1).
Disabling optimizations doesn't help (NV50_PROG_OPTIMIZE=0).

According to my testing the problem was introduced by

commit abd326e81b06f58797be94bd655ee06b17a34f0c
Author: Ilia Mirkin <imirkin@alum.mit.edu>
Date:   Fri Dec 4 15:21:11 2015 -0500

    nv50/ir: propagate indirect loads into instructions

    This way $r1 = $r0 + 4; c1[$r1] becomes c1[$r0+4].

    On SM35:

    total instructions in shared programs : 6206257 -> 6185058 (-0.34%)
    total gprs used in shared programs    : 911045 -> 910722 (-0.04%)
    total local used in shared programs   : 39072 -> 39072 (0.00%)

                    local        gpr       inst      bytes
        helped           0         417        4195        4195
          hurt           0         280           0           0


Reverting the commit on current Mesa git resolves the problem here.

Apitrace log (uncompressed 150 MB):
https://drive.google.com/open?id=0B-tTbLKBl-tOQ0xNMFJlSS00S1E
The trace replays correctly on Nvidia binary drivers 340.96.

Fedora 23 32-bit
Kernel 4.4.0-rc4
X Server 1.18.0
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NV92
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.0-devel
(git-f61ceeb)
OpenGL core profile shading language version string: 3.30


You are receiving this mail because:
  • You are the QA Contact for the bug.
  • You are the assignee for the bug.
--1449602302.CC1DBF1.15051-- --===============0375227804== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK --===============0375227804==--