diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-06-07 14:13:39 +0200 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-06-07 14:13:39 +0200 |
commit | 67cf70cca1f1e60b6e36617cecc6532a0047f4b2 (patch) | |
tree | 8e2dd77df2addace3d6d941613e926b89f93822f /tests/texturing/cubemap.c | |
parent | 462371ed2919889f4f2e62bd5a0011119ab508e8 (diff) |
r300-specific test r300/cubemap-relax
Relaxed version of texturing/cubemap, intended to watch for major cubemap
regressions until we can figure out how to pass the texturing/cubemap test.
Diffstat (limited to 'tests/texturing/cubemap.c')
-rw-r--r-- | tests/texturing/cubemap.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/texturing/cubemap.c b/tests/texturing/cubemap.c index 2616111cf..e98877d3d 100644 --- a/tests/texturing/cubemap.c +++ b/tests/texturing/cubemap.c @@ -34,6 +34,7 @@ #include "piglit-util.h" static GLboolean Automatic = GL_FALSE; +static GLboolean Hack_r300Relax = GL_FALSE; #define MAX_SIZE 64 #define PAD 5 @@ -289,7 +290,7 @@ draw_at_size(int size, GLboolean mipmapped) glEnd(); - if (Automatic) { + if (Automatic && (dim > 2 || !Hack_r300Relax)) { pass = test_results(base_x, base_y, dim, level, face, mipmapped, @@ -392,9 +393,16 @@ static void init() int main(int argc, char**argv) { + int i; glutInit(&argc, argv); - if (argc == 2 && !strcmp(argv[1], "-auto")) - Automatic = 1; + for(i = 1; i < argc; ++i) { + if (!strcmp(argv[i], "-auto")) + Automatic = 1; + else if (!strcmp(argv[i], "-r300relax")) + Hack_r300Relax = 1; + else + printf("Unknown option: %s\n", argv[i]); + } glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB); glutInitWindowSize (WIN_WIDTH, WIN_HEIGHT); glutInitWindowPosition (100, 100); |