Re: [Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-06 Thread Germano Massullo
Thank you to all of you for the precious help!
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-06 Thread Michel Dänzer
On 2018-03-06 02:27 PM, Emil Velikov wrote:
> On 6 March 2018 at 12:57, Gert Wollny  wrote:
>> Am Dienstag, den 06.03.2018, 13:10 +0100 schrieb Germano Massullo:
>>> Il 06/03/2018 09:06, Gert Wollny ha scritto:
 Am Dienstag, den 06.03.2018, 01:10 +0100 schrieb Germano Massullo:
> Question: is LIBGL_DRIVERS_PATH enough to let Firefox use a
> different
> Mesa version?

 You will also need to set LIBGL_DRIVERS_PATH
>>>
>>> Maybe it is a typo? I already mentioned LIBGL_DRIVERS_PATH in my
>>> message
>> Sorry I kind of mixed that up, you should also set LD_LIBRARY_PATH to
>> use the mesa libraries related to the drivers. This will probably do:
>>
>> LD_LIBRARY_PATH= \
>> /home/user/mesa-dri-drivers-18.0.0-0.1.rc4.fc27.x86_64/usr/lib64
>>
> A few things that come to mind:
> 
> a) A 32/64 bit issue
> 
> For example: one is pointing to 32bit binaries, while 64bit ones are
> needed, or vice-versa.
> 
> Have _both_ present and use $LIB. The variable will expand accordingly
> - be that lib, lib32, lib64, lib/x86_64-linux-gnu or other
> 
> b) Missing/wrong dependency - libstdc++, llvm, other
> The debug hints below will help here.
> 
> 
> Note that the issue (one here or bugzilla) can be in either the
> frontend libraries or the backend DRI driver.
> 
> * For normal libraries - libGL/libEGL/libglapi, libgbm
> LD_LIBRARY_PATH=/some/chroot/usr/$LIB/
> to debug
> LD_DEBUG=libs
> 
> * For the backend DRI module - foo_dri.so
> LIBGL_DRIVERS_PATH=/some/chroot/usr/$LIB/dri
> to debug
> LIBGL_DEBUG=verbose

FWIW, I recommend using single quotes around $LIB:

LD_LIBRARY_PATH='/some/chroot/usr/$LIB/'
LIBGL_DRIVERS_PATH='/some/chroot/usr/$LIB/dri'

Otherwise the shell will substitute it with the wrong thing.


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


Re: [Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-06 Thread Emil Velikov
On 6 March 2018 at 12:57, Gert Wollny  wrote:
> Am Dienstag, den 06.03.2018, 13:10 +0100 schrieb Germano Massullo:
>> Il 06/03/2018 09:06, Gert Wollny ha scritto:
>> > Am Dienstag, den 06.03.2018, 01:10 +0100 schrieb Germano Massullo:
>> > > Question: is LIBGL_DRIVERS_PATH enough to let Firefox use a
>> > > different
>> > > Mesa version?
>> >
>> > You will also need to set LIBGL_DRIVERS_PATH
>>
>> Maybe it is a typo? I already mentioned LIBGL_DRIVERS_PATH in my
>> message
> Sorry I kind of mixed that up, you should also set LD_LIBRARY_PATH to
> use the mesa libraries related to the drivers. This will probably do:
>
> LD_LIBRARY_PATH= \
> /home/user/mesa-dri-drivers-18.0.0-0.1.rc4.fc27.x86_64/usr/lib64
>
A few things that come to mind:

a) A 32/64 bit issue

For example: one is pointing to 32bit binaries, while 64bit ones are
needed, or vice-versa.

Have _both_ present and use $LIB. The variable will expand accordingly
- be that lib, lib32, lib64, lib/x86_64-linux-gnu or other

b) Missing/wrong dependency - libstdc++, llvm, other
The debug hints below will help here.


Note that the issue (one here or bugzilla) can be in either the
frontend libraries or the backend DRI driver.

* For normal libraries - libGL/libEGL/libglapi, libgbm
LD_LIBRARY_PATH=/some/chroot/usr/$LIB/
to debug
LD_DEBUG=libs

* For the backend DRI module - foo_dri.so
LIBGL_DRIVERS_PATH=/some/chroot/usr/$LIB/dri
to debug
LIBGL_DEBUG=verbose

I'd start with setting all of the above and getting things to run.
Next step is to track if it's a frontend or backend issue.

Note: ensure that the configure/build options haven't changed. Or
check that that their change isn't causing the bugzilla issue.

HTH
Emil
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-06 Thread Gert Wollny
Am Dienstag, den 06.03.2018, 13:10 +0100 schrieb Germano Massullo:
> Il 06/03/2018 09:06, Gert Wollny ha scritto:
> > Am Dienstag, den 06.03.2018, 01:10 +0100 schrieb Germano Massullo:
> > > Question: is LIBGL_DRIVERS_PATH enough to let Firefox use a
> > > different
> > > Mesa version?
> > 
> > You will also need to set LIBGL_DRIVERS_PATH
> 
> Maybe it is a typo? I already mentioned LIBGL_DRIVERS_PATH in my
> message
Sorry I kind of mixed that up, you should also set LD_LIBRARY_PATH to
use the mesa libraries related to the drivers. This will probably do: 

LD_LIBRARY_PATH= \
/home/user/mesa-dri-drivers-18.0.0-0.1.rc4.fc27.x86_64/usr/lib64

Best,
Gert 

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-06 Thread Germano Massullo
Il 06/03/2018 09:06, Gert Wollny ha scritto:
> Am Dienstag, den 06.03.2018, 01:10 +0100 schrieb Germano Massullo:
>> Question: is LIBGL_DRIVERS_PATH enough to let Firefox use a different
>> Mesa version?
> You will also need to set LIBGL_DRIVERS_PATH

Maybe it is a typo? I already mentioned LIBGL_DRIVERS_PATH in my message

Best regards
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-06 Thread Gert Wollny
Am Dienstag, den 06.03.2018, 01:10 +0100 schrieb Germano Massullo:
> 
> Question: is LIBGL_DRIVERS_PATH enough to let Firefox use a different
> Mesa version?
You will also need to set LIBGL_DRIVERS_PATH


best, 
Gert 

> I am asking this because on the console I am getting
> 
> libGL error: unable to load driver: radeonsi_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: radeonsi
> libGL error: unable to load driver: radeonsi_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: radeonsi
> libGL error: unable to load driver: swrast_dri.so
> libGL error: failed to load driver: swrast
> libGL error: unable to load driver: radeonsi_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: radeonsi
> libGL error: unable to load driver: radeonsi_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: radeonsi
> libGL error: unable to load driver: swrast_dri.so
> libGL error: failed to load driver: swras
> 
> Best regards
> ___
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-05 Thread Germano Massullo
Good day
I am testing Firefox with various Mesa versions to find which version
started triggering the bug
<>
https://bugs.freedesktop.org/show_bug.cgi?id=104216

I packaged Mesa 18 for Fedora 27
https://copr-be.cloud.fedoraproject.org/results/germano/mesa_18/fedora-27-x86_64/00720216-mesa/
and then I unpacked
mesa-dri-drivers-18.0.0-0.1.rc4.fc27.x86_64.rpm
and runned Firefox with command
LIBGL_DRIVERS_PATH=/home/user/mesa-dri-drivers-18.0.0-0.1.rc4.fc27.x86_64/usr/lib64/dri/
firefox

Question: is LIBGL_DRIVERS_PATH enough to let Firefox use a different
Mesa version?
I am asking this because on the console I am getting

libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swras

Best regards
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev