From dcf996c31eb818a85adb0187cdb4df0b9f14d1d9 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 1 Feb 2015 12:59:27 +0100 Subject: gallium: run gallium tests if GALLIUM_TESTS=1 is set Reviewed-by: Glenn Kennard --- src/gallium/auxiliary/util/u_tests.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/util/u_tests.c') diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c index b42f5e137ba..764c4c31944 100644 --- a/src/gallium/auxiliary/util/u_tests.c +++ b/src/gallium/auxiliary/util/u_tests.c @@ -261,7 +261,14 @@ tgsi_vs_window_space_position(struct pipe_context *ctx) * context_create. */ void -util_run_tests(struct pipe_context *ctx) +util_run_tests(struct pipe_screen *screen) { + struct pipe_context *ctx = screen->context_create(screen, NULL); + tgsi_vs_window_space_position(ctx); + + ctx->destroy(ctx); + + puts("Done. Exiting.."); + exit(0); } -- cgit v1.2.3