mutter/tests/conform
Hans Petter Jansson a8e04a7d6b Add API to control per-framebuffer depth writing
Add framebuffer methods cogl_framebuffer_[gs]et_depth_write_enabled()
and backend bits to pass the state on to glDepthMask().

This allows us to enable or disable depth writing per-framebuffer, which
if disabled saves us some work in glClear(). When rendering, the flag
is combined with the pipeline's depth writing flag using a logical AND.

Depth writing is enabled by default.

https://bugzilla.gnome.org/show_bug.cgi?id=709827

Reviewed-by: Robert Bragg <robert@linux.intel.com>
(cherry picked from commit 71406438c5357eb4e0ef03e940c5456a536602a0)
2013-10-28 16:34:58 +00:00
..
Makefile.am conform: check we invalidate ancestor cached state 2013-10-28 16:34:57 +00:00
test-alpha-test.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-alpha-textures.c Add a conformance test using alpha textures 2013-01-22 17:48:06 +00:00
test-atlas-migration.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-backface-culling.c offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-blend-strings.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-blend.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-color-hsl.c tests: Add a test for the RGB <-> HSL functions 2013-07-09 22:52:49 +01:00
test-color-mask.c offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-conform-main.c conform: check we invalidate ancestor cached state 2013-10-28 16:34:57 +00:00
test-copy-replace-texture.c Add test to verify replacing a layer doesn't leak the pipeline parent 2013-03-19 17:53:43 +00:00
test-custom-attributes.c gl: bind position attribute to location 0 2013-08-19 22:44:45 +01:00
test-depth-test.c Add API to control per-framebuffer depth writing 2013-10-28 16:34:58 +00:00
test-euler-quaternion.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-fence.c Add fence API 2013-05-28 21:36:03 +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-framebuffer-get-bits.c offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-gles2-context.c offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-just-vertex-shader.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-layer-remove.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-map-buffer-range.c framebuffer: remove attribute drawing apis 2013-07-30 15:08:39 +01:00
test-materials.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-multitexture.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-no-gl-header.c Don't include cogl/cogl.h from test-utils.h 2013-07-04 11:50:31 +01:00
test-npot-texture.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-object.c Adds cogl_framebuffer_draw_[*_]rectangle functions 2012-03-20 12:33:40 +00:00
test-offscreen.c offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-path.c Separate out CoglPath api into sub-library 2013-08-19 22:44:35 +01:00
test-pipeline-cache-unrefs-texture.c Conformance test to check whether the pipeline cache holds textures 2013-04-04 13:37:51 +01:00
test-pipeline-shader-state.c conform: check we invalidate ancestor cached state 2013-10-28 16:34:57 +00:00
test-pipeline-uniforms.c tests: Don't report success when the test is skipped 2013-01-22 17:48:06 +00:00
test-pipeline-user-matrix.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-pixel-buffer.c Fix handling of binding errors when uploading a full texture 2013-01-22 17:48:09 +00:00
test-point-size-attribute.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-point-size.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-point-sprite.c Add a conformance test for using cogl_point_coord in a shader 2013-09-02 16:22:08 +01:00
test-premult.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-primitive-and-journal.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-primitive.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-read-texture-formats.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-readpixels.c offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-snippets.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-sparse-pipeline.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-sub-texture.c tests: update inline with master 2013-01-22 17:48:06 +00:00
test-texture-3d.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
test-texture-get-set-data.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-texture-mipmaps.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-texture-no-allocate.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +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 tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +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 offscreen: rename _new_to_texture to _new_with_texture 2013-08-19 22:44:44 +01:00
test-wrap-modes.c tests: stop using cogl-auto-texture apis 2013-07-29 17:56:07 +01:00
test-wrap-rectangle-textures.c win32: Minor build fixes for building for win32 2013-02-21 15:20:55 +00:00
test-write-texture-formats.c test-write-texture-formats: Add fuzziness to the pixel comparisons 2013-01-22 18:00:11 +00:00