mutter/tests/conform
Robert Bragg 04d943579b gl: bind position attribute to location 0
Full GL treats the position attribute specially and requires that it
must be bound to generic attribute location 0 unlike GLES 2.0 or
GL 3.2 core. We now make sure to unconditionally bind the
cogl_position_in attribute to location 0 before linking any glsl program
in cogl.

For reference the relevant part of the GL 3.0 spec that covers these
semantics is Section 2.7 "Vertex Specification" pg 27

After this change there was one remaining problem in
test-custom-attributes where the test_short_verts() test was using its
own "pos" attribute instead of cogl_position_in and so cogl wasn't able
to ensure it would be bound to location 0.

This updates the test to use cogl_position_in but to work around the
fact that glVertexPointer doesn't support UNSIGNED_SHORT components we
force the test to use the glsl backend by setting a shader snippet on
the pipeline.

https://bugs.freedesktop.org/show_bug.cgi?id=67548

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit 992ef7b3b49ebb56adde2133bb36330c04133a3f)
2013-08-19 22:44:45 +01:00
..
Makefile.am Separate out CoglPath api into sub-library 2013-08-19 22:44:35 +01: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 Separate out CoglPath api into sub-library 2013-08-19 22:44:35 +01: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 compiler deprecation warnings 2013-04-24 22:23:50 +01: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-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 _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +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