Re: [Piglit] [PATCH piglit v2] egl: add test for EGL_MESA_query_driver

2019-01-22 Thread Emil Velikov
On Tue, 22 Jan 2019 at 15:32, Eric Engestrom wrote: > > Cc: Veluri Mithun > Cc: Emil Velikov > Cc: Rob Clark > Cc: Nicolai Hähnle > Signed-off-by: Eric Engestrom > --- > The extension is currently in development in this MR: > https://gitlab.freedesktop.org/

Re: [Piglit] [PATCH piglit] egl: add test for EGL_MESA_query_driver

2019-01-22 Thread Emil Velikov
On Tue, 22 Jan 2019 at 15:29, Eric Engestrom wrote: > > I'd add a "TODO: add basic xml config validation/printing based on the > > example in the spec." > > That would be good in theory, but: > - we'd need to write a proper DTD, which we don't have right now > - xml parsing is not trivial (we'd n

Re: [Piglit] [PATCH piglit] egl: add test for EGL_MESA_query_driver

2019-01-22 Thread Emil Velikov
Hi Eric, Thanks for writing this up. On Tue, 22 Jan 2019 at 12:43, Eric Engestrom wrote: > > Cc: Veluri Mithun > Cc: Emil Velikov > Cc: Rob Clark > Cc: Nicolai Hähnle > Signed-off-by: Eric Engestrom > --- > The extension is currently in develop

Re: [Piglit] [PATCH v3] miptree: test ability to use upside down miptree

2019-01-14 Thread Emil Velikov
On Fri, 11 Jan 2019 at 15:28, andrey simiklit wrote: > > Hello, > > Thanks for review. > Could somebody help me with a push? > Done. > @Emil: > Yes, you are right about missing 'in-' in 'git send-email --in-reply-to='. > So v3 wasn't added to the patchwork( > Hope it isn't really mandatory and th

Re: [Piglit] [PATCH v3] miptree: test ability to use upside down miptree

2019-01-11 Thread Emil Velikov
riable 'pos' which is always was 0 > - Implemented more effective number of levels calculator > - Removed a stop when one of tests fails > - Fixed two style issues >( Emil Velikov ) Looks great, thank you. Reviewed-by: Emil Velikov -Emil P.S.

Re: [Piglit] [PATCH v2] miptree: test ability to use upside down miptree

2018-12-11 Thread Emil Velikov
Hi Andrii, Pardon for joining so late. The patch looks ok, although a few bits I'm unsure about - see the "Note" below. There's a bunch of cosmetic suggestions as well - I won't read too much into them though. On Mon, 3 Dec 2018 at 15:07, wrote: [snip] > +#define TW 64 > +#define TH 64 #define

Re: [Piglit] [PATCH v2 3/6] s3tc-teximage: port to gles2

2018-10-26 Thread Emil Velikov
Hi Erik, On Fri, 26 Oct 2018 at 14:03, Erik Faye-Lund wrote: > +#ifdef PIGLIT_USE_OPENGL > + > piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); > + > +#else // PIGLIT_USE_OPENGL_ES2 > + > + tex_program = piglit_build_simple_program(vs_source, fs_source); > + gl

Re: [Piglit] [PATCH v2 1/6] texturing: make sure s3tc tests require GL 1.1

2018-10-26 Thread Emil Velikov
On Fri, 26 Oct 2018 at 16:39, Erik Faye-Lund wrote: > > On Fri, 2018-10-26 at 16:21 +0100, Emil Velikov wrote: > > On Fri, 26 Oct 2018 at 14:03, Erik Faye-Lund > > wrote: > > > > > > The EXT_texture_compression_s3tc spec lists that it requires > > >

Re: [Piglit] [PATCH] fbo: add a few quirk-tests for format-emulation

2018-10-26 Thread Emil Velikov
On Fri, 26 Oct 2018 at 12:35, Erik Faye-Lund wrote: > > On Thu, 2018-10-25 at 14:39 +0100, Emil Velikov wrote: > > On Thu, 25 Oct 2018 at 11:07, Erik Faye-Lund > > wrote: > > > > > > On Wed, 2018-10-24 at 16:32 +0100, Emil Velikov wrote: > > > > Hi

Re: [Piglit] [PATCH v2 1/6] texturing: make sure s3tc tests require GL 1.1

2018-10-26 Thread Emil Velikov
On Fri, 26 Oct 2018 at 14:03, Erik Faye-Lund wrote: > > The EXT_texture_compression_s3tc spec lists that it requires > OpenGL 1.1, not 1.0 like some of these list. > > In reality, this probably doesn't make a huge difference, as > OpenGL 1.0 hardware/drivers are pretty much extinct, but let's > ju

Re: [Piglit] [PATCH] fbo: add a few quirk-tests for format-emulation

2018-10-25 Thread Emil Velikov
On Thu, 25 Oct 2018 at 11:07, Erik Faye-Lund wrote: > > On Wed, 2018-10-24 at 16:32 +0100, Emil Velikov wrote: > > Hi Erik, > > > > A bit of an open question, do we want this test on GLES? If yes, see > > the GLES > > notes below. > > > > Right. I

Re: [Piglit] [PATCH] fbo: add a few quirk-tests for format-emulation

