Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
|
|
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
|
|
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
|
|
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
|
|
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
|
|
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
|
|
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
|
|
Bump soversion 0.0.0 -> 1.0.0. Age drops to 0 because WAFFLE_DONT_CARE has
changed value.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
I forgot to add these before tagging the 0.1 release.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
The delimiter was ugly and provided no additional layout cue since the
code was indented anyway.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Add file submitting-patches.txt. A large portion of the file is copied
from the Linux kernel, /Documentation/SubmittingPatches, and credited
appropriately.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Add file doc/code-style.txt. If any contributor has a style question,
hopefully this doc will answer it.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Mark Wayland support as complete.
Document CMake option waffle_has_wayland.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Add tests:
gl_basic.wayland_gl
gl_basic.wayland_gles1
gl_basic.wayland_gles2
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
In gl_basic_tests, run the each platform's testsuite in a forked process.
If any testsuite fails, don't run any more testsuites.
This isn't really needed for running glx and x11_egl. They can safely run
in the same process. But it will not be safe to run x11_egl and wayland
tests in the same process. Mesa's libEGL is able to set the EGL platform
only once per process.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
If the WAFFLE_PLATFORM attribute is WAFFLE_PLATFORM_WAYLAND, then
create/destroy a wayland_platform in wcore_platform_create/destroy.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Implement functions for wayland_platform:
wayland_platform_create
wayland_platform_destroy
Implement all functions in native dispatch table:
wayland_display_connect
wayland_display_disconnect
wayland_config_choose
wayland_config_destroy
wayland_context_create
wayland_context_destroy
wayland_window_create
wayland_window_destroy
wayland_make_current
wayland_get_proc_address
wayland_dlsym_gl
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
I prefer self->wl->wl_display to self->wayland->wayland_display.
The former is nicer to my fingers.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Add cach option `waffle_has_wayland`. If set, then
- Define macro WAFFLE_HAS_WAYLAND.
- Require libwayland-client and libwayland-egl.
- Link them into libwaffle.
No wayland sources are compiled yet.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Mark GLX as complete.
Document CMake option waffle_has_glx.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Options waffle_default_platform and waffle_default_gl_api were removed
a long time ago.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Add tests:
gl_basic.glx_gl
gl_basic.glx_gles1
gl_basic.glx_gles2
The gl tests does basic rendering. The gles tests check that waffle_init()
returns an error, because Mesa's GLX does not yet implement the GLX
extension needed to create ES contexts.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Since the GLXFBConfig's associated XVisual is likely not the default
visual, we must provide a colormap xcb_create_window().
Fixes a bug when attempting to create a window with alpha with the X11/EGL
platform. The X server refused to create a window without a colormap.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
If the WAFFLE_PLATFORM attribute is WAFFLE_PLATFORM_GLX, then
create/destroy a glx_platform in wcore_platform_create/destroy.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Implement functions for glx_platform:
glx_platform_create
glx_platform_destroy
Implement all functions in native dispatch table:
glx_display_connect
glx_display_disconnect
glx_config_choose
glx_config_destroy
glx_context_create
glx_context_destroy
glx_window_create
glx_window_destroy
glx_make_current
glx_get_proc_address
glx_dlsym_gl
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Add cach option `waffle_has_glx`. If set, then
- Define macro WAFFLE_HAS_GLX.
- Require libGL.
- Link it into libwaffle.
No glx sources exist yet.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
If Mesa's libEGL is built with support for multiple platforms, then the
environment variable EGL_PLATFORM must be set before the first EGL call.
Otherwise, libEGL may initialize itself with the incorrect platform. In my
experiments, first calling eglGetProcAddress will produce a segfault in
eglInitialize.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
If Mesa's libEGL is built with support for multiple platforms (for
example, X11 and Wayland), then the EGL_PLATFORM environment variable must
be set before the first EGL call. Otherwise, libEGL may initialize itself
with the incorrect platform.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Now that WAFFLE_DONT_CARE == EGL_DONT_CARE, this function no longer
translates anything.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
This matches the value of EGL_DONT_CARE and GLX_DONT_CARE.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Call waffle_make_current(dpy, NULL, NULL) before teardown.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Now, the release version and the library version are defined alongside
each other. This should prevent someone from updating one and forgetting
the other.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Change the default value of WAFFE_{RED,GREEN,BLUE,ALPHA}_SIZE to
WAFFLE_DONT_CARE. The egl module translates WAFFLE_DONT_CARE to
EGL_DONT_CARE.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Nothing uses the enum yet.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
WAFFLE_GL_API -> WAFFLE_OPENGL_API
WAFFLE_GL -> WAFFLE_OPENGL
WAFFLE_GLES1 -> WAFFLE_OPENGL_ES1
WAFFLE_GLES2 -> WAFFLE_OPENGL_ES2
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Raise a fatal error if not. (Currently, there is only one platform:
x11_egl).
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
The option was enabled automatically if libEGL and libX11-xcb were found.
In pursuit of the principle of least surprise, this patch requires the
user to explicitly enable the option, and libEGL and libX11-xcb are search
for only the option is enabled.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
The default values were chosen during CMake configuration time. This was
a recipe for disaster. libwaffle built by different people would have
significant behavioral differences.
- Remove the CMake options waffle_default_{platform,gl_api}.
- Remove the macros WAFFLE_{PLATFORM,GL_API}_DEFAULT.
- Require the user provide attributes WAFFLE_{PLATFORM,GL_API} to
waffle_init().
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Install libwaffle.so to ${waffle_install_libdir}.
Install headers to ${waffle_install_includedir}/waffle.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
waffle_install_includedir
waffle_install_libdir
waffle_install_docdir
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Unit tests are run first. If unit tests fail, then subsequent tests are
not ran.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|