arb_gpu_shader_fp64: add implicit conversion test

created using a conversion test from ARB_gpu_shader5 tests
as a base but only including conversions to new double types.

v2: initialize variables that are read (Chris)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_gpu_shader_fp64: add test for using double as loop iterator

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_derivative_control: add some basic tests

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
ext_image_dma_buf_import: update ownership_transfer test

The EGL_EXT_image_dma_buf_import specification was revised (according to
its revision history) on Dec 5th, 2013, for EGL to not take ownership of the
file descriptors.

Update the ownership_transfer test to have the correct quote from the
latest specification (version 6), and invert the final test on close().

Now the test verifies, that after a successful import into EGL, followed
by guaranteed destruction of the EGLImage and the buffer reference
inside EGL, the dma_buf file descriptor still stays valid in the caller.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Add texsubimage-depth-formats test to all.py

Missed this while adding the test in commit 90a532b.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
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.
framework/log.py: Merge Log.log() and Log.post_log()

These methods were always called back to back, and required an
overlapping set of arguments. Initially I thought that having a second
method might be useful, but it doesn't really seem that useful at this
point.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>