cmake: don't use open_s with mingw

The function is part of the secapi, which is not available
under WinXP. Building piglit with it will result in broken
tests.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
cmake: include piglit_wl/gbm_framework only when needed

One does not need to build either one if the target does not
have/support them. The upcoming waffle WGL support is a nice example.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
util/winsys: ifdef WAFFLE_PLATFORM_WAYLAND

Avoid building the code for platforms that lack wayland. The note is
still valid as it is based on the lack of input handling (event_loop)
when building with wayland in mind. To avoid issues as that changes just
wrap it up now, similar to every other platform.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
cmake: cleanup PIGLIT_USE_WAFFLE builds

 - Mandating pkg-check when building with MSVC is silly.
 - Do not mess around with CMAKE_C*_FLAGS directly but use
include_directories to handle waffle's headers location.
 - Use WAFFLE_LIBRARIES over WAFFLE_LDFLAGS for linking purposes.

v2: Remove all WAFFLE_LDFLAGS instances.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com> (v1)
c99: resolve MSVC 2013 builds

MSVC 2013 provides _MSC_VER 1800 and __STDC_VERSION__ < 199901L. As
such the preprocessor tries to evaluate the undefined symbol __GNUC__,
agrees that is less than 3 and we end up with the following error
message:

   include\c99\stdbool.h(39) : error C2632: 'char' followed by 'bool' is
illegal.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
util/framework: don't include POSIX headers when building for windows

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
util/piglit-vbo: do not use 'and' in a conditional statement

I'm not entirely sure how piglit build with gcc as is, yet VC compiler
seems very unhappy about this.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
util: remove duplicate declarations of piglit_{init,display}

Already declared in tests/util/piglit-framework-gl.h.

v2: Also remove piglit_init(). Spotted by Ilia.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
utils/wfl: use correct destroy order in special_case_gl31()

Destroy the components in the inverse order of the way we've created
them. Waffle's WGL backend actually creates the window at
config_choose() time, and displays/hides it at create/destroy time.

If we don't follow the correct order the window is destroyed at
config_destroy() and hiding it at window_destroy will trigger an
assert.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
cmake: Fix syntax.

`}` -> `endif ()`

Trivial.
egl-util: remove GL include

EGL util should not in any way depend on the headers of a particular
client library.

In fact, this breaks compilation on pure OpenGL ES systems, since they
do not have OpenGL headers installed (<GL/gl.h>).

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
core.py: Remove warning about piglit.conf

This warning annoys some people, and it isn't strictly necessary, so I
guess it should go.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
cmake: WAFFLE_LIBRARIES -> WAFFLE_LDFLAGS

Otherwise the build fails when libwaffle-1.so is not on a standard
library directory (ie., outside /usr/lib or /usr/local/lib).
tex-miplevel-selection: test textureGrad with cubemaps

llvmpipe passes, which is probably the only driver which implements it
correctly.
Bump python version requirement to 2.7.x

Python 2.6.6 was the final feature release of the 2.6 branch, it was
released in August 2010. Python 2.6.9 was the last security release, it
was released in October 2013. There is no support from upstream for 2.6,
either for bugs or security problems, OSX, linux, windows all have 2.7
available to them, as does VMWare in their environment.

Since no one any longer has a hard 2.6 requirement going to 2.7 seems
like a natural choice. It has more features, more modules, and better
3.x compatibility than 2.6 does.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
cl: Add minimal tests for clCreateImage2D and clCreateImage3D

The only tests for devices without image support.
cl: Add minimal test for clCreateSampler

The only test is for devices without image support.
clGetDeviceInfo: Check for minimum value of CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE
core: Initialize ConfigParser with allow_no_value=True

Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
oclconform: Add test class for ocl conformance tests v3

v2:
  - Code cleanups

v3:
  - More cleanups

Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>