mutter/tests/conform
Neil Roberts d12399b823 test-gles2-context: Add a test case for rendering to an FBO
This adds an extra test to test-gles2-context which renders to an FBO
and then checks that the orientation is correct once the texture is
rendered via Cogl. This should test the code path to flip the GLES2
rendering in Cogl.

The rendering is done in three different ways to test the various
state that needs flipping:

• Just renders two triangle strips, one at the top and one at the
  bottom.

• Renders two full screen triangle strips, but each with a different
  viewport to clip it to the top or the bottom.

• Clears the screen with two different colors and a scissor to either
  the top or the bottom.

• Renders both quads twice with two different colors and two different
  front face states.

Additionally the rendering is verified by calling glReadPixels to
check that the returned pixels are flipped correctly.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 5b097f9bc4a3eb316c6bf0d9fe8db00ff93bfe73)
2012-08-15 13:44:16 +01:00
..
config.env.in tests: Improve thoroughness and reporting of make test 2012-02-24 14:42:31 +00:00
Makefile.am Mass rename CLUTTER_COMPILATION to COGL_COMPILATION 2012-08-06 14:27:45 +01:00
run-tests.sh tests: Improve thoroughness and reporting of make test 2012-02-24 14:42:31 +00:00
test-atlas-migration.c Convert the test-atlas-migration test to a standalone Cogl test 2012-08-06 14:27:42 +01:00
test-backface-culling.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-bitmask.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-blend-strings.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-color-mask.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-conform-main.c test-gles2-context: Add a test case for rendering to an FBO 2012-08-15 13:44:16 +01:00
test-custom-attributes.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-depth-test.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-euler-quaternion.c Add a basic conformance test for eulers and quaternions 2012-08-06 14:27:43 +01:00
test-fixed.c Adds cogl_framebuffer_draw_[*_]rectangle functions 2012-03-20 12:33:40 +00:00
test-fixtures.c Adds cogl_framebuffer_draw_[*_]rectangle functions 2012-03-20 12:33:40 +00:00
test-gles2-context.c test-gles2-context: Add a test case for rendering to an FBO 2012-08-15 13:44:16 +01:00
test-just-vertex-shader.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-launcher.sh.in tests: Improve thoroughness and reporting of make test 2012-02-24 14:42:31 +00:00
test-layer-remove.c Add a conformance test for removing a pipeline layer 2012-08-06 14:27:45 +01:00
test-materials.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-multitexture.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-no-gl-header.c Mass rename CLUTTER_COMPILATION to COGL_COMPILATION 2012-08-06 14:27:45 +01:00
test-npot-texture.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-object.c Adds cogl_framebuffer_draw_[*_]rectangle functions 2012-03-20 12:33:40 +00:00
test-offscreen.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-path.c Replace cogl_path_{stroke,fill} with framebuffer API 2012-08-06 14:27:39 +01:00
test-pipeline-uniforms.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-pipeline-user-matrix.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-pixel-buffer.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-point-size.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-point-sprite.c Split test-point-sprite into two, one without checking orientation 2012-08-06 18:51:31 +01:00
test-premult.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-primitive.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-read-texture-formats.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-readpixels.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-snippets.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-sparse-pipeline.c Adds cogl_framebuffer_draw_[*_]rectangle functions 2012-03-20 12:33:40 +00:00
test-sub-texture.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-texture-3d.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-texture-get-set-data.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-texture-mipmaps.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-texture-pixmap-x11.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-texture-rectangle.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-utils.c Adds gles2-context renderer constraint 2012-08-06 14:27:43 +01:00
test-utils.h Adds gles2-context renderer constraint 2012-08-06 14:27:43 +01:00
test-version.c Add a cogl-version header 2012-08-06 14:27:40 +01:00
test-vertex-buffer-contiguous.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-vertex-buffer-interleved.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-vertex-buffer-mutability.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-viewport.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-wrap-modes.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
test-write-texture-formats.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00