[Piglit] [PATCH 3/3] glx-multi-window-single-context: new GLX test

Charmaine Lee charmainel at vmware.com
Tue Jul 11 20:27:54 UTC 2017


>From: Brian Paul <brianp at vmware.com>
>Sent: Friday, July 7, 2017 11:02 AM
>To: piglit at lists.freedesktop.org
>Cc: Charmaine Lee; Brian Paul
>Subject: [PATCH 3/3] glx-multi-window-single-context: new GLX test

>To exercise rendering into multiple windows with one context.
>---
> tests/all.py                                |   1 +
> tests/glx/CMakeLists.gl.txt                 |   1 +
> tests/glx/glx-multi-window-single-context.c | 128 ++++++++++++++++++++++++++++
> 3 files changed, 130 insertions(+)
> create mode 100644 tests/glx/glx-multi-window-single-context.c

>diff --git a/tests/all.py b/tests/all.py
>index 6941c65..f291b41 100644
>--- a/tests/all.py
>+++ b/tests/all.py
>@@ -664,6 +664,7 @@ with profile.test_list.group_manager(
>     g(['glx-multi-context-front'], run_concurrent=False)
>     g(['glx-multi-context-ib-1'], run_concurrent=False)
>     g(['glx-multi-context-single-window'], run_concurrent=False)
>+    g(['glx-multi-window-single-context'], run_concurrent=False)
>     g(['glx-multithread'], run_concurrent=False)
>     g(['glx-multithread-texture'], run_concurrent=False)
>     g(['glx-multithread-makecurrent-1'], run_concurrent=False)
>diff --git a/tests/glx/CMakeLists.gl.txt b/tests/glx/CMakeLists.gl.txt
>index 4ffd74d..cf036f5 100644
>--- a/tests/glx/CMakeLists.gl.txt
>+++ b/tests/glx/CMakeLists.gl.txt
>@@ -33,6 +33,7 @@ IF(PIGLIT_BUILD_GLX_TESTS)
>        piglit_add_executable (glx-multi-context-front glx-multi-context-front.c)
>        piglit_add_executable (glx-multi-context-ib-1 glx-multi-context-ib-1.c)
>        piglit_add_executable (glx-multi-context-single-window glx-multi-context-single-window.c)
>+       piglit_add_executable (glx-multi-window-single-context glx-multi-window-single-context.c)
>        piglit_add_executable (glx-multithread glx-multithread.c)
>        target_link_libraries(glx-multithread pthread)
>        piglit_add_executable (glx-context-flush-control glx-context-flush-control.c)
>diff --git a/tests/glx/glx-multi-window-single-context.c b/tests/glx/glx-multi-window-single-context.c
>new file mode 100644
>index 0000000..4ffac47
>--- /dev/null
>+++ b/tests/glx/glx-multi-window-single-context.c
>@@ -0,0 +1,128 @@
>+/*
>+ * Copyright 2017 VMware, Inc.
>+ *
>+ * 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.
>+ */
>+
>+/** @file glx-multi-context-single-window.c
>+ *
>+ * Exercise rendering to multiple windows with one context.
>+ */

Should be @file glx-multi-window-single-context.c

Reviewed-by: Charmaine Lee <charmainel at vmware.com>



More information about the Piglit mailing list