Commit 67cf70cc authored by Nicolai Hähnle's avatar Nicolai Hähnle

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.
parent 462371ed
......@@ -32,3 +32,13 @@ env['GLEAN_BLEND_ALPHA_TOLERANCE'] = 2.0
env = profile.tests['glean']['exactRGBA'].env
env['GLEAN_EXACTRGBA_ROUNDING'] = 1
# Tests specific to r300
r300 = Group()
# Apparently, LOD calculations are off a little for small MIP levels.
# This test is a relaxed variant of the texturing/cubemap test.
# Its only purpose is to catch major regressions in cubemapping as long as we
# fail the real texturing/cubemap test.
r300['cubemap-relax'] = PlainExecTest([testBinDir + 'cubemap', '-auto', '-r300relax'])
profile.tests['r300'] = r300
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment