diff options
author | Paul Berry <[email protected]> | 2013-04-09 14:31:28 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-04-11 09:25:25 -0700 |
commit | 4d773603d33f5628a7e7f407371187a650c3e6e5 (patch) | |
tree | 5e71c0cc2dad16bb349426ff66e405cd58a4904e | |
parent | 5743bea0ba1eda07be831d95c5b7729f9ba98a92 (diff) |
i965/vs: Rename vec4_generator::prog to shader_prog.
The next patch is going to change the type of vec4_generator::vp from
struct gl_vertex_program * to struct gl_program *, and rename it. The
sensible name to change it to is vec4_generator::prog. However, prog
is already used. Since the existing vec4_generator::prog is of type
struct gl_shader_program, it makes sense to rename it to shader_prog.
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.h | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 685154271e6..152e4078a69 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -524,7 +524,7 @@ class vec4_generator public: vec4_generator(struct brw_context *brw, struct brw_vs_compile *c, - struct gl_shader_program *prog, + struct gl_shader_program *shader_prog, void *mem_ctx); ~vec4_generator(); @@ -585,7 +585,7 @@ private: struct brw_compile *p; struct brw_vs_compile *c; - struct gl_shader_program *prog; + struct gl_shader_program *shader_prog; struct gl_shader *shader; const struct gl_vertex_program *vp; diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp index 963901c029a..9f985b0b8ad 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp @@ -134,14 +134,14 @@ vec4_instruction::get_src(int i) vec4_generator::vec4_generator(struct brw_context *brw, struct brw_vs_compile *c, - struct gl_shader_program *prog, + struct gl_shader_program *shader_prog, void *mem_ctx) - : brw(brw), c(c), prog(prog), mem_ctx(mem_ctx) + : brw(brw), c(c), shader_prog(shader_prog), mem_ctx(mem_ctx) { intel = &brw->intel; vp = &c->vp->program; - shader = prog ? prog->_LinkedShaders[MESA_SHADER_VERTEX] : NULL; + shader = shader_prog ? shader_prog->_LinkedShaders[MESA_SHADER_VERTEX] : NULL; p = rzalloc(mem_ctx, struct brw_compile); brw_init_compile(brw, p, mem_ctx); @@ -708,7 +708,7 @@ vec4_generator::generate_code(exec_list *instructions) if (unlikely(INTEL_DEBUG & DEBUG_VS)) { if (shader) { - printf("Native code for vertex shader %d:\n", prog->Name); + printf("Native code for vertex shader %d:\n", shader_prog->Name); } else { printf("Native code for vertex program %d:\n", c->vp->program.Base.Id); } |