All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
@ 2017-11-02 12:39 bugzilla-daemon
  2017-11-02 13:27 ` bugzilla-daemon
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-02 12:39 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 979 bytes --]

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

            Bug ID: 103544
           Summary: Graphical glitches r600 in game this war of mine linux
                    native
           Product: Mesa
           Version: 17.3
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: shpalikvitalik@gmail.com
        QA Contact: dri-devel@lists.freedesktop.org

Created attachment 135209
  --> https://bugs.freedesktop.org/attachment.cgi?id=135209&action=edit
black artifacts

the problem with artifacts is observed in mesa 17.2 mesa 17.3. When the version
is rolled back to 17.0.5 the problem disappears and the game works without
artifacts.
I enclose the screenshots:

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2466 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
@ 2017-11-02 13:27 ` bugzilla-daemon
  2017-11-02 13:36 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-02 13:27 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 346 bytes --]

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

--- Comment #1 from Emil Velikov <emil.l.velikov@gmail.com> ---
Vitalii can you bisect Mesa to the commit that broke the game? There aren't
many developer working on r600 - so this would be greatly beneficial.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1158 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
  2017-11-02 13:27 ` bugzilla-daemon
@ 2017-11-02 13:36 ` bugzilla-daemon
  2017-11-02 14:01 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-02 13:36 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 234 bytes --]

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

--- Comment #2 from Vitalii <shpalikvitalik@gmail.com> ---
tell me how and what to do and I'll try

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1041 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
  2017-11-02 13:27 ` bugzilla-daemon
  2017-11-02 13:36 ` bugzilla-daemon
@ 2017-11-02 14:01 ` bugzilla-daemon
  2017-11-03 15:48 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-02 14:01 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 432 bytes --]

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

--- Comment #3 from Vitalii <shpalikvitalik@gmail.com> ---
(In reply to Emil Velikov from comment #1)
> Vitalii can you bisect Mesa to the commit that broke the game? There aren't
> many developer working on r600 - so this would be greatly beneficial.

tell me how and what to do and I'll try

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1313 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-11-02 14:01 ` bugzilla-daemon
@ 2017-11-03 15:48 ` bugzilla-daemon
  2017-11-04  2:48 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-03 15:48 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 998 bytes --]

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

--- Comment #4 from Roland Scheidegger <sroland@vmware.com> ---
(In reply to Vitalii from comment #3)
> (In reply to Emil Velikov from comment #1)
> > Vitalii can you bisect Mesa to the commit that broke the game? There aren't
> > many developer working on r600 - so this would be greatly beneficial.
> 
> tell me how and what to do and I'll try

git bisect is easy, albeit building 32bit mesa on a 64bit distro might be
somewhere from challenging to near impossible depending on the distro...
You just do
git bisect start (probably on mesa master branch, but 17.2 branch should work
too)
git bisect good <sha id of a commit where things are working)
git bisect bad <sha id of a commit where things are broken)
build mesa, test (make sure testing really uses the newly compiled driver...)
git bisect good (or bad), build, test, rinse and repeat...

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1945 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-11-03 15:48 ` bugzilla-daemon
@ 2017-11-04  2:48 ` bugzilla-daemon
  2017-11-04  3:21 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-04  2:48 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 851 bytes --]

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

--- Comment #5 from Roland Scheidegger <sroland@vmware.com> ---
I've actually got that game myself here.
So I did the bisect and the winner is:
ce7a045feeef8cad155f1c9aa07f166e146e3d00 is the first bad commit
commit ce7a045feeef8cad155f1c9aa07f166e146e3d00
Author: Ilia Mirkin <imirkin@alum.mit.edu>
Date:   Mon Jan 23 20:53:50 2017 -0500

    r600g: use ieee variants of multiplication instructions

    This matches the behavior of most other drivers, including nouveau,
    radeonsi, and i965.

    Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>

Looks like some numerical issue then, albeit I don't know if the game is at
fault here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1834 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-11-04  2:48 ` bugzilla-daemon
@ 2017-11-04  3:21 ` bugzilla-daemon
  2017-11-04  6:00 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-04  3:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1495 bytes --]

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

--- Comment #6 from Ilia Mirkin <imirkin@alum.mit.edu> ---
(In reply to Roland Scheidegger from comment #5)
> I've actually got that game myself here.
> So I did the bisect and the winner is:
> ce7a045feeef8cad155f1c9aa07f166e146e3d00 is the first bad commit
> commit ce7a045feeef8cad155f1c9aa07f166e146e3d00
> Author: Ilia Mirkin <imirkin@alum.mit.edu>
> Date:   Mon Jan 23 20:53:50 2017 -0500
> 
>     r600g: use ieee variants of multiplication instructions
>     
>     This matches the behavior of most other drivers, including nouveau,
>     radeonsi, and i965.
>     
>     Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
>     Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
> 
> Looks like some numerical issue then, albeit I don't know if the game is at
> fault here.

Apologies for the trouble.

The main difference between IEEE and non-IEEE is whether 0 * infinity = 0 or
NaN. IEEE makes it mean NaN. DX9 behavior is 0. I added a flag to be used by
st/nine to enable the DX9 behavior optionally, but leave the IEEE behavior for
GLSL. (There was some additional desire to expose that in a GL ext for WINE to
use, but it got shot down pretty quickly.)

Perhaps there are other changes from using the IEEE instruction variants, e.g.
denorms, which would be undesirable. I was never too familiar with the R600
ISA.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2592 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-11-04  3:21 ` bugzilla-daemon
@ 2017-11-04  6:00 ` bugzilla-daemon
  2017-11-04 14:34 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-04  6:00 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1589 bytes --]

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

--- Comment #7 from Roland Scheidegger <sroland@vmware.com> ---
(In reply to Ilia Mirkin from comment #6)
> The main difference between IEEE and non-IEEE is whether 0 * infinity = 0 or
> NaN. IEEE makes it mean NaN. DX9 behavior is 0. I added a flag to be used by
> st/nine to enable the DX9 behavior optionally, but leave the IEEE behavior
> for GLSL. (There was some additional desire to expose that in a GL ext for
> WINE to use, but it got shot down pretty quickly.)
> 
> Perhaps there are other changes from using the IEEE instruction variants,
> e.g. denorms, which would be undesirable. I was never too familiar with the
> R600 ISA.

I don't think these chips can do denorms at all.
I quickly looked at some trace, and indeed it looks like NaNs popping up in
some RT (which has a rgba16f format), and in that case it will then show as
black in the final output later.
I could not figure out what fragment shader is responsible for it, the NaNs are
always surrounded by pixels which are all black (hence making them
indistinguishable in qapitrace visually), plus that texture which gets the NaNs
is also blitted to from other textures via glBlitFramebuffer, which also
already has NaNs and so on, and I didn't invest all that much time...
I guess though the question is why other mesa drivers render it correctly and
how they avoid the NaNs if they also use ieee conformant behavior (if they
actually render it correctly...).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2496 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (6 preceding siblings ...)
  2017-11-04  6:00 ` bugzilla-daemon
@ 2017-11-04 14:34 ` bugzilla-daemon
  2017-11-04 14:49 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-04 14:34 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]

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

--- Comment #8 from Ilia Mirkin <imirkin@alum.mit.edu> ---
(In reply to Roland Scheidegger from comment #7)
> I guess though the question is why other mesa drivers render it correctly
> and how they avoid the NaNs if they also use ieee conformant behavior (if
> they actually render it correctly...).

If you can get me a trace, I can have a look to see what happens with nouveau.

There's additional implications from having NaN's in RT outputs, i.e. what
happens in blending functions. I believe that nouveau configures the GPU for
the "zero wins" style of multiplication in the blending unit. And separately,
same thing for color clamps (I believe NVIDIA hw maps NaN -> 0 unconditionally
for that case).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1750 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (7 preceding siblings ...)
  2017-11-04 14:34 ` bugzilla-daemon