2018-10-24 Thread Emil Velikov
sion("GL_EXT_framebuffer_object"); GLES: #ifdef PIGLIT_USE_OPENGL piglit_require_extension("GL_EXT_framebuffer_object"); #else piglit_require_extension("GL_OES_framebuffer_object"); // Or use GLES 2.0 a

Re: [Piglit] [PATCH] egl_ext_device_drm: don't fail the test if open("/dev/dri/cardX") errors

2018-10-17 Thread Emil Velikov
On Wed, 3 Oct 2018 at 13:27, Emil Velikov wrote: > > From: Emil Velikov > > As pointed out by Mathias opening the card node can fail in some cases. > In boils down to a) the node is owned by root:video b) by default, the > user is not part of the video group c) logind dyna

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

2018-10-11 Thread Emil Velikov
On Fri, 5 Oct 2018 at 17:06, Dylan Baker wrote: > > Because wflinfo returns GL legacy (non-profile) for gles on glx. > > v2: - If the platform is pure GLX then warn that things aren't going to > work. > --- > framework/wflinfo.py | 21 +++-- > 1 file changed, 19 insertions(+

Re: [Piglit] [PATCH] egl_ext_device_drm: don't fail the test if open("/dev/dri/cardX") errors

2018-10-10 Thread Emil Velikov
On Tue, 9 Oct 2018 at 16:50, Dylan Baker wrote: > > Quoting Emil Velikov (2018-10-09 05:35:39) > > On Fri, 5 Oct 2018 at 19:13, Dylan Baker wrote: > > > > > > In other cases like this we return skip instead of warn. > > Can you be more specific about those &q

Re: [Piglit] [PATCH] piglit: remove unneeded wayland-egl dependency

2018-10-09 Thread Emil Velikov
On Tue, 25 Sep 2018 at 11:17, Emil Velikov wrote: > > From: Emil Velikov > > We do not use wayland-egl anywhere ... so let's remove it. > > Signed-off-by: Emil Velikov > --- > CMakeLists.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) &

Re: [Piglit] [PATCH] egl_ext_device_drm: don't fail the test if open("/dev/dri/cardX") errors

2018-10-09 Thread Emil Velikov
On Fri, 5 Oct 2018 at 19:13, Dylan Baker wrote: > > In other cases like this we return skip instead of warn. Can you be more specific about those "other cases like these"? It's the core part of your argument so w/o a quote/reference it's impossible to make a decision. > I think that it should > b

[Piglit] [PATCH] egl_ext_device_drm: don't fail the test if open("/dev/dri/cardX") errors

2018-10-03 Thread Emil Velikov
From: Emil Velikov As pointed out by Mathias opening the card node can fail in some cases. In boils down to a) the node is owned by root:video b) by default, the user is not part of the video group c) logind dynamically allows any user to open the node, once a user has logged-in. Thus if we use

[Piglit] [PATCH] piglit: remove unneeded wayland-egl dependency

2018-09-25 Thread Emil Velikov
From: Emil Velikov We do not use wayland-egl anywhere ... so let's remove it. Signed-off-by: Emil Velikov --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f19457fc..698517733 100644 --- a/CMakeLists.txt

Re: [Piglit] [PATCH v2] egl Add new test of EGL_EXT_platform_device

2018-08-18 Thread Emil Velikov
one more comment inline below: > > On Tuesday, 14 August 2018 15:44:09 CEST Emil Velikov wrote: >> From: Emil Velikov >> >> Since the functionality is more or less identical to >> EGL_MESA_platform_surfaceless, the test with a copy of it. >>

Re: [Piglit] [PATCH] Cmake: Remove Python 3.3 from the list of versions to search for

2018-08-16 Thread Emil Velikov
With some commit message (feel free to reuse the above) patch is Reviewed-by: Emil Velikov HTH Emil ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH v2] egl Add new test of EGL_EXT_platform_device

2018-08-14 Thread Emil Velikov
From: Emil Velikov Since the functionality is more or less identical to EGL_MESA_platform_surfaceless, the test with a copy of it. Changes, as listed in the test itself, include: - s/MESA_platform_surfaceless/EXT_platform_device/g - entrypoint handling - eglQueryDeviceStringEXT

Re: [Piglit] [PATCH 2/3] tox: Add python 3.7 to build matrix

2018-08-08 Thread Emil Velikov
On 8 August 2018 at 17:18, Dylan Baker wrote: > Quoting Emil Velikov (2018-08-08 05:33:44) >> On 7 August 2018 at 02:53, Rhys Kidd wrote: >> > Signed-off-by: Rhys Kidd >> > --- >> > .travis.yml | 3 +++ >> > tox.ini | 9 + >&g

Re: [Piglit] [PATCH piglit] dispatch: add missing break

2018-08-08 Thread Emil Velikov
On 8 August 2018 at 15:50, Eric Engestrom wrote: > Cc: Emil Velikov > Fixes: 7356bdd050b8475ed13c "dispatch: fallback to eglGetProcAddress for > core functions" > Signed-off-by: Eric Engestrom Feel free to push this ASAP. Reviewed-by

Re: [Piglit] [PATCH 2/3] tox: Add python 3.7 to build matrix

2018-08-08 Thread Emil Velikov
On 7 August 2018 at 02:53, Rhys Kidd wrote: > Signed-off-by: Rhys Kidd > --- > .travis.yml | 3 +++ > tox.ini | 9 + > 2 files changed, 8 insertions(+), 4 deletions(-) > > diff --git a/.travis.yml b/.travis.yml > index b6e8136e8..45b23f009 100644 > --- a/.travis.yml > +++ b/.travis.y

[Piglit] [PATCH 7/9] egl_mesa_platform_surfaceless: plug some memory leaks

2018-08-03 Thread Emil Velikov
From: Emil Velikov Plug the memory leaks in the PASS case. It might be worth doing the same throughout, although that is too invasive for what I have time for. Signed-off-by: Emil Velikov --- .../egl_mesa_platform_surfaceless.c | 5 - 1 file changed, 4 insertions

[Piglit] [PATCH 1/9] egl_ext_device_query: check for eglQueryDeviceStringEXT EGL_BAD_DEVICE_EXT

2018-08-03 Thread Emil Velikov
From: Emil Velikov The function returns EGL_BAD_DEVICE_EXT when an invalid device is used. Signed-off-by: Emil Velikov --- tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/egl/spec/egl_ext_device_query

[Piglit] [PATCH 00/10] Selection of EGLDevice tests

2018-08-03 Thread Emil Velikov
platform_device Any review and input will be appreciated. Thanks Emil Emil Velikov (9): egl_ext_device_query: check for eglQueryDeviceStringEXT EGL_BAD_DEVICE_EXT egl: Add basic EGL_MESA_device_software test egl_ext_device_query: drop unused major/minor from eglInitialize

[Piglit] [PATCH 4/9] egl_ext_device_query: return PIGLIT_WARN when eglGetDisplay fails

2018-08-03 Thread Emil Velikov
From: Emil Velikov In the unlikely case that the function fails, we want some feedback about the issue. It's not a failure per-se, but we don't want to silently continue. Signed-off-by: Emil Velikov --- tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c | 2 +- 1 file

[Piglit] [PATCH 6/9] egl: Add basic EGL_EXT_device_drm test

2018-08-03 Thread Emil Velikov
From: Emil Velikov Cover the new token and the interactions with EGL_EXT_platform_device. Pay attention to Issue 1 of the spec, the fd ownership and ensure we query back the same EGLDevice. Signed-off-by: Emil Velikov --- tests/egl/spec/CMakeLists.txt | 1

[Piglit] [PATCH 8/9] egl Add new test of EGL_EXT_platform_device

2018-08-03 Thread Emil Velikov
From: Emil Velikov Since the functionality is more or less identical to EGL_MESA_platform_surfaceless, the test with a copy of it. Changes, as listed in the test itself, include: - s/MESA_platform_surfaceless/EXT_platform_device/g - eglQueryDevicesEXT and eglGetPlatformDisplayEXT entrypoing

[Piglit] [PATCH 5/9] egl_ext_device_query: plug memory leaks

2018-08-03 Thread Emil Velikov
From: Emil Velikov Call eglTerminate, otherwise we'll end up with massive leaks reported in Valgrind. Fairly useful when checking if the EGL implementation is leak-free. Signed-off-by: Emil Velikov --- .../egl_ext_device_query.c| 20 +++ 1 file change

[Piglit] [PATCH 3/9] egl_ext_device_query: drop unused major/minor from eglInitialize

2018-08-03 Thread Emil Velikov
From: Emil Velikov The arguments are optional. Since we don't care about the version, use NULL instead. Signed-off-by: Emil Velikov --- tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/egl

[Piglit] [PATCH 2/9] egl: Add basic EGL_MESA_device_software test

2018-08-03 Thread Emil Velikov
From: Emil Velikov The extension doesn't do anything useful but report a device ext. string. Ensure that such a device does not attempt to expose DRM specifics - nearly missed that during development. Signed-off-by: Emil Velikov --- tests/egl/spec/CMakeLists.txt

[Piglit] [PATCH 9/9] egl_ext_device_enumeration: check the populate call to eglQueryDevices

2018-08-03 Thread Emil Velikov
From: Emil Velikov The first call gives us the number of devices, while the second populates the user provided array. Check that the second call returns at least one device. Signed-off-by: Emil Velikov --- .../egl_ext_device_enumeration/egl_ext_device_enumeration.c | 5 + 1 file changed

Re: [Piglit] [PATCH] glx-oml-sync-control-timing: Make test behavior more stable

2018-07-30 Thread Emil Velikov
HI Illia, Please don't top-post. On 30 July 2018 at 10:51, Illia Iorin wrote: > ping > > On Tue, Jul 10, 2018 at 2:25 PM Illia Iorin wrote: >> >> Hello, >> Full explanation can be found in Having a bug report is great, but the commit itself should be self sufficient. >> https://bugs.freedeskto

Re: [Piglit] [PATCH 0/3] glx-oml-sync-control-timing fixes

2018-06-07 Thread Emil Velikov
did last year. > > > Without negative feedback, I'm planning to push these soon. > To provide some clarity (in 3/3), might be worth coping the commit message as inline comment. Regardless, the series is Reviewed-by: Emil Velikov -Emil ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [Mesa-dev] GitLab migration of Piglit

2018-06-05 Thread Emil Velikov
Hi Dan, Sharing a couple of small ideas. On 5 June 2018 at 18:02, Daniel Stone wrote: >>> drm-gralloc.git Empty - please nuke, alongside bugzilla & other infra. >>> drm.git Out of curiosity - this and others (say igt) projects are accessible as mesa/$foo and drm/$foo. I'd image the same approa

