Bug 70910

Summary: [radeonsi&r600g] wrong colors on radeonsi screen in some places when radeonsi and r600g gpus are installed
Product: Mesa Reporter: Vadim Girlin <ptpzz>
Component: Drivers/Gallium/radeonsiAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: screenshot
xorg log with radeonsi/glamor and r600g/glamor
xorg log with radeonsi/glamor and r600g/exa
xorg log when running w/o xorg.conf
xorg.conf

Description Vadim Girlin 2013-10-27 12:41:57 UTC
Created attachment 88176 [details]
screenshot

Looks like in some cases there is RGB <-> BGR mismatch, so that red icons become blue, etc. On the attached screenshot xchat icon on the xfce panel is rendered normally - red/yellow, but the same icon on a tooltip below is blue.

Similar issues can be seen in some other places - e.g. window decorations, icons on buttons in dialog windows, but in many other cases the colors are correct - e.g. with glxgears.

AFAICS there is no such problem on r600g screen. Also, without r600g card there is no such problem on radeonsi screen as well, it happens only when two cards are installed.

r600g uses EXA in my config, but IIRC it was the same when both drivers use glamor.
Comment 1 Michel Dänzer 2014-02-13 03:14:28 UTC
(In reply to comment #1)
> r600g uses EXA in my config, but IIRC it was the same when both drivers use
> glamor.

Can you double-check that? Also, please attach the Xorg log file for both cases.
Comment 2 Vadim Girlin 2014-02-14 17:59:26 UTC
Created attachment 94088 [details]
xorg log with radeonsi/glamor and r600g/glamor

Unfortunately I can't make both drivers work with glamor now, X fails to start. I'm not sure if it really worked previously.
Comment 3 Vadim Girlin 2014-02-14 18:01:42 UTC
Created attachment 94089 [details]
xorg log with radeonsi/glamor and r600g/exa

With radeonsi/glamor and r600g/exa everything works, I have two screens, but colors on radeonsi screen are wrong.
Comment 4 Vadim Girlin 2014-02-14 18:03:52 UTC
Created attachment 94090 [details]
xorg log when running w/o xorg.conf

If I remove xorg.conf (both cards still plugged in), I have one screen working (radeonsi) with correct colors.
Comment 5 Vadim Girlin 2014-02-14 18:06:56 UTC
Created attachment 94091 [details]
xorg.conf

Here is my xorg.conf. I just uncommented corresponding line for juniper to try glamor, maybe I need something else to make it work?
Comment 6 Michel Dänzer 2014-02-17 08:22:51 UTC
(In reply to comment #2)
> Unfortunately I can't make both drivers work with glamor now, X fails to
> start.

The log file looks like it starts up fine; it looks like there's a VT switch before the end of the log. Why do you say it fails to start? Is there more information in the X server's stderr output?

(In reply to comment #4)
> If I remove xorg.conf (both cards still plugged in), I have one screen
> working (radeonsi) with correct colors.

Looks like the Evergreen card should be available via DRI_PRIME in this case.
Comment 7 Oded Gabbay 2016-05-24 14:11:00 UTC
Hi Vadim,
Is it still relevant for you ?
Does it still happen ?
Comment 8 Vadim Girlin 2016-06-05 12:28:27 UTC
(In reply to Oded Gabbay from comment #7)
> Hi Vadim,
> Is it still relevant for you ?
> Does it still happen ?

Hi, Oded,

It's not relevant for me anymore. I didn't test it since 2014, so not sure if it still happens.

I guess the bug can be closed.
Comment 9 Timothy Arceri 2018-04-10 11:47:37 UTC
Closing as per comment 8

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.