summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-04-26readme: Fix typo in exampleHEADmasterPauli Nieminen1-1/+1
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
2012-04-17Fix warning that variables might be used uninitializedPauli Nieminen1-2/+4
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
2012-04-17Fix warning that gl_api might be used uninitializedPauli Nieminen1-1/+1
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
2012-04-17Fix warning that format isn't string literalPauli Nieminen1-1/+1
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
2012-04-17Allow compiling with X11 EGL disabledPauli Nieminen1-1/+21
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
2012-04-17Allow compiling with wayland disabledPauli Nieminen1-1/+21
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
2012-04-17Allow compiling with glx disabledPauli Nieminen1-0/+20
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
2012-04-11cmake: Bump version to 0.2Chad Versace1-2/+2
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>
2012-04-11doc: Add release notes for 0.2Chad Versace1-0/+21
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11doc: Add release notes for v0.1Chad Versace1-0/+9
I forgot to add these before tagging the 0.1 release. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11readme: Remove delimiter around example codeChad Versace1-2/+0
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>
2012-04-11readme: Move links section to beneath summaryChad Versace1-8/+11
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11doc: Add patch submission guidelinesChad Versace1-0/+116
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>
2012-04-11doc: Add code style guidelinesChad Versace1-0/+271
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>
2012-04-11doc: Move configuration instructions from README to building.txtChad Versace2-75/+150
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11readme: Update with Wayland supportChad Versace1-2/+6
Mark Wayland support as complete. Document CMake option waffle_has_wayland. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11gl_basic test: Add tests for waylandChad Versace1-0/+28
Add tests: gl_basic.wayland_gl gl_basic.wayland_gles1 gl_basic.wayland_gles2 Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11gl_basic_test: Run platform tests in separate processChad Versace1-15/+70
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>
2012-04-11todo: Add a todo listChad Versace1-0/+2
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11core: Create and destroy wayland_platformChad Versace1-0/+9
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>
2012-04-11wayland: Add wayland moduleChad Versace16-0/+832
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>
2012-04-11native: Rename fields native_x.wayland_x -> native_x.wl_xChad Versace1-2/+2
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>
2012-04-11cmake: Add wayland supportChad Versace2-3/+27
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>
2012-04-11doxygen: Move doxygen files from doc -> doxygenChad Versace2-0/+0
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11reamde: Update with GLX supportChad Versace1-3/+8
Mark GLX as complete. Document CMake option waffle_has_glx. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-11readme: Remove refs to non-existent optionsChad Versace1-2/+1
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>
2012-04-11tests/functional/gl_basic: Add tests for glxChad Versace1-0/+57
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>
2012-04-11x11: Fix window creation by using a colormapChad Versace1-10/+30
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>
2012-04-11core: Create and destroy glx_platformChad Versace1-0/+9
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>
2012-04-11glx: Add glx moduleChad Versace14-0/+777
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>
2012-04-11cmake: Add glx supportChad Versace2-6/+27
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>
2012-04-10tests/functional: Check that EGL_PLATFORM env var is setChad Versace1-1/+10
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>
2012-04-10xegl: set/unset env var EGL_PLATFORMChad Versace1-0/+5
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>
2012-04-10egl: Remove egl_translate_attr_value()Chad Versace1-19/+9
Now that WAFFLE_DONT_CARE == EGL_DONT_CARE, this function no longer translates anything. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-10include: Change value WAFFLE_DONT_CARE to -1Chad Versace1-2/+2
This matches the value of EGL_DONT_CARE and GLX_DONT_CARE. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-09readme: Fix example codeChad Versace1-0/+1
Call waffle_make_current(dpy, NULL, NULL) before teardown. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-09cmake: Bump version to 0.1Chad Versace1-1/+1
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-09cmake: Move def of library version to top CMakeListsChad Versace2-4/+11
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>
2012-04-09waffle: Change some default values to WAFFLE_DONT_CAREChad Versace4-20/+65
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>
2012-04-09include: Add enum WAFFLE_DONT_CAREChad Versace2-0/+2
Nothing uses the enum yet. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-09readme: Add a README.txtChad Versace1-0/+203
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-08api: Implement waffle_enum_to_string()Chad Versace2-0/+46
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-08waffle: Rename WAFFLE_GL* -> WAFFLE_OPENGL*Chad Versace8-36/+42
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>
2012-04-08waffle.pc: Install waffle pkgconfig fileChad Versace2-0/+19
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-08cmake: Validate that at least one platform is chosenChad Versace1-0/+8
Raise a fatal error if not. (Currently, there is only one platform: x11_egl). Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-08cmake: Don't auto-set waffle_has_x11_eglChad Versace1-39/+26
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>
2012-04-08waffle: Remove default values for platform and gl_apiChad Versace3-80/+23
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>
2012-04-08cmake: Install libwaffle.so and headersChad Versace3-0/+16
Install libwaffle.so to ${waffle_install_libdir}. Install headers to ${waffle_install_includedir}/waffle. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-08cmake: Add cache vars for install pathsChad Versace1-0/+14
waffle_install_includedir waffle_install_libdir waffle_install_docdir Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-08cmake: Add gl_basic_test to `make check`Chad Versace2-20/+14
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>