Re: [Piglit] [PATCH 5/5] egl: add eglCopyBuffers test

2018-01-25 Thread Emil Velikov
On 21 December 2017 at 09:26, Tapani Pälli wrote: > > On 12/18/2017 04:37 PM, Emil Velikov wrote: >> >> On 13 December 2017 at 12:54, Tapani Pälli wrote: >> >>>> The test doesn't care how well eglCopyBuffers itself works - aim it to >>>> il

Re: [Piglit] [PATCH 5/5] egl: add eglCopyBuffers test

2017-12-18 Thread Emil Velikov
On 13 December 2017 at 12:54, Tapani Pälli wrote: >> The test doesn't care how well eglCopyBuffers itself works - aim it to >> illustrate the buggy validation in Mesa. >> Hence the wait + pixmap readback are not really needed. >> >> Admittedly the test name is quite misleading as-is - I'm short o

Re: [Piglit] [PATCH 07/20] Move tex1d-2border test from bugs to spec dir.

2017-12-18 Thread Emil Velikov
Hi Fabian, On 16 December 2017 at 19:21, Fabian Bieler wrote: > --- > tests/all.py| 2 +- > tests/bugs/CMakeLists.gl.txt| 1 - > tests/bugs/tex1d-2dborder.c | 126 > > tests/spec/gl-1.4/CMakeLists.gl.txt | 1 + >

Re: [Piglit] [PATCH 5/5] egl: add eglCopyBuffers test

