OSDN Git Service

Merge branch 'shader-file-reorg'
authorBrian Paul <brianp@vmware.com>
Thu, 24 Jun 2010 04:30:26 +0000 (22:30 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 24 Jun 2010 04:30:26 +0000 (22:30 -0600)
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

1  2 
src/mesa/drivers/common/meta.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/r600/r700_assembler.c
src/mesa/drivers/dri/r600/r700_fragprog.c
src/mesa/main/arbprogram.h

Simple merge
@@@ -34,7 -34,8 +34,6 @@@
  #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"
Simple merge
    
  #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);