@ 2017-11-04 14:49 ` bugzilla-daemon
  2017-11-06  4:52 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-04 14:49 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 479 bytes --]

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

--- Comment #9 from Ilia Mirkin <imirkin@alum.mit.edu> ---
Created attachment 135237
  --> https://bugs.freedesktop.org/attachment.cgi?id=135237&action=edit
enable simple_float logic for blending

Entirely untested (not even compiled) patch to force blending to be 0*NaN=0.
Looks like radeonsi sets this bit, so it's not completely crazy.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1540 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (8 preceding siblings ...)
  2017-11-04 14:49 ` bugzilla-daemon
@ 2017-11-06  4:52 ` bugzilla-daemon
  2017-11-06 20:33 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-06  4:52 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 934 bytes --]

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

--- Comment #10 from Ilia Mirkin <imirkin@alum.mit.edu> ---
(In reply to Ilia Mirkin from comment #9)
> Created attachment 135237 [details] [review]
> enable simple_float logic for blending
> 
> Entirely untested (not even compiled) patch to force blending to be 0*NaN=0.
> Looks like radeonsi sets this bit, so it's not completely crazy.

Note that it looks like SIMPLE_FLOAT merely makes an optimization which allows
a GL_ZERO factor to cause a 0 to result... sometimes. But it could be enough
here. If an infinity or NaN makes it into a dest buffer, without this it will
ruin any future blending done, even if there's an attempt to override the
destination value.

Patch is available at https://patchwork.freedesktop.org/patch/186599/ (although
I'll have to rework the description)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2204 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (9 preceding siblings ...)
  2017-11-06  4:52 ` bugzilla-daemon
@ 2017-11-06 20:33 ` bugzilla-daemon
  2017-11-06 21:14 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-06 20:33 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 855 bytes --]

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

--- Comment #11 from Roland Scheidegger <sroland@vmware.com> ---
(In reply to Ilia Mirkin from comment #10)
> Patch is available at https://patchwork.freedesktop.org/patch/186599/
> (although I'll have to rework the description)

Doesn't help, everything looks the same.
FWIW I (accidentally...) also tested without float rt support (got really
confused first with the results...), and there's still corruption when the game
uses ordinary (gl_rgba) rt. I'm not sure the rendering is otherwise identical,
but at least SOME corruption disappears (in particular, the black boxes),
whereas other corruption remains exactly the same (some vertical stripes
sometimes, and the fires still are black in the interior).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1805 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (10 preceding siblings ...)
  2017-11-06 20:33 ` bugzilla-daemon
@ 2017-11-06 21:14 ` bugzilla-daemon
  2017-11-07 19:20 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-06 21:14 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 351 bytes --]

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

--- Comment #12 from Roland Scheidegger <sroland@vmware.com> ---
Here's a apitrace for this (1GB, of course the corruption is only seen towards
the end...), should be available a week (?):
https://we.tl/EanuxRG7Yf

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1203 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (11 preceding siblings ...)
  2017-11-06 21:14 ` bugzilla-daemon
@ 2017-11-07 19:20 ` bugzilla-daemon
  2017-11-08  0:25 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-07 19:20 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 637 bytes --]

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

--- Comment #13 from Ilia Mirkin <imirkin@alum.mit.edu> ---
(In reply to Roland Scheidegger from comment #12)
> Here's a apitrace for this (1GB, of course the corruption is only seen
> towards the end...), should be available a week (?):
> https://we.tl/EanuxRG7Yf

Well, this all replays fine with nouveau, even if I remove the blending config
which makes 0*nan=0. At least I couldn't see any artifacts.

So this all points to ... sadness. Can you check if you still see artifacts
with nosb?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1562 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (12 preceding siblings ...)
  2017-11-07 19:20 ` bugzilla-daemon
