mesa/cs: Add dispatch API stubs for ARB_compute_shader.
mesa/cs: Implement MAX_COMPUTE_WORK_GROUP_SIZE constant.
mesa/cs: Implement MAX_COMPUTE_WORK_GROUP_INVOCATIONS constant.
glsl/cs: Change some linker loops to use MESA_SHADER_FRAGMENT as a bound.

Linker loops that iterate through all the stages in the pipeline need
to use MESA_SHADER_FRAGMENT as a bound, so that we can add an
additional MESA_SHADER_COMPUTE stage, without it being erroneously
included in the pipeline.
mesa/cs: Add a MESA_SHADER_COMPUTE stage and update switch statements.

This patch adds MESA_SHADER_COMPUTE to the gl_shader_stage enum.
Also, where it is trivial to do so, it adds a compute shader case to
switch statements that switch based on the type of shader.  This
avoids "unhandled switch case" compiler warnings.
glsl/cs: Populate default values for ctx->Const.Program[MESA_SHADER_COMPUTE].
glsl/cs: Handle compute shader local_size_{x,y,z} declaration.
glsl/cs: update main.cpp to use the ".comp" extension for compute shaders.
mesa/cs: Handle compute shaders in _mesa_use_program().
mesa/cs: Create the gl_compute_program struct, and the code to initialize it.
mesa/cs: Implement MAX_COMPUTE_WORK_GROUP_COUNT constant.
mesa/cs: Handle compute shader local size during linking.
main/cs: Implement query for COMPUTE_WORK_GROUP_SIZE.
glsl/cs: Prohibit user-defined ins/outs in compute shaders.
glsl/cs: Prohibit mixing of compute and non-compute shaders.

Fixes piglit test:
spec/ARB_compute_shader/linker/mix_compute_and_non_compute
i965/cs: Allow ARB_compute_shader to be enabled via env var.

This will allow testing of compute shader functionality before it is
completed.
i965/cs: Create the brw_compute_program struct, and the code to initialize it.
======= More ARB_compute_shader work =======