mutter/tests/conform
Neil Roberts bf7f1e358d Add a test for pipelines with sparse layer indices
There are currently quite a few places in Cogl where we muddle the
layer index and the texture unit number. The theory is that these two
numbers shouldn't be related and it should be possible to pick large
layer numbers with gaps.

This patch adds a test case to check that we can reference a large
layer number from a texture combine string by creating a pipeline with
only three layers but that have very large layer indices. This doesn't
currently work because Cogl interprets the numbers in the combine
strings to be the unit indices and not the layer indices. The
documentation however calls these numbers layer numbers so presumably
it is not meant to work that way.

There are probably many other bugs related to this that the test case
doesn't pick up so it would be good to add some more tests here, for
example to test that you can bind an attribute to the texture
coordinates for a large layer index.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
2012-02-13 17:15:35 +00:00
..
Makefile.am Add a test for pipelines with sparse layer indices 2012-02-13 17:15:35 +00:00
run-tests.sh Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-atlas-migration.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-backface-culling.c test-backface-culling: Use the experimental pipeline API 2011-11-14 18:40:27 +00:00
test-bitmask.c cogl-bitmask: Add _cogl_bitmask_popcount 2011-11-16 16:32:11 +00:00
test-blend-strings.c tests: Add a utility function for reading a pixel 2011-10-26 18:57:33 +01:00
test-color-mask.c tests: Add a utility function for reading a pixel 2011-10-26 18:57:33 +01:00
test-conform-main.c Add a test for pipelines with sparse layer indices 2012-02-13 17:15:35 +00:00
test-custom-attributes.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
test-depth-test.c tests: Add a utility function for reading a pixel 2011-10-26 18:57:33 +01:00
test-fixed.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-fixtures.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-just-vertex-shader.c test-just-vertex-shader: Sample a texture in the fragment pipeline 2011-11-02 13:50:28 +00:00
test-launcher.sh.in test-launcher: Pass on the exit code 2011-12-07 19:01:48 +00:00
test-materials.c tests: Add a utility function for reading a pixel 2011-10-26 18:57:33 +01:00
test-multitexture.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-npot-texture.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-object.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-offscreen.c test-offscreen: Add tests that the offscreen's journal gets flushed 2012-01-31 12:01:20 +00:00
test-path.c tests: Port test-path conformance test from Clutter 2011-11-03 20:31:14 +00:00
test-pipeline-uniforms.c Add a conformance test for setting uniforms on a pipeline 2011-11-16 16:32:11 +00:00
test-pipeline-user-matrix.c Port the pipeline-user-matrix conformance test from Clutter 2011-10-01 15:10:55 +01:00
test-pixel-buffer.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-premult.c tests: Add a utility function for reading a pixel 2011-10-26 18:57:33 +01:00
test-primitive.c buffer: explicitly relate buffers to a context 2012-02-09 14:28:02 +00:00
test-readpixels.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-snippets.c test-snippets: Add a test to verify the order of the snippets 2011-12-06 19:02:06 +00:00
test-sparse-pipeline.c Add a test for pipelines with sparse layer indices 2012-02-13 17:15:35 +00:00
test-sub-texture.c tests: ports test-sub-texture to not depend on clutter 2011-11-01 12:03:04 +00:00
test-texture-3d.c test-texture-3d: Add a test for multi-texturing 3D and 2D textures 2012-02-13 17:15:35 +00:00
test-texture-get-set-data.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-texture-mipmaps.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-texture-pixmap-x11.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-texture-rectangle.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-utils.c test-utils: Expose the compare_pixel function 2012-01-31 12:01:20 +00:00
test-utils.h test-utils: Expose the compare_pixel function 2012-01-31 12:01:20 +00:00
test-vertex-buffer-contiguous.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-vertex-buffer-interleved.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-vertex-buffer-mutability.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-viewport.c Starts porting Cogl conformance tests from Clutter 2011-09-08 15:48:07 +01:00
test-wrap-modes.c tests: ports test-wrap-modes.c to be standalone cogl test 2011-11-01 12:03:01 +00:00