[Piglit] [PATCH 1/2] util/gl: Add more functions to test min/max values (v3)
Chad Versace
chad.versace at linux.intel.com
Fri Nov 30 10:38:12 PST 2012
On 11/30/2012 10:35 AM, Chad Versace wrote:
> Add the following functions:
> piglit_test_min_uint
> piglit_test_max_uint
> piglit_test_min_int64
> piglit_test_max_int64
> piglit_test_min_uint64
> piglit_test_max_uint64
>
> v2: Use PRId64 for printing GLint64, for Anholt.
> v3: Add functions for uint, uint64.
>
> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
> CC: Eric Anholt <eric at anholt.net>
> ---
> tests/util/minmax-test.c | 117 +++++++++++++++++++++++++++++++++++++++++++++++
> tests/util/minmax-test.h | 6 +++
> 2 files changed, 123 insertions(+)
> +static void
> +piglit_test_uint(GLenum token, GLuint limit, bool max)
> +{
> + const char *name = piglit_get_gl_enum_name(token);
> + GLuint val;
Eric, by the way, I've also fixed the uninitialized value here for 'val'.
I've set it to 9999, as in all the other functions.
> +static void
> +piglit_test_int64(GLenum token, GLint64 limit, bool max)
> +{
> + const char *name = piglit_get_gl_enum_name(token);
> + GLint64 val;
Ditto here.
More information about the Piglit
mailing list