Skip to contentSkip to conversation

Compton weird colors

Bug 104597 [email protected] 1 participant 20 messages Jan 12, 2018 – Sep 25, 2019

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 104597
Summary: Compton weird colors
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 136675
--> https://bugs.freedesktop.org/attachment.cgi?id=136675&action=edit
Desktop with compton --backend glx

RX 480, mesa master.

Running compton --backend glx produces the effect in the attached image. The colors are corrupted, but some applications look correct.

There is one situation where I have seen a similar effect not involving compton and that is kwin's window preview of SteamVR's vrmonitor:
https://www.youtube.com/watch?v=IHHQS_Q5uqE. All other window previews work correctly, it's only the vrmonitor that's broken.
But that's enough to say it's not a compton specific problem.

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

#1 lore raw

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

--- Comment #1 from Michel Dänzer <[email protected]> --- It could be similar bugs in compton and kwin. :)

If this started recently, maybe you can try bisecting Mesa.

I wonder if this might be related to bug 104599.

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

author Reviewed-by Marek Olšák
#2 lore raw
In reply to [email protected]

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

Christoph Haag <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|Compton weird colors        |[bisected] Compton weird
                   |                            |colors

--- Comment #2 from Christoph Haag <[email protected]> --- e5ff036c6751c39ee008ca7db47b3ce4d7a38a15 is the first bad commit commit e5ff036c6751c39ee008ca7db47b3ce4d7a38a15

Author: Mario Kleiner <[email protected]>
Date:   Fri Dec 15 23:05:07 2017 +0100

st/dri: Add support for BGR[A/X]1010102 formats.

Exposes RGBA 10 10 10 2 and 10 10 10 0 visuals and fbconfigs for 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

#3 lore raw
In reply to [email protected]

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

--- Comment #3 from [email protected] ---
bug 104540 is probably the very same issue, since OBS uses Xcomposite to capture a window.

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

#4 lore raw
In reply to [email protected]

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

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from [email protected] ---
*** Bug 104540 has been marked as a duplicate of this bug. ***

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

#5 lore raw
In reply to [email protected]

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

--- Comment #5 from Mario Kleiner <[email protected]> --- Can you try what happens if you add the following snippet inside the <device> section of your /etc/drirc and restart compton?

<application name="compton" executable="compton">

    <option name="allow_rgb10_configs" value="false"/>

</application>

The output of xdpyinfo and glxinfo could also be useful.

To disable the new rgb10 support globally, one can add this snippet instead:

<option name="allow_rgb10_configs" value="false"/>

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

#6 lore raw
In reply to [email protected]

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

--- Comment #6 from Christoph Haag <[email protected]> --- Created attachment 136700
--> https://bugs.freedesktop.org/attachment.cgi?id=136700&action=edit
xdpyinfo

No need to add to drirc, you can also set drirc options with an environment variable.

This indeed works fine, no color issue:
allow_rgb10_configs=false compton --backend glx

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

#7 lore raw
In reply to [email protected]

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

--- Comment #7 from Christoph Haag <[email protected]> --- Created attachment 136701
--> https://bugs.freedesktop.org/attachment.cgi?id=136701&action=edit
glxinfo

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

#8 lore raw
In reply to [email protected]

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

--- Comment #8 from Mario Kleiner <[email protected]> --- compton didn't cause problems for me under default 24 bit color-depth on X-Server 1.19.3.

But Christoph's setup is running the new server 1.19.6, and the glxinfo shows various new 32 bit visuals, not only rgba 8 8 8 8 but also rgba 10 10 10 2.

1.19.6 contains the patch "glx: Duplicate relevant fbconfigs for compositing visuals" backported from master, adding lots new 32 bpp compositing visuals, so that might trigger the problems?

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

#9 lore raw
In reply to [email protected]

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

--- Comment #9 from Fredrik Höglund <[email protected]> --- The broken window preview is actually a bug in plasma.

The thumbnail code doesn't look at the sizes of the color channels; it only checks that the GLX_BUFFER_SIZE matches the depth of the window.

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

