mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
tests/cogl: Migrate pipeline shader state test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
94744061de
commit
e7f535a21d
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-pipeline-shader-state.c',
|
|
||||||
'test-texture-rg.c',
|
'test-texture-rg.c',
|
||||||
'test-fence.c',
|
'test-fence.c',
|
||||||
]
|
]
|
||||||
|
@ -70,8 +70,6 @@ main (int argc, char **argv)
|
|||||||
UNPORTED_TEST (test_vertex_buffer_interleved);
|
UNPORTED_TEST (test_vertex_buffer_interleved);
|
||||||
UNPORTED_TEST (test_vertex_buffer_mutability);
|
UNPORTED_TEST (test_vertex_buffer_mutability);
|
||||||
|
|
||||||
ADD_TEST (test_pipeline_shader_state, 0, 0);
|
|
||||||
|
|
||||||
UNPORTED_TEST (test_viewport);
|
UNPORTED_TEST (test_viewport);
|
||||||
|
|
||||||
ADD_TEST (test_fence, TEST_REQUIREMENT_FENCE, 0);
|
ADD_TEST (test_fence, TEST_REQUIREMENT_FENCE, 0);
|
||||||
|
@ -5,7 +5,6 @@ void test_path (void);
|
|||||||
void test_path_clip (void);
|
void test_path_clip (void);
|
||||||
void test_depth_test (void);
|
void test_depth_test (void);
|
||||||
void test_backface_culling (void);
|
void test_backface_culling (void);
|
||||||
void test_pipeline_shader_state (void);
|
|
||||||
void test_gles2_context (void);
|
void test_gles2_context (void);
|
||||||
void test_gles2_context_fbo (void);
|
void test_gles2_context_fbo (void);
|
||||||
void test_gles2_context_copy_tex_image (void);
|
void test_gles2_context_copy_tex_image (void);
|
||||||
|
@ -36,6 +36,7 @@ cogl_tests = [
|
|||||||
[ 'test-copy-replace-texture', [] ],
|
[ 'test-copy-replace-texture', [] ],
|
||||||
[ 'test-pipeline-cache-unrefs-texture', [] ],
|
[ 'test-pipeline-cache-unrefs-texture', [] ],
|
||||||
[ 'test-texture-no-allocate', [] ],
|
[ 'test-texture-no-allocate', [] ],
|
||||||
|
[ 'test-pipeline-shader-state', [] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_pipeline_shader_state (void)
|
test_pipeline_shader_state (void)
|
||||||
{
|
{
|
||||||
CoglOffscreen *offscreen;
|
CoglOffscreen *offscreen;
|
||||||
@ -92,3 +91,7 @@ test_pipeline_shader_state (void)
|
|||||||
test_utils_check_region (test_fb, 0, 0, width, height,
|
test_utils_check_region (test_fb, 0, 0, width, height,
|
||||||
0x0000ffff);
|
0x0000ffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/pipeline/shader-state", test_pipeline_shader_state);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user