Commit 0b38828b authored by Ian Romanick's avatar Ian Romanick
Browse files

Use a non-identity color matrix

This prevents a certainly class of false positives.

Also add the test to the list of tests.
parent 62d25093
......@@ -352,6 +352,7 @@ add_shader_generic(shaders, 'glsl-fs-bit-02')
add_plain_test(shaders, 'glsl-fs-bug25902')
add_shader_generic(shaders, 'glsl-fs-ceil')
add_shader_generic(shaders, 'glsl-fs-clamp-1')
add_plain_test(shaders, 'glsl-fs-color-matrix')
add_shader_generic(shaders, 'glsl-fs-copy-propagation-texcoords-1')
add_shader_generic(shaders, 'glsl-fs-copy-propagation-texcoords-2')
add_shader_generic(shaders, 'glsl-fs-conditional-output-write')
......
......@@ -56,9 +56,9 @@ const char *fs_text =
"}\n";
static const GLfloat identity_matrix[] = {
0.0, 0.0, 1.0, 0.0,
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0,
};
......@@ -94,14 +94,14 @@ piglit_display(void)
pass = piglit_probe_pixel_rgb(1 * piglit_width / 3,
1 * piglit_width / 3,
red);
blue);
pass = piglit_probe_pixel_rgb(2 * piglit_width / 3,
1 * piglit_width / 3,
green)
red)
&& pass;
pass = piglit_probe_pixel_rgb(1 * piglit_width / 3,
2 * piglit_width / 3,
blue)
green)
&& pass;
pass = piglit_probe_pixel_rgb(2 * piglit_width / 3,
2 * piglit_width / 3,
......
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