2017-12-13 Thread Emil Velikov
Hi Tapani, Thanks for having a look! On 13 December 2017 at 06:10, Tapani Pälli wrote: > Hi; > > On 11.12.2017 22:15, Emil Velikov wrote: >> + /* Set the env. variable to force the platform 'detection' to use >> +* different platform (than X11). &

Re: [Piglit] [PATCH 1/5] egl: Call eglBindAPI after eglInitialize

2017-12-12 Thread Emil Velikov
On 12 December 2017 at 09:08, Tapani Pälli wrote: > > > On 12/12/2017 10:23 AM, Tapani Pälli wrote: >> >> >> On 12/11/2017 10:15 PM, Emil Velikov wrote: >>> >>> From: Emil Velikov >>> >>> A couple of tests were calling eglBindAPI b

[Piglit] [PATCH 3/5] egl-util: use piglit_egl_get_display over eglGetDisplay

2017-12-11 Thread Emil Velikov
From: Emil Velikov The latter is a legacy and somewhat of a hack. Since we explicitly know that this requires the X11, simply use the helper which will use the correct EGL_PLATFORM API. Cc: Ian Romanick Signed-off-by: Emil Velikov --- tests/egl/egl-util.c | 4 ++-- 1 file changed, 2

[Piglit] [PATCH 4/5] egl-util: introduce egl_util_create_native_pixmap helper

2017-12-11 Thread Emil Velikov
From: Emil Velikov Allows us to consolidate native platform specifics in once place. Will be reused in later commit(s). Cc: Ian Romanick Signed-off-by: Emil Velikov --- tests/egl/egl-util.c | 12 +--- tests/egl/egl-util.h | 3 +++ 2 files changed, 12 insertions(+), 3 deletions

[Piglit] [PATCH 1/5] egl: Call eglBindAPI after eglInitialize

2017-12-11 Thread Emil Velikov
From: Emil Velikov A couple of tests were calling eglBindAPI before eglInitialize. Some versions of Mesa had problem with such invocation order and the seeming consensus was that apps should not do that. This is likely a copy/paste mistake, that was also present in Xserver. Yet the latter was

[Piglit] [PATCH 5/5] egl: add eglCopyBuffers test

2017-12-11 Thread Emil Velikov
From: Emil Velikov Current Mesa implementation was overly cautious, flagging an error where it shouldn't - patch for Mesa is on the list. See the test for details. Cc: Ian Romanick Signed-off-by: Emil Velikov --- Nitpicks: - suggestions for test name and category? - should we bother a

[Piglit] [PATCH 2/5] egl: split out a piglit_egl_get_display helper

2017-12-11 Thread Emil Velikov
From: Emil Velikov Some places (like the next patch) want to pass non-default dpy. Cc: Ian Romanick Signed-off-by: Emil Velikov --- tests/util/piglit-util-egl.c | 10 -- tests/util/piglit-util-egl.h | 11 ++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a

Re: [Piglit] [PATCH] tests/egl/egl-context-priority.c: Use piglit_egl_get_default_display

2017-11-27 Thread Emil Velikov
needs to be rewritten with proper English, not sure how. Maybe simply: > > "Mali 450 driver does not support eglGetPlatformDisplay, use > piglit_egl_get_default_display wrapper instead." > > Looks good, one could also reuse the text from 45095dc08b. In either case, patch i

Re: [Piglit] [PATCH] egl: Add test for EGL_KHR_create_context_no_error

2017-08-08 Thread Emil Velikov
On 3 August 2017 at 19:24, Grigori Goronzy wrote: >> I don't know if we need the no_error here. The test should check if >> things work correctly when it's set. >> Everything else falls outside the scope of the extension. >> > > I added testing with no-error==false because there were some issues

Re: [Piglit] [PATCH] egl: Add test for EGL_KHR_create_context_no_error

2017-08-03 Thread Emil Velikov
On 3 August 2017 at 01:10, Timothy Arceri wrote: > One thing that is missing is a check that an error is generated (or the > context is created successfully) when a shared context is created. Depending > on whether the no error attributes match. > > I've got a partial Mesa implementation for the G

Re: [Piglit] [PATCH] egl: Add test for EGL_KHR_create_context_no_error

2017-08-02 Thread Emil Velikov
Hi Grigori, On 19 July 2017 at 22:41, Grigori Goronzy wrote: > This test verifies context creation with the > EGL_KHR_create_context_no_error extension, which includes interaction > with debug and robustness flags. The test also verifies that the > KHR_no_error mode is successfully enabled with a

Re: [Piglit] [PATCH] egl_mesa_platform_surfaceless: fix compilation warning

2017-07-11 Thread Emil Velikov
> expanded from macro 'NULL' >^~ > 2 warnings generated. > > v2: change function pointer declaration (Emil) > > Signed-off-by: Juan A. Suarez Romero Reviewed-by: Emil Velikov Thanks Emil ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] egl_mesa_platform_surfaceless: fix compilation warning

2017-07-10 Thread Emil Velikov
On 10 July 2017 at 11:20, Juan A. Suarez Romero wrote: > On Fri, 2017-06-30 at 12:18 +0200, Juan A. Suarez Romero wrote: >> Fixes >> >> /build/piglit/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c:94:30: >> warning: incompatible pointer to integer conversion passing '

Re: [Piglit] [PATCH v3] egl: test that EGL_BAD_PARAMETER is returned for an invalid EGLImage attrib

2017-01-17 Thread Emil Velikov
l-invalid-attr.c > + > +#include > +#include > + Did not see these before - they should be dropped. Barring any objections I'll address the above nitpicks and merge the patch in a day or two. If someone beats me to it: Reviewed-by: Emil Velikov -Emil ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] egl: test that EGL_BAD_PARAMETER is returned for an invalid EGLImage attrib

2017-01-17 Thread Emil Velikov
On 12 January 2017 at 05:43, Tapani Pälli wrote: > On 01/11/2017 05:24 PM, Emil Velikov wrote: >> >> On 10 January 2017 at 10:51, Tapani Pälli wrote: >>> >>> This test does not work correctly for me (skips because >>> EGL_KHR_image_base >>>

Re: [Piglit] [PATCH] egl: test that EGL_BAD_PARAMETER is returned for an invalid EGLImage attrib

2017-01-11 Thread Emil Velikov
On 10 January 2017 at 10:51, Tapani Pälli wrote: > This test does not work correctly for me (skips because EGL_KHR_image_base > is unsupported even though driver supports it). I believe you either would > need to utilize egl-util framework (check the other tests in egl directory) > or initialize E

Re: [Piglit] [PATCH v2 1/2] cmake: require libxkbcommon when building with Wayland

2016-11-16 Thread Emil Velikov
Haven't looked at the actual implementation (2/2) but this looks quite reasonable. We can even use libxkbcommon-x11 (for the X11/XCB backend) at some later stage. Reviewed-by: Emil Velikov Emil ___ Piglit mailing list Piglit@list

Re: [Piglit] [PATCH] util: Include time.h on all platforms.

2016-11-07 Thread Emil Velikov
On 4 November 2016 at 21:09, Vinson Lee wrote: > On Fri, Nov 4, 2016 at 8:45 AM, Brian Paul wrote: >> On 11/03/2016 03:36 PM, Vinson Lee wrote: >>> >>> Fix MinGW build error. >>> >>> piglit-util.c: In function 'piglit_time_is_monotonic': >>> piglit-util.c:583:18: error: storage size of 't' isn't

Re: [Piglit] [RFC 0/2] removing some asserts

2016-10-21 Thread Emil Velikov
On 21 October 2016 at 07:51, Tapani Pälli wrote: > Hi; > > I wanted to try running piglit tests with PIGLIT_PLATFORM=wayland. This > makes Piglit to use piglit-framework-gl. Tests crashed always at end > which I traced to abort removed in patch 2 but when building to debug > mode I also hit couple

Re: [Piglit] [PATCH] cts_gl.py: only generate tests for GL45-CTS

2016-09-13 Thread Emil Velikov
On 12 September 2016 at 14:55, Marek Olšák wrote: > On Mon, Sep 12, 2016 at 3:33 PM, Emil Velikov > wrote: >> On 9 September 2016 at 14:10, Marek Olšák wrote: >>> From: Marek Olšák >>> >>> Older versions don't work and there is no interest in fixing

Re: [Piglit] [PATCH] Mark timer tests as not concurrent

2016-09-13 Thread Emil Velikov
t. System load no affect here, afaict. What is your observation before/after the patch, please add some numbers to the commit message. As it helps at least some setups: Acked-by: Emil Velikov Thanks Emil ___ Piglit mailing list Piglit@lists.freedesktop.

Re: [Piglit] [PATCH] cts_gl.py: only generate tests for GL45-CTS

2016-09-12 Thread Emil Velikov
On 9 September 2016 at 14:10, Marek Olšák wrote: > From: Marek Olšák > > Older versions don't work and there is no interest in fixing the official > gl45release CTS branch, so it's useless to add those forever-broken tests. > Surely you meant so say s/official gl45release CTS branch/official pre

Re: [Piglit] [PATCH] egl-nok-swap-region: Fix build against new eglext.h

2016-09-08 Thread Emil Velikov
On 8 September 2016 at 05:06, Adam Jackson wrote: > On Thu, 2016-09-08 at 03:42 +0100, Emil Velikov wrote: >> > On 7 September 2016 at 21:50, Adam Jackson wrote: >> > index 075df97..6512b6b 100644 >> > --- a/tests/egl/egl-nok-swap-region.c >> > +++ b/tests/

Re: [Piglit] [PATCH] egl-nok-swap-region: Fix build against new eglext.h

2016-09-07 Thread Emil Velikov
On 7 September 2016 at 21:50, Adam Jackson wrote: > New eglext.h has the typedef corrected to end in PROC like everything > else. Rename the old string to the new when building against old > headers. > > Signed-off-by: Adam Jackson > --- > tests/egl/egl-nok-swap-region.c | 5 +++-- > 1 file chan

Re: [Piglit] [RFC] Trying to fix dmabuf/yuv tests

2016-09-07 Thread Emil Velikov
On Tuesday, 6 September 2016, Rob Clark wrote: > On Tue, Sep 6, 2016 at 4:04 PM, Kristian Høgsberg > wrote: > > > If we have the gbm eglimage path, why do we keep the intel specific code > around? > > only plausible reason I could come up with is that gbm path depends on > a fairly recent vers

Re: [Piglit] [PATCH 1/2] egl: Add sanity test for EGL_EXT_device_query (v3)

2016-09-02 Thread Emil Velikov
On 2 September 2016 at 07:15, Mathias Fröhlich wrote: > > Great! > > One question that I cannot forsee from your branch: > > The EGL_EXT_device_enumeration spec says > > > > [...] All implementations must support > > at least one device. > > [...] > > > > Which means to me that once an applicatio

Re: [Piglit] [PATCH 1/2] egl: Add sanity test for EGL_EXT_device_query (v3)

2016-09-01 Thread Emil Velikov
On 1 September 2016 at 15:44, Adam Jackson wrote: > On Thu, 2016-09-01 at 15:36 +0100, Emil Velikov wrote: > >> Did you have the chance to respin the EGL device patches for mesa or >> shall I ? > > I have a work-in-progress branch to port it to the drmDe

Re: [Piglit] [PATCH 1/2] egl: Add sanity test for EGL_EXT_device_query (v3)

2016-09-01 Thread Emil Velikov
On 31 August 2016 at 19:39, Adam Jackson wrote: > v2: > - Cover more error paths, also look up QueryDeviceAttrib (Eric Anholt) > - Fetch function pointers before EGL initialized (Mathias Fröhlich) > > v3: > - Use piglit_check_egl_error and PFN* typedefs, fix NOT_INITIALIZED test

Re: [Piglit] [PATCHv2 2/2] cmake: Link test utils with "-ldl"

2016-08-31 Thread Emil Velikov
On 31 August 2016 at 08:53, Jussi Kukkonen wrote: > On 30 August 2016 at 18:33, Emil Velikov wrote: > ... >> >> Fwiw this and 1/2 are >> Reviewed-by: Emil Velikov >> >> Do you have commit access or should I push these for you ? > > I don't, so

Re: [Piglit] [PATCHv2 2/2] cmake: Link test utils with "-ldl"

2016-08-30 Thread Emil Velikov
as a few bugs. The one that applies there is that every 'secondary' library exposes it's own symbols alongside the symbols of its dependencies. The latter of which pulls the dependencies of the original library into the 'secondary' one. But that and similar fun stuff is out

Re: [Piglit] [PATCH 2/2] cmake: Link test utils with "-ldl"

2016-08-29 Thread Emil Velikov
On 29 August 2016 at 09:39, Jussi Kukkonen wrote: > Without this linking CXX executables (e.g. fbo-blit-stretch) fails > with gold linker: > > | libpiglitutil_gl.so.0: error: undefined reference to 'dlsym' > | libpiglitutil_gl.so.0: error: undefined reference to 'dlerror' > | libpiglitutil_gl.so.0

Re: [Piglit] [PATCH] general: Add a spot light sanity check

2016-08-23 Thread Emil Velikov
Hi Daniel, On 20 August 2016 at 04:20, Daniel Scharrer wrote: > Signed-off-by: Daniel Scharrer > --- > > This tests for the bug fixed by the Mesa patch at > https://patchwork.freedesktop.org/patch/106411/ > > The test passes on amdgpu-pro, llvmpipe (patched and unpatched) > and radeonsi (patched

Re: [Piglit] [PATCH 0/6] EGL dispatch fixes and misc cleanups

2016-07-22 Thread Emil Velikov
On 27 June 2016 at 17:57, Emil Velikov wrote: > Hi all, > > As discussed over at mesa-dev@ some implementations' (such as mesa and > GLVND) libGLESv2.so.1 do not provide 'core' symbols via dlsym(). > > This series resolves this, plus one could even follow the app

Re: [Piglit] [PATCH 1/2] egl: Add sanity test for EGL_EXT_device_query (v2)

2016-07-22 Thread Emil Velikov
On 22 July 2016 at 16:17, Adam Jackson wrote: > + EGLBoolean (*queryDisplayAttrib)(EGLDisplay dpy, EGLint name, > +EGLAttrib *value); > + const char *(*queryDeviceString)(EGLDisplay dpy, EGLint name); > + EGLBoolean (*queryDeviceAttrib)(EG

Re: [Piglit] [PATCH 1/5] util: Wrapper to load exact hex patterns for ints

2016-07-01 Thread Emil Velikov
On 30 June 2016 at 10:19, Andres Gomez wrote: > On Wed, 2016-06-29 at 17:46 +0100, Emil Velikov wrote: >> On 14 June 2016 at 22:36, Andres Gomez wrote: >> > For some cases we want to have shaders where we load an exact bit >> > pattern into a signed int. >>

Re: [Piglit] [PATCH 1/5] util: Wrapper to load exact hex patterns for ints

2016-06-29 Thread Emil Velikov
On 14 June 2016 at 22:36, Andres Gomez wrote: > For some cases we want to have shaders where we load an exact bit > pattern into a signed int. > > This fixes the errno-based range validation that was broken when the > integer vbo attribute parsing on 32-bit systems was recently fixed. > Is this be

Re: [Piglit] [PATCH 6/9] util/gl: remove '#if defined(GL_SYMBOL)' guards

2016-06-28 Thread Emil Velikov
On 28 June 2016 at 16:10, Ilia Mirkin wrote: > On Tue, Jun 28, 2016 at 10:45 AM, Emil Velikov > wrote: >> On 27 June 2016 at 18:04, Ilia Mirkin wrote: >>> Don't we build against local GL headers? So we pretty much control >>> what's available and

Re: [Piglit] [PATCH 6/9] util/gl: remove '#if defined(GL_SYMBOL)' guards

2016-06-28 Thread Emil Velikov
On 27 June 2016 at 18:04, Ilia Mirkin wrote: > Don't we build against local GL headers? So we pretty much control > what's available and what's not. i.e. do we need those ifdefs? > No we don't have/build against local GL headers. We use the system ones. -Emil _

[Piglit] [PATCH 6/6] dispatch: fallback to eglGetProcAddress for core functions

2016-06-27 Thread Emil Velikov
From: Emil Velikov The definition and/or interpretation what is core function may vary between vendors. Thus let's opt for the more robust option and use eglGetProcAddress in case dlsym() fails. Signed-off-by: Emil Velikov --- tests/util/piglit-dispatch-init.c

[Piglit] [PATCH 0/6] EGL dispatch fixes and misc cleanups

2016-06-27 Thread Emil Velikov
Hi all, As discussed over at mesa-dev@ some implementations' (such as mesa and GLVND) libGLESv2.so.1 do not provide 'core' symbols via dlsym(). This series resolves this, plus one could even follow the approach used and greatly simplify the dispatch. Let me know if you're ok with the direction

[Piglit] [PATCH 3/6] dispatch: kill off RTLD_LOCAL

2016-06-27 Thread Emil Velikov
From: Emil Velikov The symbol is already the default, thus there's no need to specify it. Signed-off-by: Emil Velikov --- tests/util/piglit-dispatch-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/piglit-dispatch-init.c b/tests/util/piglit-dis

[Piglit] [PATCH 2/6] arb_direct_state_access: remove unneeded piglit_dispatch_default_init()

2016-06-27 Thread Emil Velikov
From: Emil Velikov Analogous to previous commit. Signed-off-by: Emil Velikov --- tests/spec/arb_direct_state_access/gettextureimage-luminance.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/spec/arb_direct_state_access/gettextureimage-luminance.c b/tests/spec

[Piglit] [PATCH 1/6] util/gl: don't call piglit_dispatch_default_init in piglit_use_*_program

2016-06-27 Thread Emil Velikov
From: Emil Velikov piglit_use_vertex_program/piglit_use_fragment_program are used _after_ piglit_init() at which point the winsys layer is already up and the dispatch is already setup. Signed-off-by: Emil Velikov --- tests/util/piglit-util-gl.c | 2 -- 1 file changed, 2 deletions(-) diff

[Piglit] [PATCH 5/6] dispatch: use do_dlsym() helper on all posix platforms

2016-06-27 Thread Emil Velikov
From: Emil Velikov In order to do that move the function further up, and while where doing that use tabs to indent, as the rest of the file. Signed-off-by: Emil Velikov --- tests/util/piglit-dispatch-init.c | 56 +-- 1 file changed, 24 insertions(+), 32

[Piglit] [PATCH 4/6] dispatch: move variables/defines where they're used

2016-06-27 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- tests/util/piglit-dispatch-init.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/tests/util/piglit-dispatch-init.c b/tests/util/piglit-dispatch-init.c index 7ae512b..56b7a3d 100644 --- a/tests/util/piglit

[Piglit] [PATCH 1/9] glx-swap-event: use piglit_time_get_nano() helper

2016-06-27 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- tests/glx/glx-swap-event.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/glx/glx-swap-event.c b/tests/glx/glx-swap-event.c index 7519a51..a9f4136 100644 --- a/tests/glx/glx-swap-event.c +++ b/tests/glx/glx

[Piglit] [PATCH 9/9] arb_es2_compatibility: remove '#ifdef GL_EXTENSION' guards

2016-06-27 Thread Emil Velikov
From: Emil Velikov Analogous to previous commit(s). With this commit no GL test in piglit (barring glean) relies on this broken behaviour. Checked with the following: $ git grep "defined.*\ --- .../arb_es2_compatibility/arb_es2_compatibility-depthrangef.c

[Piglit] [PATCH 0/9] Do not conditionally build tests

2016-06-27 Thread Emil Velikov
Hi all, As mentioned a while back, piglit should _not_ optionally compile the test(s) depending on the presence of symbols in the GL headers. Doing so, is a bad idea since the test(s) will skip regardless if the API is available at runtime. The lot is dead trivial, so hopefully we'll get a bra

[Piglit] [PATCH 8/9] arb_copy_image: remove unneeded break statement.

2016-06-27 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- tests/spec/arb_copy_image/formats.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/spec/arb_copy_image/formats.c b/tests/spec/arb_copy_image/formats.c index f109e99..3af55a7 100644 --- a/tests/spec/arb_copy_image/formats.c +++ b

[Piglit] [PATCH 4/9] egl-nok-swap-region: remove '#ifdef EGL_NOK_swap_region' guard

2016-06-27 Thread Emil Velikov
From: Emil Velikov Analogous to previous commits. Signed-off-by: Emil Velikov --- tests/egl/egl-nok-swap-region.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/tests/egl/egl-nok-swap-region.c b/tests/egl/egl-nok-swap-region.c index 4d2734d..075df97 100644 --- a/tests/egl

[Piglit] [PATCH 7/9] arb_copy_image: remove '#ifdef GL_EXTENSION' guards

2016-06-27 Thread Emil Velikov
From: Emil Velikov Analogous to previous commit(s). Signed-off-by: Emil Velikov --- tests/spec/arb_copy_image/formats.c | 29 + 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/tests/spec/arb_copy_image/formats.c b/tests/spec/arb_copy_image/formats.c

[Piglit] [PATCH 3/9] GLX_OML_sync_control: remove '#if defined(GLX_MESA_swap_control)' guards

2016-06-27 Thread Emil Velikov
From: Emil Velikov Analogous to previous commit - we don't want the test to differ between builds. This could lead to the test silently skipping when built against old headers, _regardless_ if at runtime the extension is supported or not. With this commit no GLX test in piglit (barring

[Piglit] [PATCH 6/9] util/gl: remove '#if defined(GL_SYMBOL)' guards

2016-06-27 Thread Emil Velikov
From: Emil Velikov Those symbols are part of the ABI/API and cannot change. Just define them locally when needed. Signed-off-by: Emil Velikov --- tests/util/piglit-util-gl.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tests/util/piglit-util-gl.c b

[Piglit] [PATCH 5/9] egl-nok-texture-from-pixmap: remove '#ifdef EGL_NOK_texture_from_pixmap' guard

2016-06-27 Thread Emil Velikov
From: Emil Velikov Analogous to previous commits. With this commit no EGL test in piglit relies on this broken behaviour. Checked with the following: $ git grep "defined.*\ --- tests/egl/egl-nok-texture-from-pixmap.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/test

[Piglit] [PATCH 2/9] glx-swap-event: remove '#if defined(GLX_EXTENSION)' guards

2016-06-27 Thread Emil Velikov
From: Emil Velikov We want the test to be complete/consistent regardless if the headers we're building against are new or old. In case of the the latter we could add the definitions locally, if needed. Signed-off-by: Emil Velikov --- tests/glx/glx-swap-event.c | 14 -- 1

Re: [Piglit] [waffle] long-standing wgl pixel format issue

2016-06-20 Thread Emil Velikov
On 20 June 2016 at 15:46, Brian Paul wrote: > On 06/17/2016 07:59 PM, Emil Velikov wrote: >> >> On 17 June 2016 at 16:53, Brian Paul wrote: >>> >>> >>> I spent a few hours yesterday pulling out my hair trying to understand >>> why >>&g

Re: [Piglit] [waffle] long-standing wgl pixel format issue

2016-06-17 Thread Emil Velikov
On 17 June 2016 at 16:53, Brian Paul wrote: > > I spent a few hours yesterday pulling out my hair trying to understand why > the piglit fbo-mipmap-copypix test was failing on Windows. But it was only > failing when I ran it directly. It passed when I ran it via piglit-run.py > > The key differen

Re: [Piglit] [PATCH] tests: Add integration with Khronos CTS OpenGL runner

2016-05-19 Thread Emil Velikov
On 19 May 2016 at 07:33, Juan A. Suarez Romero wrote: > On Wed, 2016-05-18 at 11:00 -0700, Dylan Baker wrote: >> I'm 50/50 on it. While I think it probably is nicer to change them, >> it >> also creates more churn for people using the functionality. > > > Then, I'll keep as it is. We can always ch

Re: [Piglit] [PATCH 0/6] Cleanup and prepare for pre OpenGL 3.0 drivers

2016-03-31 Thread Emil Velikov
On 31 March 2016 at 12:21, Jose Fonseca wrote: > On 31/03/16 00:44, Emil Velikov wrote: >> >> On 30 March 2016 at 21:54, Jose Fonseca wrote: >>> >>> On 30/03/16 11:14, Emil Velikov wrote: >>>> >>>> >>>> On 29 March 2016

  1   2   3   4   >