masked-clear: port of Glean's maskedClear test to piglit

Reviewed-by: José Fonseca <jfonseca@vmware.com>
shader_runner_gles2: Remove unused variable warnings

The function macros in shader_runner_gles_workarounds.h cause many unused
variable warnings. The function macros have form
  #define glMapBuffer(...) UNDEFINED_FUNCTION(glMapBuffer, 0)
and get expanded to the call
  unsupported_function("glMapBuffer", 0)
Observe that the original arguments to glMapBuffer are unused.

This patch fixes the warnings by changing the macro form to
  #define glMapBuffer(...) UNDEFINED_FUNCTION(glMapBuffer, 0, __VA_ARGS__)
which gets expanded to the call
  unsupported_function("glMapBuffer", 0, __VA_ARGS__)

Reviewed-by: Tom Gall <tom.gall@linaro.org>
Tested-by: Tom Gall <tom.gall@linaro.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
shader_runner_gles2: Remove cast warning

Removes the warning:
  shader_runner.c:1078:7: warning: assignment makes pointer from integer
                          without a cast [enabled by default]

Reviewed-by: Tom Gall <tom.gall@linaro.org>
Tested-by: Tom Gall <tom.gall@linaro.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
util/gl: squash "incompatible pointer type" warning

In the newly added piglit_gen_ortho_uniform it introduced a
warning due to float *[4] being passed instead of the expected
const GLfloat * as the type of the 4th param. Change the array
of floats to const GLfloat [4][4] and provide the cast.

Fixes the GCC warning:
  tests/util/piglit-util-gl-common.c:547:2: warning: passing argument 4 of
    ‘glUniformMatrix4fv’ from incompatible pointer type [enabled by default]

Signed-off-by: Tom Gall <tom.gall@linaro.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Make new tests/spec/arb_occlusion_query directory

Moving the existing occlusion_query.c test from tests/general to the new
directory. This creates a natural place to add additional occlusion-query
tests according to the current naming scheme for piglit.
Cleanup occlusion-query test to not require function pointers.

With the current piglit dispatch code, the distinction between things
like glBeginQuery and glBeginQueryARB is taken care of already so the
test can be simplified a bit.

Reviewed-by: Eric Anholt <eric@anholt.net>
Add new test: occlusion_query_lifetime

This checks that glIsQuery returns the expected results throughout the
lifetime of a query object, (not least of which, that glIsQuery returns
false after glGenQueries and before glBeginQuery).

Reviewed-by: Eric Anholt <eric@anholt.net>
Add new test: ext_timer_query-lifetime

This is similar to the recently added occlusion_query_lifetime test,
basically verifying that glQueryCounter (in addition to glBeginQuery)
is also sufficient for transitioning a generated query name into a
query object.

Reviewed-by: Eric Anholt <eric@anholt.net>
Add new test: occlusion_query_order

Verifying that once one occlusion query has results, that all previous
queries also have results available. (In particular, the final query
includes not drawing.)

Reviewed-by: Eric Anholt <eric@anholt.net>
Add occlusion-query tests for various meta operations.

These tests invoke occlusion queries around the several
meta-operations implemented within mesa. They are designed to
demonstrate various bugs in the current implementation of mesa, (where
meta operations either do or do not generate fragments as specified by
the OpenGL specification).

Reviewed-by: Eric Anholt <eric@anholt.net>
test/shaders: remove explicit 100x100 window sizes

Allows tests to run on Windows.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
arb_uniform_buffer_object: remove explicit 100x100 window size

Allows tests to run on Windows.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
arb_debug_output: remove explicit 100x100 window size

Reviewed-by: José Fonseca <jfonseca@vmware.com>
arb_map_buffer_alignment: remove explicit 100x100 window size

Reviewed-by: José Fonseca <jfonseca@vmware.com>
glsl: remove explicit 100x100 window size

Reviewed-by: José Fonseca <jfonseca@vmware.com>
arb_es2_compatibility: remove explicit 100x100 window size

Reviewed-by: José Fonseca <jfonseca@vmware.com>
ext_framebuffer_multisample-negative-readpixels: Remove unused variable.

Fixes logically dead code defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
glsl-1.50: add no statement before first case compiler test

This is ported from the GLSL 3.00 ES tests, since GLSL 1.50
has the same change.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
glsl-1.50: add simple sanity test

this just ports the basic sanity test from GLSL 3.00 ES to GLSL 1.50

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
tests: add glsl-1.50 to test list

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>