aboutsummaryrefslogtreecommitdiff
path: root/tests/glx
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-01-13 16:39:18 -0800
committerEric Anholt <eric@anholt.net>2012-01-27 12:24:26 -0800
commitd4f1a64d276eec84c9a6e220d275092e0c26d419 (patch)
tree5c15aad99b984919b7a4f7ceed388fd26a8a9b2d /tests/glx
parent909daabfb5f177a545ef585cbbf29f11af851579 (diff)
glx: Add variants of the glx-visuals-{depth,stencil} using pixmap FBConfigs.
This ensures coverage of the 16-bit-depth FBconfigs on the Intel driver, which otherwise are untested.
Diffstat (limited to 'tests/glx')
-rw-r--r--tests/glx/glx-visuals-depth.c9
-rw-r--r--tests/glx/glx-visuals-stencil.c9
2 files changed, 14 insertions, 4 deletions
diff --git a/tests/glx/glx-visuals-depth.c b/tests/glx/glx-visuals-depth.c
index 3d9259c6..572c625e 100644
--- a/tests/glx/glx-visuals-depth.c
+++ b/tests/glx/glx-visuals-depth.c
@@ -98,7 +98,12 @@ draw(Display *dpy, GLXFBConfig config)
int
main(int argc, char **argv)
{
- piglit_report_result(piglit_glx_iterate_visuals(draw));
+ enum piglit_result result;
- return 0;
+ if (argc > 1 && strcmp(argv[1], "-pixmap") == 0)
+ result = piglit_glx_iterate_pixmap_fbconfigs(draw);
+ else
+ result = piglit_glx_iterate_visuals(draw);
+
+ piglit_report_result(result);
}
diff --git a/tests/glx/glx-visuals-stencil.c b/tests/glx/glx-visuals-stencil.c
index aa8028a5..fc261d20 100644
--- a/tests/glx/glx-visuals-stencil.c
+++ b/tests/glx/glx-visuals-stencil.c
@@ -98,7 +98,12 @@ draw(Display *dpy, GLXFBConfig config)
int
main(int argc, char **argv)
{
- piglit_report_result(piglit_glx_iterate_visuals(draw));
+ enum piglit_result result;
- return 0;
+ if (argc > 1 && strcmp(argv[1], "-pixmap") == 0)
+ result = piglit_glx_iterate_pixmap_fbconfigs(draw);
+ else
+ result = piglit_glx_iterate_visuals(draw);
+
+ piglit_report_result(result);
}