Re: [Mesa-dev] shader cache backward compatibility

2018-10-02 Thread Timothy Arceri
On 3/9/18 6:53 pm, Alexander Larsson wrote: On Mon, Sep 3, 2018 at 10:41 AM Alexander Larsson wrote: On Fri, Aug 31, 2018 at 4:05 PM Emil Velikov wrote: Valid point - I forgot about that. A couple of ideas come to mind: - static link LLVM (Flatpak already does it) No LLVM changes

Re: [Mesa-dev] shader cache backward compatibility

2018-09-18 Thread Timothy Arceri
On 3/9/18 6:53 pm, Alexander Larsson wrote: On Mon, Sep 3, 2018 at 10:41 AM Alexander Larsson wrote: On Fri, Aug 31, 2018 at 4:05 PM Emil Velikov wrote: Valid point - I forgot about that. A couple of ideas come to mind: - static link LLVM (Flatpak already does it) No LLVM changes

Re: [Mesa-dev] shader cache backward compatibility

2018-09-03 Thread Alexander Larsson
On Mon, Sep 3, 2018 at 10:41 AM Alexander Larsson wrote: > > On Fri, Aug 31, 2018 at 4:05 PM Emil Velikov wrote: > > > > Valid point - I forgot about that. > > > > A couple of ideas come to mind: > > - static link LLVM (Flatpak already does it) > > No LLVM changes needed. > > > > - shared link

Re: [Mesa-dev] shader cache backward compatibility

2018-09-03 Thread Alexander Larsson
On Fri, Aug 31, 2018 at 4:05 PM Emil Velikov wrote: > > Valid point - I forgot about that. > > A couple of ideas come to mind: > - static link LLVM (Flatpak already does it) > No LLVM changes needed. > > - shared link LLVM > LLVM add -Wl,--build-id=sha1 As a very very simple workaround, can

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Bas Nieuwenhuizen
On Fri, Aug 31, 2018 at 4:05 PM Emil Velikov wrote: > > On 31 August 2018 at 14:36, Timothy Arceri wrote: > > On 31/08/18 21:07, Emil Velikov wrote: > >> > >> On 31 August 2018 at 11:37, Timothy Arceri wrote: > >>> > >>> On 31/08/18 20:10, Emil Velikov wrote: > > > Hi Timothy, >

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Emil Velikov
On 31 August 2018 at 14:36, Timothy Arceri wrote: > On 31/08/18 21:07, Emil Velikov wrote: >> >> On 31 August 2018 at 11:37, Timothy Arceri wrote: >>> >>> On 31/08/18 20:10, Emil Velikov wrote: Hi Timothy, On 31 August 2018 at 10:57, Timothy Arceri wrote: >

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Timothy Arceri
On 31/08/18 21:07, Emil Velikov wrote: On 31 August 2018 at 11:37, Timothy Arceri wrote: On 31/08/18 20:10, Emil Velikov wrote: Hi Timothy, On 31 August 2018 at 10:57, Timothy Arceri wrote: On 31/08/18 19:40, Bas Nieuwenhuizen wrote: +TImothy On Fri, Aug 31, 2018 at 11:32 AM

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Alexander Larsson
On Fri, Aug 31, 2018 at 11:57 AM Timothy Arceri wrote: > > On 31/08/18 19:40, Bas Nieuwenhuizen wrote: > We depend on build timestamps of the mesa/llvm binaries when generating > the sha for cache items. So if flatpak results in two versions of mesa > having the same timestamp then there is

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Emil Velikov
On 31 August 2018 at 11:37, Timothy Arceri wrote: > On 31/08/18 20:10, Emil Velikov wrote: >> >> Hi Timothy, >> >> On 31 August 2018 at 10:57, Timothy Arceri wrote: >>> >>> On 31/08/18 19:40, Bas Nieuwenhuizen wrote: +TImothy On Fri, Aug 31, 2018 at 11:32 AM Alexander

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Timothy Arceri
On 31/08/18 20:10, Emil Velikov wrote: Hi Timothy, On 31 August 2018 at 10:57, Timothy Arceri wrote: On 31/08/18 19:40, Bas Nieuwenhuizen wrote: +TImothy On Fri, Aug 31, 2018 at 11:32 AM Alexander Larsson wrote: Hi, I'm the developer behind flatpak (https://flatpak.org/) and we've

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Emil Velikov
Hi Timothy, On 31 August 2018 at 10:57, Timothy Arceri wrote: > On 31/08/18 19:40, Bas Nieuwenhuizen wrote: >> >> +TImothy >> >> On Fri, Aug 31, 2018 at 11:32 AM Alexander Larsson >> wrote: >>> >>> >>> Hi, I'm the developer behind flatpak (https://flatpak.org/) and we've >>> recently run into

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Timothy Arceri
On 31/08/18 19:40, Bas Nieuwenhuizen wrote: +TImothy On Fri, Aug 31, 2018 at 11:32 AM Alexander Larsson wrote: Hi, I'm the developer behind flatpak (https://flatpak.org/) and we've recently run into some issues with the mesa shader cache. Flatpak has a app/runtime split where the runtime is

Re: [Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Bas Nieuwenhuizen
+TImothy On Fri, Aug 31, 2018 at 11:32 AM Alexander Larsson wrote: > > Hi, I'm the developer behind flatpak (https://flatpak.org/) and we've > recently run into some issues with the mesa shader cache. Flatpak has > a app/runtime split where the runtime is shared between app and > provides /usr.

[Mesa-dev] shader cache backward compatibility

2018-08-31 Thread Alexander Larsson
Hi, I'm the developer behind flatpak (https://flatpak.org/) and we've recently run into some issues with the mesa shader cache. Flatpak has a app/runtime split where the runtime is shared between app and provides /usr. The runtime contains a version of mesa, but this can be overridden by runtime