Re: [Mesa-dev] [PATCH 06/40] glsl: add helper to convert pointers to uint64_t

2017-02-11 Thread Bas Nieuwenhuizen
On Sat, Feb 11, 2017, at 13:03, Timothy Arceri wrote: > > > On 10/02/17 21:43, Nicolai Hähnle wrote: > > On 07.02.2017 04:42, Timothy Arceri wrote: > >> From: Timothy Arceri > >> > >> This will be used to store all pointers in the cache as 64bit ints > >>

Re: [Mesa-dev] [PATCH 06/40] glsl: add helper to convert pointers to uint64_t

2017-02-11 Thread Davin McCall
On 11/02/17 12:03, Timothy Arceri wrote: > > > On 10/02/17 21:43, Nicolai Hähnle wrote: >> On 07.02.2017 04:42, Timothy Arceri wrote: >>> From: Timothy Arceri >>> >>> This will be used to store all pointers in the cache as 64bit ints >>> allowing us to avoid issues

Re: [Mesa-dev] [PATCH 06/40] glsl: add helper to convert pointers to uint64_t

2017-02-11 Thread Timothy Arceri
On 10/02/17 21:43, Nicolai Hähnle wrote: On 07.02.2017 04:42, Timothy Arceri wrote: From: Timothy Arceri This will be used to store all pointers in the cache as 64bit ints allowing us to avoid issues when a 32bit program reads a cached shader that was created

Re: [Mesa-dev] [PATCH 06/40] glsl: add helper to convert pointers to uint64_t

2017-02-10 Thread Timothy Arceri
On 10/02/17 21:41, Marek Olšák wrote: Why would you wanna store pointers in the cache? Because we need them to restore the various things that get crammed into prog_data on i965. Such as uniforms, images, etc https://github.com/tarceri/Mesa/commit/bd0391b0c9ee56c14ccf5abbff4fad15d9cd70d0

Re: [Mesa-dev] [PATCH 06/40] glsl: add helper to convert pointers to uint64_t

2017-02-10 Thread Nicolai Hähnle
On 07.02.2017 04:42, Timothy Arceri wrote: From: Timothy Arceri This will be used to store all pointers in the cache as 64bit ints allowing us to avoid issues when a 32bit program reads a cached shader that was created by a 64bit application. ---

Re: [Mesa-dev] [PATCH 06/40] glsl: add helper to convert pointers to uint64_t

2017-02-10 Thread Marek Olšák
Why would you wanna store pointers in the cache? Marek On Tue, Feb 7, 2017 at 4:42 AM, Timothy Arceri wrote: > From: Timothy Arceri > > This will be used to store all pointers in the cache as 64bit ints > allowing us to avoid issues when a

[Mesa-dev] [PATCH 06/40] glsl: add helper to convert pointers to uint64_t

2017-02-06 Thread Timothy Arceri
From: Timothy Arceri This will be used to store all pointers in the cache as 64bit ints allowing us to avoid issues when a 32bit program reads a cached shader that was created by a 64bit application. --- src/compiler/glsl/shader_cache.h | 10 ++ 1 file