piglit-print-commands: Remove the second parameter of 'loadTestProfile' when calling.

Because of the modification of function loadTestProfile's defination,
fix the parameters when calling it.

This makes piglit-print-commands.py work again, which was broken by
commit 9a4bc09db00dde770a648a9fccfc249e465bc262.

Signed-off-by: Yi Sun <yi.sun@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
vbo-map-unsync: Fix GCC int-to-pointer cast warnings.

This patch fixes these GCC warnings.

vbo-map-unsync.c:135:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
vbo-map-unsync.c:136:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
vbo-map-unsync.c:155:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
vbo-map-unsync.c:156:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
arb_es2_compatibility-releaseshadercompiler-ge7: test glReleaseShaderCompiler crash

This tests exercises a Mesa crash found with Google Earth v7.
Specifically, Google Earth is calling glReleaseShaderCompiler() between
glCompileShader() and glLinkProgram().

It appears that glReleaseShaderCompiler() is freeing some data
structures that are needed later by the linker.

The test passes with NVIDIA's driver.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
arb_texture_multisample: add cmake plumbing

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_multisample: new minmax test

Verifies new minimum maximums in ARB_texture_multisample:

GL_MAX_COLOR_TEXTURE_SAMPLES >= 1
GL_MAX_DEPTH_TEXTURE_SAMPLES >= 1
GL_MAX_INTEGER_SAMPLES >= 1
GL_MAX_SAMPLE_MASK_WORDS >= 1

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_multisample: new test for fb configs

This tests FBO setup with various combinations of multisample textures
and `classic` multisample renderbuffers, and for each, checks:

- That the renderbuffers or textures can be created
- Completeness status

If the configuration is expected to work, additionally:
- Actual sample count >= requested sample count
- Sample positions meet spec requirements (all obtainable, and in [0,1]

Covers the fixedsamplelocations and sample count consistency
requirements in the spec.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_multisample: new test for teximage state

This tests that the new teximage state added in ARB_texture_multisample
exists and has correct defaults for non-multisample textures:

    - GL_TEXTURE_SAMPLES = 0
    - GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = false

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_multisample: new tests for sample mask

Adds tests for sample mask:

- Initial state
- Fetching of each sample mask word
- Execution test via rendering with various masks to a multisample FBO,
  then downsampling via glBlitFramebuffer and checking the result.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_multisample: add new sampler targets to textureSize

Covers use of the textureSize() glsl builtin with multisample samplers

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_multisample: add test for texelFetch()

Writes a test pattern to individual samples in a multisample texture,
and tests texelFetch() reads the correct values for each sample.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
rude hack: use smaller formats in texturing tests.

RGBA32I, RGBA32UI, and RGBA32F are huge and
unsupported for multisample textures on at least Gen6 i965.

This shouldn't be committed as-is, but it allowed for testing of
multisample samplers with the generic textureSize() test.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>