[Mesa-dev] [PATCH 05/10] i965/vs: Delete the old vertex shader backend.

Kenneth Graunke kenneth at whitecape.org
Fri Oct 26 13:23:53 PDT 2012


It's no longer used for anything.
---
 src/mesa/drivers/dri/i965/Makefile.sources |    1 -
 src/mesa/drivers/dri/i965/brw_context.h    |    1 -
 src/mesa/drivers/dri/i965/brw_vs.h         |   24 -
 src/mesa/drivers/dri/i965/brw_vs_emit.c    | 1810 ----------------------------
 4 files changed, 1836 deletions(-)
 delete mode 100644 src/mesa/drivers/dri/i965/brw_vs_emit.c

I trimmed out the deletion of brw_vs_emit.c from the diff to make the
email smaller.

diff --git a/src/mesa/drivers/dri/i965/Makefile.sources b/src/mesa/drivers/dri/i965/Makefile.sources
index dc65908..f226fc2 100644
--- a/src/mesa/drivers/dri/i965/Makefile.sources
+++ b/src/mesa/drivers/dri/i965/Makefile.sources
@@ -69,7 +69,6 @@ i965_C_FILES = \
 	brw_util.c \
 	brw_vs.c \
 	brw_vs_constval.c \
-	brw_vs_emit.c \
 	brw_vs_state.c \
 	brw_vs_surface_state.c \
 	brw_vtbl.c \
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 9232a72..3862e8a 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -262,7 +262,6 @@ static inline uint32_t AUB_TRACE_SUBTYPE(enum state_struct_type ss_type)
 struct brw_vertex_program {
    struct gl_vertex_program program;
    GLuint id;
-   bool use_const_buffer;
 };
 
 
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h
index adeff7f..32959c8 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.h
+++ b/src/mesa/drivers/dri/i965/brw_vs.h
@@ -90,34 +90,10 @@ struct brw_vs_compile {
 
    struct brw_vertex_program *vp;
 
-   GLuint nr_inputs;
-
-   GLuint first_output;
    GLuint last_scratch; /**< measured in 32-byte (register size) units */
-
-   GLuint first_tmp;
-   GLuint last_tmp;
-
-   struct brw_reg r0;
-   struct brw_reg r1;
-   struct brw_reg regs[PROGRAM_ADDRESS+1][128];
-   struct brw_reg tmp;
-
-   struct {	
-       struct brw_reg reg;
-   } output_regs[128];
-
-   struct brw_reg userplane[MAX_CLIP_PLANES];
-
-   /** we may need up to 3 constants per instruction (if use_const_buffer) */
-   struct {
-      GLint index;
-      struct brw_reg reg;
-   } current_const[3];
 };
 
 bool brw_vs_emit(struct gl_shader_program *prog, struct brw_vs_compile *c);
-void brw_old_vs_emit(struct brw_vs_compile *c);
 bool brw_vs_precompile(struct gl_context *ctx, struct gl_shader_program *prog);
 void brw_vs_debug_recompile(struct brw_context *brw,
                             struct gl_shader_program *prog,
diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c
deleted file mode 100644
index 02239b4..0000000
--- a/src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ /dev/null


More information about the mesa-dev mailing list