Re: [Piglit] [PATCH] Add a test for EXT_texture_swizzle and DEPTH_TEXTURE_MODE together.

2012-09-21 Thread Kenneth Graunke
On 09/21/2012 08:41 AM, Brian Paul wrote: > On 09/21/2012 03:47 AM, Kenneth Graunke wrote: [snip] >> +#define Elements(x) (sizeof(x)/sizeof(*(x))) > > We have an ARRAY_SIZE() macro already. Oops :) I thought we had one of those, but I must've been blind when I went looking for it... > >> + >>

Re: [Piglit] [PATCH] Add a test for EXT_texture_swizzle and DEPTH_TEXTURE_MODE together.

2012-09-21 Thread Brian Paul
On 09/21/2012 03:47 AM, Kenneth Graunke wrote: This tests every possible DEPTH_TEXTURE_MODE with a random smattering of EXT_texture_swizzle modes. While it could be more exhaustive (or use a more logically ordered layout), it does catch the bugs I wanted to detect. Signed-off-by: Kenneth Graunk

[Piglit] [PATCH] Add a test for EXT_texture_swizzle and DEPTH_TEXTURE_MODE together.

2012-09-21 Thread Kenneth Graunke
This tests every possible DEPTH_TEXTURE_MODE with a random smattering of EXT_texture_swizzle modes. While it could be more exhaustive (or use a more logically ordered layout), it does catch the bugs I wanted to detect. Signed-off-by: Kenneth Graunke --- tests/all.tests