All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 93216] Artifacts with DCC when render target also texture
@ 2015-12-02 17:17 bugzilla-daemon
  2015-12-02 17:18 ` bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-12-02 17:17 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 93216
           Summary: Artifacts with DCC when render target also texture
           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: axel.davy@ens.fr
        QA Contact: dri-devel@lists.freedesktop.org

Created attachment 120280
  --> https://bugs.freedesktop.org/attachment.cgi?id=120280&action=edit
Before a buggy draw call

I noticed a few games had some strange artifacts on my tonga that I had not on
verde. Those artifacts are usually along lines.

These artifacts disappear with R600_DEBUG=nodcc.

I managed to determine the bug appears when the render target is also used as
input texture.

Attached is the render target content before and after such draw call. The draw
call draws two triangles. We can see the artifacts are along the border region
of the top right triangle with the bottom left triangle.

My guess is that it is some flush issue. That the bottom left triangle is drawn
first, the cache content of the texture cache updated, and the artifacts are at
locations where the dcc data was updated.

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

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

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

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

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

* [Bug 93216] Artifacts with DCC when render target also texture
  2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
@ 2015-12-02 17:18 ` bugzilla-daemon
  2015-12-02 17:20 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-12-02 17:18 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from Axel Davy <axel.davy@ens.fr> ---
Created attachment 120281
  --> https://bugs.freedesktop.org/attachment.cgi?id=120281&action=edit
After a buggy draw call

-- 
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: 159 bytes --]

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

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

* [Bug 93216] Artifacts with DCC when render target also texture
  2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
  2015-12-02 17:18 ` bugzilla-daemon
@ 2015-12-02 17:20 ` bugzilla-daemon
  2015-12-02 17:37 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-12-02 17:20 UTC (permalink / raw)
  To: dri-devel


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

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

Axel Davy <axel.davy@ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #120280|0                           |1
        is obsolete|                            |

--- Comment #2 from Axel Davy <axel.davy@ens.fr> ---
Created attachment 120282
  --> https://bugs.freedesktop.org/attachment.cgi?id=120282&action=edit
Before a buggy draw call

Repost of the first image, reported as PNG instead of text.

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

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

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

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

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

* [Bug 93216] Artifacts with DCC when render target also texture
  2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
  2015-12-02 17:18 ` bugzilla-daemon
  2015-12-02 17:20 ` bugzilla-daemon
@ 2015-12-02 17:37 ` bugzilla-daemon
  2015-12-02 18:12 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-12-02 17:37 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #3 from Marek Olšák <maraeo@gmail.com> ---
What happens if you set these flush flags after every draw call?

SI_CONTEXT_FLUSH_AND_INV_FRAMEBUFFER
SI_CONTEXT_INV_GLOBAL_L2
SI_CONTEXT_INV_VMEM_L1
SI_CONTEXT_PS_PARTIAL_FLUSH

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

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

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

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

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

* [Bug 93216] Artifacts with DCC when render target also texture
  2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
                   ` (2 preceding siblings ...)
  2015-12-02 17:37 ` bugzilla-daemon
@ 2015-12-02 18:12 ` bugzilla-daemon
  2016-01-20  0:33 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2015-12-02 18:12 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from Axel Davy <axel.davy@ens.fr> ---
I added these at the end of si_emit_draw_packets.

It doesn't solve the problem.

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

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

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

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

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

* [Bug 93216] Artifacts with DCC when render target also texture
  2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
                   ` (3 preceding siblings ...)
  2015-12-02 18:12 ` bugzilla-daemon
@ 2016-01-20  0:33 ` bugzilla-daemon
  2016-05-31 16:07 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-01-20  0:33 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #5 from Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> ---
I think we have cache coherency issues within a single draw call. One of the
situations in which a feedback loop is allowed is if we read and write every
texel at most once and we read the texel from the fragment shader invocation
that writes that texel.

My guess is that this is the case here, with two triangles. The problem is that
while every pixel is written at most once, every block of pixels can be
modified multiple times on the edges of a triangle.

This results in garbage if a later invocation for a tile sees modified pixel
data but stale DCC compression data, or stale pixel data and modified DCC
compression data.


This can be fixed by decompressing the framebuffer and disabling DCC
decompression for the framebuffer. I would like to avoid decompressing, but I
do not know how.

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

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

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

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

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

* [Bug 93216] Artifacts with DCC when render target also texture
  2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
                   ` (4 preceding siblings ...)
  2016-01-20  0:33 ` bugzilla-daemon
@ 2016-05-31 16:07 ` bugzilla-daemon
  2018-04-05  0:20 ` bugzilla-daemon
  2018-04-05  5:34 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-05-31 16:07 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #6 from Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> ---
Does the series available at

https://patchwork.freedesktop.org/series/8048/

fix this issue?

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

[-- Attachment #1.2: Type: text/html, Size: 1153 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] 9+ messages in thread

* [Bug 93216] Artifacts with DCC when render target also texture
  2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
                   ` (5 preceding siblings ...)
  2016-05-31 16:07 ` bugzilla-daemon
@ 2018-04-05  0:20 ` bugzilla-daemon
  2018-04-05  5:34 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-04-05  0:20 UTC (permalink / raw)
  To: dri-devel


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

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

Timothy Arceri <t_arceri@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #7 from Timothy Arceri <t_arceri@yahoo.com.au> ---
(In reply to Bas Nieuwenhuizen from comment #6)
> Does the series available at
> 
> https://patchwork.freedesktop.org/series/8048/
> 
> fix this issue?

Hi Axel, those patches landed a long time ago. Is this issue still happening or
can we close this bug?

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

[-- Attachment #1.2: Type: text/html, Size: 2196 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] 9+ messages in thread

* [Bug 93216] Artifacts with DCC when render target also texture
  2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-04-05  0:20 ` bugzilla-daemon
@ 2018-04-05  5:34 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-04-05  5:34 UTC (permalink / raw)
  To: dri-devel


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

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

Axel Davy <davyaxel0@gmail.com> changed:

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

--- Comment #8 from Axel Davy <davyaxel0@gmail.com> ---
The bug seems indeed to have been corrected since.

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

[-- Attachment #1.2: Type: text/html, Size: 2034 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] 9+ messages in thread

end of thread, other threads:[~2018-04-05  5:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-02 17:17 [Bug 93216] Artifacts with DCC when render target also texture bugzilla-daemon
2015-12-02 17:18 ` bugzilla-daemon
2015-12-02 17:20 ` bugzilla-daemon
2015-12-02 17:37 ` bugzilla-daemon
2015-12-02 18:12 ` bugzilla-daemon
2016-01-20  0:33 ` bugzilla-daemon
2016-05-31 16:07 ` bugzilla-daemon
2018-04-05  0:20 ` bugzilla-daemon
2018-04-05  5:34 ` 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.