@ 2017-11-08  0:25 ` bugzilla-daemon
  2017-11-08  0:36 ` bugzilla-daemon
  2017-11-15  2:22 ` bugzilla-daemon
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-08  0:25 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1878 bytes --]

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

--- Comment #14 from Roland Scheidegger <sroland@vmware.com> ---
(In reply to Ilia Mirkin from comment #13)
> (In reply to Roland Scheidegger from comment #12)
> > Here's a apitrace for this (1GB, of course the corruption is only seen
> > towards the end...), should be available a week (?):
> > https://we.tl/EanuxRG7Yf
> 
> Well, this all replays fine with nouveau, even if I remove the blending
> config which makes 0*nan=0. At least I couldn't see any artifacts.
> 
> So this all points to ... sadness. Can you check if you still see artifacts
> with nosb?

Tried that, doesn't help.

I noticed some things looking questionable in the driver:
- the driver doesn't use the ieee variants consistently (e.g. muls from lerps).
There's also some inconsistencies - for r600, the comments say for non-gl usage
the ieee variant should be used for rcp, however eg/cayman will use that
anyway, and I don't think handling it differently between these drivers is done
on purpose.
- the driver uses min/max instead of min_dx10/max_dx10 (though at least the EG
ISA docs are wrong/inaccurate what they exactly do). These would kill off NaNs
(albeit I am not entirely sure if the non-dx10 version doesn't kill off NaNs
neither, given the docs aren't accurate in the first place...). I think this
probably should be changed (as far as I can tell, radeonsi also uses
effectively the dx10 versions, since llvm.min/maxnum is specified as selecting
non-nan operands, though I don't know if the backend honors it really). This
actually does help things, it removes the black holes in the fires, and the
"vertical blue stripes" (albeit the latter wasn't really in that trace). But
otherwise there's still lots of black boxes around.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2889 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (13 preceding siblings ...)
  2017-11-08  0:25 ` bugzilla-daemon
@ 2017-11-08  0:36 ` bugzilla-daemon
  2017-11-15  2:22 ` bugzilla-daemon
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-08  0:36 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 910 bytes --]

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

--- Comment #15 from Roland Scheidegger <sroland@vmware.com> ---
(In reply to Roland Scheidegger from comment #14)
> - the driver doesn't use the ieee variants consistently (e.g. muls from
> lerps).
> There's also some inconsistencies - for r600, the comments say for non-gl
> usage the ieee variant should be used for rcp, however eg/cayman will use
> that anyway, and I don't think handling it differently between these drivers
> is done on purpose.

Actually that seems to be the problem - on r600, rcp/rsq_clamped are used (btw
does someone know why rsq has its own code expansion on r600, but not
eg/cayman)?
But eg/cayman use rcp/rsq_ieee. It looks like if I use rcp_clamped instead that
is enough to fix everything (regardless what rsq/min/max are using).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1810 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug 103544] Graphical glitches r600 in game this war of mine linux native
  2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
                   ` (14 preceding siblings ...)
  2017-11-08  0:36 ` bugzilla-daemon
@ 2017-11-15  2:22 ` bugzilla-daemon
  15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2017-11-15  2:22 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 763 bytes --]

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

Roland Scheidegger <sroland@vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #16 from Roland Scheidegger <sroland@vmware.com> ---
This should now be fixed by 3835009796166968750ff46cf209f6d4208cda86 (and the
preceding commit).

(Albeit I'm wondering now if I should have used stable tag for these two...).

Closing this, albeit I suppose the simple float blending could still be done.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2310 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-11-15  2:22 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02 12:39 [Bug 103544] Graphical glitches r600 in game this war of mine linux native bugzilla-daemon
2017-11-02 13:27 ` bugzilla-daemon
2017-11-02 13:36 ` bugzilla-daemon
2017-11-02 14:01 ` bugzilla-daemon
2017-11-03 15:48 ` bugzilla-daemon
2017-11-04  2:48 ` bugzilla-daemon
2017-11-04  3:21 ` bugzilla-daemon
2017-11-04  6:00 ` bugzilla-daemon
2017-11-04 14:34 ` bugzilla-daemon
2017-11-04 14:49 ` bugzilla-daemon
2017-11-06  4:52 ` bugzilla-daemon
2017-11-06 20:33 ` bugzilla-daemon
2017-11-06 21:14 ` bugzilla-daemon
2017-11-07 19:20 ` bugzilla-daemon
2017-11-08  0:25 ` bugzilla-daemon
2017-11-08  0:36 ` bugzilla-daemon
2017-11-15  2:22 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.