#10 lore raw
In reply to [email protected]

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

--- Comment #10 from Mario Kleiner <[email protected]> --- Created attachment 137087
--> https://bugs.freedesktop.org/attachment.cgi?id=137087&action=edit
Possible fix, tested against server 1.19 branch.

This patch fixes the problem with compton, as tested against server 1.19 branch. Also applies cleanly against master, but i haven't tested it on master yet.

So far tested with KDE-5, compiz, and compton, on ati-ddx under Radeon gfx, both screen depth 24 and 30.

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

#11 lore raw
In reply to [email protected]

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

--- Comment #11 from [email protected] --- (In reply to Mario Kleiner from comment #10)

Quoted 9 lines

Created attachment 137087 [details] [review]
Possible fix, tested against server 1.19 branch.

This patch fixes the problem with compton, as tested against server 1.19 branch. Also applies cleanly against master, but i haven't tested it on master yet.

So far tested with KDE-5, compiz, and compton, on ati-ddx under Radeon gfx, both screen depth 24 and 30.

tested here 1.19 as well, sadly does not fix the issue with OBS xcomposite window capture mentioned in https://bugs.freedesktop.org/show_bug.cgi?id=104540

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

#12 lore raw
In reply to [email protected]

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

--- Comment #12 from [email protected] --- (In reply to Mario Kleiner from comment #5)

Quoted 4 lines

Can you try what happens if you add the following snippet inside the <device> section of your /etc/drirc and restart compton?

<application name="compton" executable="compton">

Quoted 8 lines
    <option name="allow_rgb10_configs" value="false"/>

</application>

The output of xdpyinfo and glxinfo could also be useful.

To disable the new rgb10 support globally, one can add this snippet instead:

<option name="allow_rgb10_configs" value="false"/>

adding this for obs resolves
https://bugs.freedesktop.org/show_bug.cgi?id=104540

<application name="obs" executable="obs">

     <option name="allow_rgb10_configs" value="false"/>

</application>

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

#13 lore raw
In reply to [email protected]

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

--- Comment #13 from Michel Dänzer <[email protected]> --- (In reply to gloriouseggroll from comment #12)

Quoted 2 lines

adding this for obs resolves
https://bugs.freedesktop.org/show_bug.cgi?id=104540

That probably means it's an OBS bug, not handling 10bpc configs correctly. Please report it to the OBS developers.

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

#14 lore raw
In reply to [email protected]

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

--- Comment #14 from Luke A. Guest <[email protected]> --- Looks like it's the same as
https://obsproject.com/forum/threads/xcomposite-colours-all-wrong.81265/ and
https://obsproject.com/forum/threads/xcomposite-window-capture-not-working.81389/.

It's been pointed out it's not Obs as TyMiles2012 moved back from the Oibaf PPA on Ubuntu 17.10.1 back to standard drivers and it no longer affects him.

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

#15 lore raw
In reply to [email protected]

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

--- Comment #15 from Michel Dänzer <[email protected]> --- (In reply to Luke A. Guest from comment #14)

Quoted 2 lines

It's been pointed out it's not Obs as TyMiles2012 moved back from the Oibaf PPA on Ubuntu 17.10.1 back to standard drivers and it no longer affects him.

That doesn't mean it's a Mesa bug, just that the OBS issue was triggered by a change in Mesa's behaviour (it now exposes 10-bit-per-component colour configs).

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

#16 lore raw
In reply to [email protected]

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

Dave Gilbert <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #16 from Dave Gilbert <[email protected]> --- *** Bug 105824 has been marked as a duplicate of this bug. ***

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

#17 lore raw
In reply to [email protected]

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

Timothy Arceri <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #17 from Timothy Arceri <[email protected]> --- *** Bug 105918 has been marked as a duplicate of this bug. ***

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

#18 lore raw
In reply to [email protected]

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

Christian König <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #18 from Christian König <[email protected]> --- *** Bug 108937 has been marked as a duplicate of this bug. ***

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

#19 lore raw
In reply to [email protected]

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

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #19 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1299.

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