diff options
author | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-04-25 17:33:29 +0300 |
---|---|---|
committer | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-04-25 17:33:29 +0300 |
commit | 965ffc3d6447456b50ac13f468aaebb9492efdec (patch) | |
tree | c47acb3f30d7c67ee2bd68fdca88c46a5c0cef37 | |
parent | 8576b684b2ffcd3e9b688e79a9ec1239c8b4c1de (diff) |
external_image test startexternal_image
-rw-r--r-- | tests/spec/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/spec/oes_egl_image_external/CMakeLists.gles2.txt | 18 | ||||
-rw-r--r-- | tests/spec/oes_egl_image_external/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/spec/oes_egl_image_external/oes_egl_external_image.c | 41 |
4 files changed, 61 insertions, 0 deletions
diff --git a/tests/spec/CMakeLists.txt b/tests/spec/CMakeLists.txt index b1a2fb37..a3f157f8 100644 --- a/tests/spec/CMakeLists.txt +++ b/tests/spec/CMakeLists.txt @@ -51,3 +51,4 @@ add_subdirectory (arb_draw_buffers) add_subdirectory (oes_draw_texture) add_subdirectory (arb_blend_func_extended) add_subdirectory (ext_unpack_subimage) +add_subdirectory (oes_egl_image_external) diff --git a/tests/spec/oes_egl_image_external/CMakeLists.gles2.txt b/tests/spec/oes_egl_image_external/CMakeLists.gles2.txt new file mode 100644 index 00000000..95748e8e --- /dev/null +++ b/tests/spec/oes_egl_image_external/CMakeLists.gles2.txt @@ -0,0 +1,18 @@ +#add_definitions(-DSOURCE_DIR="${piglit_SOURCE_DIR}/") + +include_directories( + ${OPENGL_INCLUDE_PATH} + ) + +link_libraries( + ${OPENGL_gles2_LIBRARY} + ${OPENGL_egl_LIBRARY} + glut_waffle + piglitutil_gles2 + ) + +piglit_add_executable(oes_egl_external_image + oes_egl_external_image.c + ) + +# vim: ft=cmake: diff --git a/tests/spec/oes_egl_image_external/CMakeLists.txt b/tests/spec/oes_egl_image_external/CMakeLists.txt new file mode 100644 index 00000000..144a306f --- /dev/null +++ b/tests/spec/oes_egl_image_external/CMakeLists.txt @@ -0,0 +1 @@ +piglit_include_target_api() diff --git a/tests/spec/oes_egl_image_external/oes_egl_external_image.c b/tests/spec/oes_egl_image_external/oes_egl_external_image.c new file mode 100644 index 00000000..39fb0c8c --- /dev/null +++ b/tests/spec/oes_egl_image_external/oes_egl_external_image.c @@ -0,0 +1,41 @@ +/* + * Copyright © 2012 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + * + * Author: Pauli Nieminen <pauli.nieminen@linux.intel.com> + */ + +#include "piglit-util.h" + +int piglit_width = 100, piglit_height = 100; +int piglit_window_mode = GLUT_RGB | GLUT_DOUBLE; + +enum piglit_result +piglit_display(void) +{ + return PIGLIT_FAIL; +} + +void +piglit_init(int argc, char **argv) +{ + piglit_require_extension("GL_OES_EGL_image_external"); +} |