Re: LLVM 7.0 + Wayland = broken mouse control

2018-01-30 Thread mikhail
Big thanks, now it works also on the login screen.
And /etc/profile.d/gnome-workaround.sh not needed.

On Tue, 2018-01-30 at 16:52 +, Mike Lothian wrote:
> I think you can set it by:
> 
> echo "allow_rgb10_configs=false" >> /etc/environment
> 
> On Tue, 30 Jan 2018 at 16:38 mikhail 
> wrote:
> > On Tue, 2018-01-30 at 11:55 +0100, Michel Dänzer wrote:
> > >
> > > No, it just means there's an error in the way you're trying to
> > set
> > > the
> > > workaround. Maybe it needs to be "export
> > allow_rgb10_configs=false"?
> > >
> > > You can also try the method I described in
> > > https://bugs.freedesktop.org/show_bug.cgi?id=104808#c2 , I
> > verified
> > > that
> > > to work.
> > >
> > 
> > You right, my mistake I forgot add export.
> > Of cource right variant:
> > echo "export allow_rgb10_configs=false" > /etc/profile.d/gnome-
> > workaround.sh
> > 
> > Mouse click now works again with latest llvm and mesa.
> > It is unfortunate I don't know how apply this variable to the login
> > screen (gdm).
> > 
> > Anyway, thanks.
> > ___
> > amd-gfx mailing list
> > amd-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/amd-gfx
> 
> 
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


Re: LLVM 7.0 + Wayland = broken mouse control

2018-01-30 Thread Mike Lothian
I think you can set it by:

echo "allow_rgb10_configs=false" >> /etc/environment

On Tue, 30 Jan 2018 at 16:38 mikhail  wrote:

> On Tue, 2018-01-30 at 11:55 +0100, Michel Dänzer wrote:
> >
> > No, it just means there's an error in the way you're trying to set
> > the
> > workaround. Maybe it needs to be "export allow_rgb10_configs=false"?
> >
> > You can also try the method I described in
> > https://bugs.freedesktop.org/show_bug.cgi?id=104808#c2 , I verified
> > that
> > to work.
> >
>
> You right, my mistake I forgot add export.
> Of cource right variant:
> echo "export allow_rgb10_configs=false" > /etc/profile.d/gnome-
> workaround.sh
>
> Mouse click now works again with latest llvm and mesa.
> It is unfortunate I don't know how apply this variable to the login
> screen (gdm).
>
> Anyway, thanks.
> ___
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


Re: LLVM 7.0 + Wayland = broken mouse control

2018-01-30 Thread mikhail
On Tue, 2018-01-30 at 11:55 +0100, Michel Dänzer wrote:
> 
> No, it just means there's an error in the way you're trying to set
> the
> workaround. Maybe it needs to be "export allow_rgb10_configs=false"?
> 
> You can also try the method I described in
> https://bugs.freedesktop.org/show_bug.cgi?id=104808#c2 , I verified
> that
> to work.
> 

You right, my mistake I forgot add export.
Of cource right variant:
echo "export allow_rgb10_configs=false" > /etc/profile.d/gnome-
workaround.sh

Mouse click now works again with latest llvm and mesa.
It is unfortunate I don't know how apply this variable to the login
screen (gdm).

Anyway, thanks.
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


Re: LLVM 7.0 + Wayland = broken mouse control

2018-01-30 Thread Michel Dänzer

[ Dropping gpudriverdevsupport, please never cross-post between that and
public mailing lists ]

On 2018-01-29 08:58 PM, mikhail wrote:
> 
> On Mon, 2018-01-29 at 19:18 +0100, Marek Olšák wrote:
>> Please report this issue to the gnome-shell team. gnome-shell has a
>> bug in how they handle (or ignore) 10-bits-per-channel visuals.
> 
> I already reported here: 
> https://gitlab.gnome.org/GNOME/mutter/issues/2
> 
>> The workaround is to set the environment variable
>> "allow_rgb10_configs=false" for gnome-shell.
> 
> I added environment variable as you said:
> # echo "allow_rgb10_configs=false" > /etc/profile.d/gnome-workaround.sh
> But it not helps workaround problem.
> Maybe we made a mistake in the diagnosis?
No, it just means there's an error in the way you're trying to set the
workaround. Maybe it needs to be "export allow_rgb10_configs=false"?

You can also try the method I described in
https://bugs.freedesktop.org/show_bug.cgi?id=104808#c2 , I verified that
to work.


-- 
Earthling Michel Dänzer   |   http://www.amd.com
Libre software enthusiast | Mesa and X developer
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


Re: LLVM 7.0 + Wayland = broken mouse control

