Re: [Mesa-dev] [PATCH shader-db 3/3] run: add extension_in_string() helper

2017-09-13 Thread Emil Velikov
On 13 September 2017 at 22:13, Matt Turner wrote: > On Mon, Aug 21, 2017 at 3:27 AM, Emil Velikov > wrote: >> From: Emil Velikov >> >> memmem() does not attribute what the character after the searched string >> is. Thus it will flag even when haystack is "foobar" while we're looking >> for "foo

Re: [Mesa-dev] [PATCH shader-db 3/3] run: add extension_in_string() helper

2017-09-13 Thread Matt Turner
On Mon, Aug 21, 2017 at 3:27 AM, Emil Velikov wrote: > From: Emil Velikov > > memmem() does not attribute what the character after the searched string > is. Thus it will flag even when haystack is "foobar" while we're looking > for "foo". > > Pull a small helper (based on piglit) that correctly h

Re: [Mesa-dev] [PATCH shader-db 3/3] run: add extension_in_string() helper

2017-09-06 Thread Timothy Arceri
On 21/08/17 20:27, Emil Velikov wrote: From: Emil Velikov memmem() does not attribute what the character after the searched string is. Thus it will flag even when haystack is "foobar" while we're looking for "foo". Pull a small helper (based on piglit) that correctly handles this and use it.

Re: [Mesa-dev] [PATCH shader-db 3/3] run: add extension_in_string() helper

2017-08-21 Thread Eric Engestrom
On Monday, 2017-08-21 11:27:21 +0100, Emil Velikov wrote: > From: Emil Velikov > > memmem() does not attribute what the character after the searched string > is. Thus it will flag even when haystack is "foobar" while we're looking > for "foo". > > Pull a small helper (based on piglit) that corre

[Mesa-dev] [PATCH shader-db 3/3] run: add extension_in_string() helper

2017-08-21 Thread Emil Velikov
From: Emil Velikov memmem() does not attribute what the character after the searched string is. Thus it will flag even when haystack is "foobar" while we're looking for "foo". Pull a small helper (based on piglit) that correctly handles this and use it. Note: when parsing through the shader we