Add function wegl_pbuffer_init(), which initializes a struct
wegl_surface with eglCreatePbufferSurface().
Not yet used, but will be used later by the new surfaceless platform.
Cc: Gurchetan Singh
Cc: Haixia Shi
---
src/waffle/egl/wegl_platform.c
Cc: Gurchetan Singh
Cc: Haixia Shi
---
man/wflinfo.1.xml | 1 +
src/utils/wflinfo.c | 5 -
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/man/wflinfo.1.xml b/man/wflinfo.1.xml
index a1c2589..2f54aaa 100644
---
Change the type of parameter 'native_display' from intptr_t to void*.
No intended change in behavior. Prepares for eventual use of
eglGetPlatformDisplay, whose 'native_display' parameter has type void*.
---
src/waffle/android/droid_display.c | 3 +--
src/waffle/egl/wegl_display.c| 2
Before EGL_EXT_platform_base and EGL 1.5, when using Mesa the best way
to select the EGL platform was to set the EGL_PLATFORM environment
variable. Now that a standard way exists, eglGetPlatformDisplay, let's
use it when available.
After this series, I have a series to add support for
Tested against Mesa master@8c78fdb with `ninja check-func` on Linux.
---
src/waffle/egl/wegl_display.c | 22 ++
src/waffle/egl/wegl_platform.c | 35 +--
src/waffle/egl/wegl_platform.h | 8
3 files changed, 59 insertions(+), 6
No intended change in behavior. Prepares for eventual use of
eglGetPlatformDisplay.
Add an `EGLenum egl_platform` parameter to wegl_platform_init() and
store it at wegl_platform::egl_platform.
---
src/waffle/egl/wegl_platform.c| 5 -
src/waffle/egl/wegl_platform.h| 5 -
Each EGL platform 'foo' calls setenv("EGL_PLATFORM", "foo") during
foo_platform_create(), and calls unsetenv("EGL_PLATFORM") during
foo_platform_destroy(). Move the setenv/unsetenv into the core EGL code,
into wegl_platform_init() and wegl_platform_finish().
This prepares for eventually using
This patch contains just the CMake changes for the new surfaceless_egl
platform. Code will come in the following patches.
Cc: Gurchetan Singh
Cc: Haixia Shi
---
Options.cmake | 3 +++
Today, the EGLSurface belonging to struct wegl_window (and, post-patch,
struct wegl_surface) is always created with eglCreateWindowSurface. But
future patches will extend it to allow the EGLSurface to be a pbuffer.
Hence the rename, to reduce confusion.
This patch renames the files. The next
Today, the EGLSurface belonging to struct wegl_window (and, post-patch,
struct wegl_surface) is always created with eglCreateWindowSurface. But
future patches will extend it to allow the EGLSurface to be a pbuffer.
Hence the rename, to reduce confusion.
---
src/waffle/android/droid_platform.c |
Run with `bin/gl_basic_test --platform=surfaceless_egl`.
All the tests fail! The rgba pixels returned by glReadPixels are
black (0x0, 0x0, 0x0, 0xff), but the test expects magenta (0xff, 0x0,
0xff, 0xff). I don't know why.
Cc: Gurchetan Singh
Cc: Haixia Shi
Query and store the EGL client extensions string as
wegl_platform::client_extensions.
Prepares for eventual use of eglGetPlatformDisplay.
---
src/waffle/egl/wegl_platform.c | 3 +++
src/waffle/egl/wegl_platform.h | 3 +++
2 files changed, 6 insertions(+)
diff --git
Prepares for use of eglGetPlatformDisplay.
Define the enums to prevent the Waffle build from breaking against old
headers... like Ubuntu LTS.
---
src/waffle/egl/wegl_imports.h | 26 ++
src/waffle/egl/wegl_platform.h | 2 ++
2 files changed, 28 insertions(+)
diff --git
On 18 October 2016 at 17:58, Chad Versace wrote:
> Tested against Mesa master@8c78fdb with `ninja check-func` on Linux.
> ---
> src/waffle/egl/wegl_display.c | 22 ++
> src/waffle/egl/wegl_platform.c | 35 +--
>
On 18 October 2016 at 18:33, Chad Versace wrote:
> This patch contains just the CMake changes for the new surfaceless_egl
> platform. Code will come in the following patches.
>
> Cc: Gurchetan Singh
> Cc: Haixia Shi
> ---
On 18 October 2016 at 18:33, Chad Versace wrote:
> Now waffle_init() supports WAFFLE_PLATFORM_SURFACELESS_EGL.
>
> Cc: Gurchetan Singh
> Cc: Haixia Shi
> ---
> include/waffle/waffle.h | 1 +
>
On 18 October 2016 at 17:58, Chad Versace wrote:
> +case EGL_PLATFORM_ANDROID_KHR:
> +setenv("EGL_PLATFORM", "android", true);
> +break;
Thus hunk is a new addition. Can you please split it out ?
-Emil
On 18 October 2016 at 17:58, Chad Versace wrote:
> Before EGL_EXT_platform_base and EGL 1.5, when using Mesa the best way
> to select the EGL platform was to set the EGL_PLATFORM environment
> variable. Now that a standard way exists, eglGetPlatformDisplay, let's
> use
18 matches
Mail list logo