Merge tag 'debian/1.4.0-1' into debian-unstable

Merge in debian/changelog from debian/1.4.0-1
debian: Release 1.4.1-1

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
pkg/archlinux: use configure autodetection

Since waffle 1.4 we have autodetection at configure time.
Let's use it and drop a couple of lines PKGBUILD magic.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
pkg/archlinux: waffle does not link against libegl

As such demote libegl to makedepend/optdepent, so that
one can build waffle, and optionally use x11_egl/gbm/wayland.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gbm: fetch the libgbm function pointers at wgbm_platform_init

Thus way with a follow up commit we can use them and eliminate the
link dependency from waffle.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gbm: drop explicit linking against libgbm.so (v2)

Use the function pointers stored in wgbm_platform, to communicate
with the library.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
pkg/archlinux: demote libgbm to (make|opt)depend

Waffle no longer links or has hard requirement of the library.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
glx: fetch the libGL function pointers at glx_platform_create

Thus way with a follow up commit we can use them and eliminate the
link dependency from waffle.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
glx: drop explicit linking against libGL.so

Use the function pointers stored in glx_platform, to communicate
with the library.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
droid_surfaceflingerlink.cpp: fix compiling error for android5.0

update the version check for android 5.0 in file droid_surfaceflingerlink.cpp

Change-Id: Iee3f294dfd4951d4b2fff9cc2afeebc0d2d24802
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Android.mk: fix problem when compile with 64bit version

TARGET_CC should not be specified in the Android.mk file
directly since it would be different file for 64bit and 32 bit.
change to use the default gcc target file

and mv the -std=c99 to LOCAL_CFLAGS variable.

Change-Id: I9ca3d714963493841ff7eaaae69a33b881fd1727
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
.gitignore: Ignore build artifacts since 8afea07

Commit 8afea07 was the merge that added WGL support.
wflinfo: add GLSL version information to wflinfo

For versions that do not provide a shader version (GL ES 1.x, GL < 2.0)
print "None", otherwise print the value of GL_SHADING_LANGUAGE_VERSION.

None was picked because it is simple, obvious, and unlike N/A can't be
expanded into multiple meanings

v2: - Don't print for gles1, since gles1 doesn't have a shading language
      and will always return FLINFO_GL_ERROR
v3: - Print 'None' for GL ES 1.x and GL < 2.0
    - Only print shader_version in verbose mode

Fixes: https://github.com/waffle-gl/waffle/issues/16
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Merge branch 'dcbaker/wflinfo-add-glsl-version'

* cooking/dcbaker/wflinfo-add-glsl-version:
  wflinfo: add GLSL version information to wflinfo
wflinfo: Fix glGetStringi on Mali

On Mali EGL 1.4, you can't obtain non-extension functions (including
OpenGL ES 3.0 functions) with eglGetProcAddress. You must use dlsym.

This patch carefully avoids breaking glGetStringi on other platforms,
which may expose glGetStringi dynamically (as in eglGetProcAddress) but
not statically (as in dlsym).

Fixes #20: https://github.com/waffle-gl/waffle/pull/20
Fixes: chromium:428061 [https://code.google.com/p/chromium/issues/detail?id=428061]
See: https://github.com/anholt/libepoxy/issues/21
Reported-by: Frank Henigman <fjhenigman@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Merge branch 'maint-1.4'

* maint-1.4:
  wflinfo: Fix glGetStringi on Mali
Merge branch 'evelikov/remove-libgbm-libgl-libdeps-v2'

* cooking/evelikov/remove-libgbm-libgl-libdeps-v2:
  glx: drop explicit linking against libGL.so
  glx: fetch the libGL function pointers at glx_platform_create
  pkg/archlinux: demote libgbm to (make|opt)depend
  gbm: drop explicit linking against libgbm.so (v2)
  gbm: fetch the libgbm function pointers at wgbm_platform_init
  pkg/archlinux: waffle does not link against libegl
  pkg/archlinux: use configure autodetection

Conflicts:
  src/waffle/gbm/wgbm_display.c
    Minor conflict due to 9a4f7c0, the libglapi workaround.
waffle: Bump version to 1.4.2
doc: Add waffle-1.4.2 release notes

Signed-off-by: Chad Versace <chad@kiwitree.net>
cmake: Find and set include path for wglext.h

GL/*glext.h is not provided by the system (be it MinGW or MSVC), so its
path must be specified separately.

I used GLEXT_INCLUDE_DIR, which is the name also used for Piglit, so
that existing CMake initial caches might already provide it.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>