2018-01-29 Thread mikhail
Can you install Fedora 27  + llvm and mesa from this repo
"https://copr.fedorainfracloud.org/coprs/che/mesa/"; + use kernel from here "git 
clone -b amd-staging-drm-next
git://people.freedesktop.org/~agd5f/linux" and check why not worked
mouse hover + click and crashes Unity games?

At least identify the cause of the two problems.


On Mon, 2018-01-29 at 23:10 +0100, Marek Olšák wrote:
> On Mon, Jan 29, 2018 at 8:58 PM, mikhail  m> wrote:
> > 
> > On Mon, 2018-01-29 at 19:18 +0100, Marek Olšák wrote:
> > > Please report this issue to the gnome-shell team. gnome-shell has
> > > a
> > > bug in how they handle (or ignore) 10-bits-per-channel visuals.
> > 
> > I already reported here:
> > https://gitlab.gnome.org/GNOME/mutter/issues/2
> > 
> > > The workaround is to set the environment variable
> > > "allow_rgb10_configs=false" for gnome-shell.
> > 
> > I added environment variable as you said:
> > # echo "allow_rgb10_configs=false" > /etc/profile.d/gnome-
> > workaround.sh
> > But it not helps workaround problem.
> > Maybe we made a mistake in the diagnosis?
> 
> It's possible.
> 
> Marek
> 
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


Re: LLVM 7.0 + Wayland = broken mouse control

2018-01-29 Thread Marek Olšák
On Mon, Jan 29, 2018 at 8:58 PM, mikhail  wrote:
>
> On Mon, 2018-01-29 at 19:18 +0100, Marek Olšák wrote:
>> Please report this issue to the gnome-shell team. gnome-shell has a
>> bug in how they handle (or ignore) 10-bits-per-channel visuals.
>
> I already reported here:
> https://gitlab.gnome.org/GNOME/mutter/issues/2
>
>> The workaround is to set the environment variable
>> "allow_rgb10_configs=false" for gnome-shell.
>
> I added environment variable as you said:
> # echo "allow_rgb10_configs=false" > /etc/profile.d/gnome-workaround.sh
> But it not helps workaround problem.
> Maybe we made a mistake in the diagnosis?

It's possible.

Marek
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


Re: LLVM 7.0 + Wayland = broken mouse control

2018-01-29 Thread mikhail

On Mon, 2018-01-29 at 19:18 +0100, Marek Olšák wrote:
> Please report this issue to the gnome-shell team. gnome-shell has a
> bug in how they handle (or ignore) 10-bits-per-channel visuals.

I already reported here: 
https://gitlab.gnome.org/GNOME/mutter/issues/2

> The workaround is to set the environment variable
> "allow_rgb10_configs=false" for gnome-shell.

I added environment variable as you said:
# echo "allow_rgb10_configs=false" > /etc/profile.d/gnome-workaround.sh
But it not helps workaround problem.
Maybe we made a mistake in the diagnosis?


On Wed, 2018-01-24 at 16:45 +, Olsak, Marek wrote:
> Note that gnome-shell has a bug that if the driver supports 10bit
> formats, incorrect drawing and wrong colors and/or corruption occur.
> All drivers that say that they support 10bit formats won't work with
> gnome-shell very well.
> 
> My position on this issue is to keep Mesa as-is, leaving gnome-shell
> broken, so that gnome-shell developers are alerted and fix their
> code. If we react by removing 10bit support from drivers, the odds
> are gnome-shell will never be fixed and drivers will never be able to
> have 10bit support in them.
> 
> Marek
> 
> From: Daenzer, Michel
> Sent: Wednesday, January 24, 2018 11:33:49 AM
> To: Mikhail Gavrilov
> Cc: gpudriverdevsupport
> Subject: Re: LLVM 7.0 + Wayland = broken mouse control
>  
> 
> On 2018-01-24 11:10 AM, Mikhail Gavrilov wrote:
> > Hi.
> > Anybody already tryied LLVM 7 and Wayland???
> > After LLVM is updated in repo
> > https://copr.fedorainfracloud.org/coprs/che/mesa/ to 7.0.0-
> 0.1.r322132
> > mouse hover are stop working on all controls. It means I unnable
> > launch application by clicking on application icon also I unnable
> drag
> > and resize windows. And all controls are unclickable. But keyboard
> > works fine.
> 
> This sounds like the known gnome-shell/mutter bugs related to 10
> bits 
> per component colour formats. I.e. it's probably not directly related
> to 
> LLVM but to changes in how Mesa exposes such formats to applications.
> 
> 
> P.S. Please send this kind of inquiry to the amd-gfx mailing list 
> instead of this address.
> 
> 
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx