piglit-run.py: Fix a few PEP8 issues that snuck in

This is purely formatting changes with no functional changes.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
GL 3.2: Test gl_Layer when unassigned or no geometry shader

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
[jordan.l.justen@intel.com: fix compiler error in gs source]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
GL 3.2: Test gl_Layer with non layered texture.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
[jordan.l.justen@intel.com: fix compiler error in gs source]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
GL 3.2: Test gl_Layer maps to correct cube map face.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
[jordan.l.justen@intel.com: fix compiler error in gs source]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
GL 3.2: Test gl_Layer render to layered attachements

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
[jordan.l.justen@intel.com: fix compiler error in gs source]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
GL 3.2: Test glFramebufferTexture

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
depthstencil-render-miplevels: use double-buffered visual

This allows the depth textures to properly display on all systems
when run in non-automatic mode.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
framework: stop copying dma buffer source padding

Fixes a bug spotted by Chad.

The initial support allowed the stride of the source content in
the dma buffer creation to have some padding but it had to be
less than the padding in the target dma buffer being created.

Moreover the implementation also unnecessarily copied any
padding present in the source to the destination. By copying
only the actual pixel values one not only fixes this but also
allows the source to have greater padding than the destination.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
arb_shader_bit_encoding: Generate tests for 3.30, not 4.00.

I was generating GLSL 4.00 tests because that's when ARB_gpu_shader5
functionality was folded in, but 3.30 is actually the first version with
the bit encoding functions.
ARB_texture_gather: add initial execution test

This test exercises combinations of:
- Shader stage vs/fs
- Offsetting
- Component count, up to implementation-defined limit
- Swizzling
- Unsigned normalized, float, int, unsigned int component types
- 2D/2DArray/Cube/CubeArray samplers

The test works by numbering the texels, and ensuring that the four
texels sampled by textureGather*() are those we expect.

Not exercised yet:
- Other interesting internalformats [DEPTH_COMPONENT, etc]
- Addressing modes other than WRAP.
- Use in Geometry Shader. I'd like to pick this up later, as mesa's
  GS support matures.

V2: - Use textureSize rather than hardcoding size in shader;
    - Use piglit_build_simple_program
    - Whitespace tidyups
    - Convert swizzle to enum
    - More component types, for all gsampler2D variants.

V3: - More whitespace
V4: - allow explicit 'unorm' component type; rework usage
    - Support all required sampler types.
    - Refactor setup

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
shader_runner: add ability to control red swizzle texparameter

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
ARB_texture_gather: add new test for miplevel behavior

textureGather always samples the base level, regardless of what
filtering modes are set.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
ARB_gpu_shader5: add compiler tests for textureGather()
ARB_gpu_shader5: add compiler tests for textureGather(.., comp)
textureGather: add support for selecting component
arb_gpu_shader5: add test to require textureGather comp be constexpr

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_gpu_shader5: add compiler test for new textureGatherOffset variants
arb_gpu_shader5: new sigs textureGatherOffset comp
arb_gpu_shader5: add tests for textureGatherOffset `offset` being nonconstant
textureGather: add support for nonconstant offsets

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