[Mesa-dev] [PATCH piglit] egl_khr_create_context: Proper invalid attributes for EGL 1.5

2018-08-22 Thread Miguel A. Vico
lower than 1.5 before checking EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR is an invalid attribute. Signed-off-by: Miguel A Vico Moya --- .../egl/spec/egl_khr_create_context/common.c | 5 ++-- .../egl/spec/egl_khr_create_context/common.h | 8 +++ .../invalid-attribute-gles.c

[Mesa-dev] [PATCH 1/2] nouveau: Add basic memory object support

2018-06-21 Thread Miguel A. Vico
Add memory object support for nvc0 and nv50 Signed-off-by: Miguel A Vico Moya --- .../drivers/nouveau/nv50/nv50_miptree.c | 49 + .../drivers/nouveau/nv50/nv50_resource.c | 52 +++ .../drivers/nouveau/nv50/nv50_resource.h | 33

[Mesa-dev] [PATCH 2/2] nouveau: Enable support for EXT_external_objects

2018-06-21 Thread Miguel A. Vico
Enable EXT_external_objects for nvc0 and nv50 Signed-off-by: Miguel A Vico Moya --- src/gallium/drivers/nouveau/nv50/nv50_screen.c | 2 +- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/nv50

[Mesa-dev] [PATCH 0/2] nouveau: Add support for EXT_external_objects

2018-06-21 Thread Miguel A. Vico
also check these changes on Gitlab here: https://gitlab.freedesktop.org/mvicomoya/mesa/tree/wip/EXT_external_objects-nouveau Thanks, Miguel. Miguel A. Vico (2): nouveau: Add basic memory object support nouveau: Enable support for EXT_external_objects src/gallium/drivers/nouveau

[Mesa-dev] [PATCH] libdrm: Fix QNX build by including 'sys/ioctl.h'

2017-12-04 Thread Miguel A. Vico
drm.h header includes 'sys/ioccom.h' for ioctl definitions on non-linux Unix platforms, but QNX seems to define those in 'sys/ioctl.h' instead. Signed-off-by: Miguel A Vico Moya --- include/drm/drm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/drm/drm.h

[Mesa-dev] [PATCH mesa 5/5 v2] wayland-egl: Update ABI checker

2017-07-19 Thread Miguel A. Vico
This change updates wayland-egl-abi-check.c with the latest changes to wl_egl_window. Signed-off-by: Miguel A. Vico Reviewed-by: James Jones --- .../wayland/wayland-egl/wayland-egl-abi-check.c| 90 ++ 1 file changed, 75 insertions(+), 15 deletions(-) diff --git a/src

[Mesa-dev] [PATCH mesa 4/5 v2] wayland-egl: Make wl_egl_window a versioned struct

2017-07-19 Thread Miguel A. Vico
ctual pointer, it is an old implementation of wl_egl_window, and version points to the wl_surface proxy. - Else, the first field is the version number, and we have wl_egl_window::surface pointing to the wl_surface proxy. Signed-off-by: Miguel A. Vico Reviewed-by: James Jones --- sr

[Mesa-dev] [PATCH mesa 3/5 v2] egl: Fix _eglPointerIsDereferencable() to ignore page residency

2017-07-19 Thread Miguel A. Vico
er is dereferenceable, so the output vector can be ignored. What matters is whether mincore succeeds. See: http://man7.org/linux/man-pages/man2/mincore.2.html Signed-off-by: Miguel A. Vico Reviewed-by: Emil Velikov --- src/egl/main/eglglobals.c | 13 - 1 file changed, 12 insertions(

[Mesa-dev] [PATCH mesa 2/5 v2] egl: Move _eglPointerIsDereferencable() to eglglobals.[ch]

2017-07-19 Thread Miguel A. Vico
Move _eglPointerIsDereferencable() to eglglobals.[ch] and make it a non-static function so it can be used out of egldisplay.c Signed-off-by: Miguel A. Vico Reviewed-by: James Jones Reviewed-by: Emil Velikov --- src/egl/main/egldisplay.c | 33 - src/egl/main

[Mesa-dev] [PATCH mesa 1/5 v2] wayland-egl: Add wl_egl_window ABI checker

2017-07-19 Thread Miguel A. Vico
Add a small ABI checker for wl_egl_window so that we can check for backwards incompatible changes at 'make check' time. Signed-off-by: Miguel A. Vico Reviewed-by: James Jones --- src/egl/wayland/wayland-egl/Makefile.am| 6 +- .../wayland/wayland-egl/wayland-egl-a

[Mesa-dev] [PATCH mesa 4/5] wayland-egl: Make wl_egl_window a versioned struct

2017-07-18 Thread Miguel A. Vico
ctual pointer, it is an old implementation of wl_egl_window, and version points to the wl_surface proxy. - Else, the first field is the version number, and we have wl_egl_window::surface pointing to the wl_surface proxy. Signed-off-by: Miguel A. Vico Reviewed-by: James Jones --- sr

[Mesa-dev] [PATCH mesa 5/5] wayland-egl: Update ABI checker

2017-07-18 Thread Miguel A. Vico
This change updates wayland-egl-abi-check.c with the latest changes to wl_egl_window. Signed-off-by: Miguel A. Vico Reviewed-by: James Jones --- .../wayland/wayland-egl/wayland-egl-abi-check.c| 78 ++ 1 file changed, 65 insertions(+), 13 deletions(-) diff --git a/src

[Mesa-dev] [PATCH mesa 3/5] egl: Fix _eglPointerIsDereferencable() to ignore page residency

2017-07-18 Thread Miguel A. Vico
er is dereferenceable, so the output vector can be ignored. What matters is whether mincore succeeds. See: http://man7.org/linux/man-pages/man2/mincore.2.html Signed-off-by: Miguel A. Vico --- src/egl/main/eglglobals.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH mesa 1/5] wayland-egl: Add wl_egl_window ABI checker

2017-07-18 Thread Miguel A. Vico
Add a small ABI checker for wl_egl_window so that we can check for backwards incompatible changes at 'make check' time. Signed-off-by: Miguel A. Vico Reviewed-by: James Jones --- src/egl/wayland/wayland-egl/Makefile.am| 10 +- .../wayland/wayland-egl/wayland-egl-a

[Mesa-dev] [PATCH mesa 2/5] egl: Move _eglPointerIsDereferencable() to eglglobals.[ch]

2017-07-18 Thread Miguel A. Vico
More _eglPointerIsDereferencable() to eglglobals.[ch] and make it a non-static function so it can be used out of egldisplay.c Signed-off-by: Miguel A. Vico Reviewed-by: James Jones --- src/egl/main/egldisplay.c | 33 - src/egl/main/eglglobals.c | 31

[Mesa-dev] [PATCH mesa 0/5] egl/wayland: Make wl_egl_window a versioned struct

2017-07-18 Thread Miguel A. Vico
Although we've always made backwards compatible changes to wl_egl_window, we are lacking of a versioning mechanism for EGL drivers that take a native wl_egl_window to check what set of features are exposed/available by the given struct. This series of patches aim to make wl_egl_window a versioned