[Piglit] [PATCH] framework/wflinfo: use x11_egl for gles with mixed_glx_egl

2018-10-04 Thread Dylan Baker
Because wflinfo returns GL legacy (non-profile) for gles on glx. --- framework/wflinfo.py | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/framework/wflinfo.py b/framework/wflinfo.py index a568bc344..eb75e8514 100644 --- a/framework/wflinfo.py +++ b/framework/wflinfo.py @

[Piglit] [PATCH] builtin_packing: Add swizzles to the sources of packing functions

2018-10-04 Thread Jason Ekstrand
--- .../fs_pack.shader_test.mako | 14 +++--- .../fs_unpack.shader_test.mako | 6 +++--- .../vs_pack.shader_test.mako | 14 +++--- .../vs_unpack.shader_test.mako | 6 +++--- 4 files changed, 28 in

[Piglit] [PATCH 7/7] tests: Add preemption test to the opengl profile.

2018-10-04 Thread Rafael Antognolli
--- tests/opengl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/opengl.py b/tests/opengl.py index c599eb180..59f3884a4 100644 --- a/tests/opengl.py +++ b/tests/opengl.py @@ -4451,6 +4451,8 @@ with profile.test_list.group_manager( run_concurrent=False) g(['egl-invalid-at

[Piglit] [PATCH 3/7] egl-context-preemption: Add a high priority thread/context.

2018-10-04 Thread Rafael Antognolli
Start a new thread right after dispatching the render commands from the main thread, after glFlush(). This second thread creates a high priority EGL context, and uses it to render to a frame buffer multiple times. These draw calls are supposed to finish before the one in the main thread. --- test

[Piglit] [PATCH 5/7] egl-context-preemption: Add a subtest to reuse the same display.

2018-10-04 Thread Rafael Antognolli
Add a subtest that reuses the same EGLDisplay used in the main thread. This is just another case we can test and see if there's a difference in the preemption behavior. --- tests/egl/egl-context-preemption.c | 29 + 1 file changed, 25 insertions(+), 4 deletions(-) diff

[Piglit] [PATCH 4/7] egl-context-preemption: check that preemption actually happened.

2018-10-04 Thread Rafael Antognolli
After both the main and the high priority threads have finished, check their render timestamps to try to figure out if preemption has kicked in. --- tests/egl/egl-context-preemption.c | 88 ++ 1 file changed, 88 insertions(+) diff --git a/tests/egl/egl-context-preempti

[Piglit] [PATCH 6/7] egl-context-preemption: Check that the rendering was correct.

2018-10-04 Thread Rafael Antognolli
Verify that the rendering done by the high priority thread was also correct by rendering a reference image at the beginning. --- tests/egl/egl-context-preemption.c | 75 +- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/tests/egl/egl-context-preemption.c

[Piglit] [PATCH 1/7] tests: Add base test for mid-command preemption.

2018-10-04 Thread Rafael Antognolli
This is the base of the test, where we use the main piglit context to render to the framebuffer. It is supposed to be an artificially slow draw call, that can be preempted by a higher priority context if needed. --- tests/egl/CMakeLists.gl.txt| 2 + tests/egl/egl-context-preemption.c | 3

[Piglit] [PATCH 2/7] egl-context-preemption: Add check for high priority contexts.

2018-10-04 Thread Rafael Antognolli
Check if we can create high priority contexts, otherwise just fail the test immediately. There's no reason to test for preemption if we can't create high priority contexts. --- tests/egl/egl-context-preemption.c | 57 ++ 1 file changed, 57 insertions(+) diff --git a/te

[Piglit] [PATCH 0/7] New preemption test.

2018-10-04 Thread Rafael Antognolli
This series attempts to test that we get a fine grained preemption level when using the EGL_IMG_context_priority extension. Particularly, if the context priority is set to high in a given context, it should preempt lower priority contexts if they are still executing when the higher priority one is

[Piglit] [PATCH] cmake: use proper WAYLAND_INCLUDE_DIRS variable

2018-10-04 Thread Pascal Bach
WAYLAND_wayland-client_INCLUDEDIR is an internal variable and is not correctly set when cross compiling. WAYLAND_INCLUDE_DIRS includes the correct path even when cross compiling. Signed-off-by: Pascal Bach --- tests/util/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff