mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 21:34:09 +00:00
tests/cogl: Migrate pipeline cache unrefs texture test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
68dcde0bdb
commit
d066fb5380
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-pipeline-cache-unrefs-texture.c',
|
|
||||||
'test-texture-no-allocate.c',
|
'test-texture-no-allocate.c',
|
||||||
'test-pipeline-shader-state.c',
|
'test-pipeline-shader-state.c',
|
||||||
'test-texture-rg.c',
|
'test-texture-rg.c',
|
||||||
|
@ -70,7 +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_cache_unrefs_texture, 0, 0);
|
|
||||||
ADD_TEST (test_pipeline_shader_state, 0, 0);
|
ADD_TEST (test_pipeline_shader_state, 0, 0);
|
||||||
|
|
||||||
UNPORTED_TEST (test_viewport);
|
UNPORTED_TEST (test_viewport);
|
||||||
|
@ -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_cache_unrefs_texture (void);
|
|
||||||
void test_pipeline_shader_state (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);
|
||||||
|
@ -34,6 +34,7 @@ cogl_tests = [
|
|||||||
[ 'test-framebuffer-get-bits', [] ],
|
[ 'test-framebuffer-get-bits', [] ],
|
||||||
[ 'test-primitive-and-journal', [] ],
|
[ 'test-primitive-and-journal', [] ],
|
||||||
[ 'test-copy-replace-texture', [] ],
|
[ 'test-copy-replace-texture', [] ],
|
||||||
|
[ 'test-pipeline-cache-unrefs-texture', [] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
/* Keep track of the number of textures that we've created and are
|
/* Keep track of the number of textures that we've created and are
|
||||||
* still alive */
|
* still alive */
|
||||||
@ -40,7 +39,7 @@ create_texture (void)
|
|||||||
return tex_2d;
|
return tex_2d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_pipeline_cache_unrefs_texture (void)
|
test_pipeline_cache_unrefs_texture (void)
|
||||||
{
|
{
|
||||||
CoglPipeline *pipeline = cogl_pipeline_new (test_ctx);
|
CoglPipeline *pipeline = cogl_pipeline_new (test_ctx);
|
||||||
@ -90,3 +89,7 @@ test_pipeline_cache_unrefs_texture (void)
|
|||||||
if (cogl_test_verbose ())
|
if (cogl_test_verbose ())
|
||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/pipeline-cache-unref-texture", test_pipeline_cache_unrefs_texture);
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user