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

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


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

>Test rendering into one window with multiple contexts.

>Currently fails with llvmpipe, softpipe.  Passes with VMware DRI driver.

>v2: we only need to probe with context[0].  Fix comments.
>---
> tests/all.py                                |   1 +
> tests/glx/CMakeLists.gl.txt                 |   1 +
> tests/glx/glx-multi-context-single-window.c | 155 ++++++++++++++++++++++++++++
> 3 files changed, 157 insertions(+)
> create mode 100644 tests/glx/glx-multi-context-single-window.c

>diff --git a/tests/all.py b/tests/all.py
>index d4d66b1..6941c65 100644
>--- a/tests/all.py
>+++ b/tests/all.py
>@@ -663,6 +663,7 @@ with profile.test_list.group_manager(
>     g(['glx-fbo-binding'], run_concurrent=False)
>     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-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 1e1c684..4ffd74d 100644
>--- a/tests/glx/CMakeLists.gl.txt
>+++ b/tests/glx/CMakeLists.gl.txt
>@@ -32,6 +32,7 @@ IF(PIGLIT_BUILD_GLX_TESTS)
>        piglit_add_executable (glx-dont-care-mask glx-dont-care-mask.c)
>        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-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-context-single-window.c b/tests/glx/glx-multi-context-single-window.c
>new file mode 100644
>index 0000000..726138c
>--- /dev/null
>+++ b/tests/glx/glx-multi-context-single-window.c
>@@ -0,0 +1,155 @@
>+/*
>+ * 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 "Exercise rendering to a single window with multiple contexts."

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




More information about the Piglit mailing list