1. Move all GL entrypoint functions and files into src/mesa/main/
This includes the ARB vp/vp, NV vp/fp, ATI fragshader and GLSL bits
that were in src/mesa/shader/
2. Move src/mesa/shader/slang/ to src/mesa/slang/ to reduce the tree depth
3. Rename src/mesa/shader/ to src/mesa/program/ since all the
remaining files are concerned with GPU programs.
4. Misc code refactoring. In particular, I got rid of most of the
GLSL-related ctx->Driver hook functions. None of the drivers used
them.
Conflicts:
src/mesa/drivers/dri/i965/brw_context.c
#include "main/api_noop.h"
#include "main/macros.h"
#include "main/simple_list.h"
-#include "program/shader_api.h"
--
#include "brw_context.h"
#include "brw_defines.h"
#include "brw_draw.h"
#include "main/imports.h"
#include "main/enums.h"
- #include "shader/prog_parameter.h"
- #include "shader/program.h"
- #include "shader/programopt.h"
- #include "shader/shader_api.h"
++#include "main/shaderobj.h"
+ #include "program/prog_parameter.h"
+ #include "program/program.h"
+ #include "program/programopt.h"
-#include "program/shader_api.h"
#include "tnl/tnl.h"
#include "brw_context.h"
#define ARBPROGRAM_H
++#include "compiler.h"
++#include "glheader.h"
++
++
extern void GLAPIENTRY
_mesa_BindProgram(GLenum target, GLuint id);