Re: [Mesa-dev] [PATCH 1/7] util/mesa-sha1: add a context clone function

2017-03-13 Thread Emil Velikov
On 13 March 2017 at 12:00, Grazvydas Ignotas wrote: > On Mon, Mar 13, 2017 at 1:17 PM, Emil Velikov > wrote: >> On 12 March 2017 at 18:32, Grazvydas Ignotas wrote: >>> This is useful when we need to compute many hashes which all have some >>> common data hashed in. It works by first hashing the

Re: [Mesa-dev] [PATCH 1/7] util/mesa-sha1: add a context clone function

2017-03-13 Thread Grazvydas Ignotas
On Mon, Mar 13, 2017 at 1:17 PM, Emil Velikov wrote: > On 12 March 2017 at 18:32, Grazvydas Ignotas wrote: >> This is useful when we need to compute many hashes which all have some >> common data hashed in. It works by first hashing the common data and >> keeping the context, then for each hashin

Re: [Mesa-dev] [PATCH 1/7] util/mesa-sha1: add a context clone function

2017-03-13 Thread Emil Velikov
On 12 March 2017 at 18:32, Grazvydas Ignotas wrote: > This is useful when we need to compute many hashes which all have some > common data hashed in. It works by first hashing the common data and > keeping the context, then for each hashing operation clone the common > context and continue hashing

Re: [Mesa-dev] [PATCH 1/7] util/mesa-sha1: add a context clone function

2017-03-12 Thread Timothy Arceri
On 13/03/17 09:47, Grazvydas Ignotas wrote: On Mon, Mar 13, 2017 at 12:31 AM, Timothy Arceri wrote: On 13/03/17 05:32, Grazvydas Ignotas wrote: This is useful when we need to compute many hashes which all have some common data hashed in. It works by first hashing the common data and keeping

Re: [Mesa-dev] [PATCH 1/7] util/mesa-sha1: add a context clone function

2017-03-12 Thread Grazvydas Ignotas
On Mon, Mar 13, 2017 at 12:31 AM, Timothy Arceri wrote: > On 13/03/17 05:32, Grazvydas Ignotas wrote: >> >> This is useful when we need to compute many hashes which all have some >> common data hashed in. It works by first hashing the common data and >> keeping the context, then for each hashing o

Re: [Mesa-dev] [PATCH 1/7] util/mesa-sha1: add a context clone function

2017-03-12 Thread Timothy Arceri
On 13/03/17 05:32, Grazvydas Ignotas wrote: This is useful when we need to compute many hashes which all have some common data hashed in. It works by first hashing the common data and keeping the context, then for each hashing operation clone the common context and continue hashing from there.

[Mesa-dev] [PATCH 1/7] util/mesa-sha1: add a context clone function

2017-03-12 Thread Grazvydas Ignotas
This is useful when we need to compute many hashes which all have some common data hashed in. It works by first hashing the common data and keeping the context, then for each hashing operation clone the common context and continue hashing from there. Signed-off-by: Grazvydas Ignotas --- src/util