depth_texture_mode_and_swizzle: request alpha channel

Note that PIGLIT_GL_VISUAL_RGB == PIGLIT_GL_VISUAL_RGBA so the
later doesn't necessarily get a window with an alpha channel.
Need to add the PIGLIT_GL_VISUAL_ALPHA flag.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=59872

Reviewed-by: José Fonseca <jfonseca@vmware.com>
ext_framebuffer_multisample: check for GL_EXT_framebuffer_multisample

Part of the fix for http://bugs.freedesktop.org/show_bug.cgi?id=59873

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
egl_khr_create_context: Fix for drivers that don't support GL >= 2.0

Fix for test egl_khr_create_context/default-minor-version-gl.

According to comments in the test: "The Linux OpenGL ABI only requires
OpenGL 1.2, so this might fail to create a context." If the driver failed
to create a 2.x context, then the test failed. This patch changes it to
skip.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59510
Reported-by: Lu Hua <huax.lu@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
egl_khr_create_context: Explain why context creation must succeed

In test egl_khr_create_context/default-minor-version-gl, context creation
is not required to succeed. When it fails, the test skips.

However, for tests default-{major,minor}-version-gles, context creation
*is*  required to succeed. This patch adds comments explaining why,

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Add oglconform integration.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
glx-swap-pixmap: Expect alpha = 1.0 if there is no alpha in the pixmap

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59833
Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
shader_runner.py Update regex to detect new require section syntax

With commit dadf56dad25730556e36e9446aabfc80458cc12f the syntax
for the [require] section in the shader test data files changed for
GL ES. This patch, updates the shader_runner.py regex to also
understand the new syntax since this code parses the [require]
section  of the shader test data file to determine which
shader_runner binary to run.

When dispatch is implemented for GLES all this can go away.

v2: formatting, better description, no GLSL ES, GLSL detection.

Signed-off-by: Tom Gall <tom.gall@linaro.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
shader_runner.c only read one [require] section

When shader_runner parses the shader_test data file, only
parse one [required] section, no longer parse the rest of the file.

v2: better description. Remove warning.

Signed-off-by: Tom Gall <tom.gall@linaro.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
Test varying structs in GLSL ES 3.00.

This patch adds the following GLSL ES 3.00 tests:

- varying-struct-basic: a simple test case involving a single varying
  struct.

- varying-struct-arrays: exercise complex interactions between structs
  and arrays in varyings.

- varying-struct-copy-vs: exercise corner cases where a struct
  internal to a vertex shader is copied to a varying struct.

- varying-struct-copy-fs: exercise corner cases where a varying struct
  is copied to a struct internal to a fragment shader.

- varying-struct-interpolation: verify that interpolation qualifiers
  "flat" and "smooth" are inherited by the fields within a varying
  struct.

- varying-struct-centroid: verify that the interpolation qualifier
  "centroid" is inherited by the fields within a varying struct.

Note that "centroid" is tested separately from the other interpolation
qualifiers since MSAA is required to verify that it works correctly,
so it can't be tested with a simple shader_runner test.
WIP: varying struct xfb: basic-struct errors
WIP: varying struct xfb: basic-struct get
WIP