diff options
author | Carl Worth <[email protected]> | 2015-03-20 12:10:49 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2015-04-02 22:15:45 -0700 |
commit | b9b66985c3d33fa0db2b49c0e0231aa6d341e183 (patch) | |
tree | 029763e47818919dc76b1a98a9d9f2a7bb816ca6 /src/mesa/drivers/dri/i965/brw_vs.c | |
parent | a57672f18deca3060eab129a77cf84f5e420bac8 (diff) |
i965: Rename do_<stage>_prog to brw_compile_<stage>_prog (and export)
This is in preparation for these functions to be called from other
files.
This commit is intended to have no functional change. It exists in
preparation for some upcoming code movement in preparation for the
shader cache.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index 2846ff69be5..dabff43a6ee 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -187,11 +187,11 @@ brw_vs_prog_data_compare(const void *in_a, const void *in_b) return true; } -static bool -do_vs_prog(struct brw_context *brw, - struct gl_shader_program *prog, - struct brw_vertex_program *vp, - struct brw_vs_prog_key *key) +bool +brw_compile_vs_prog(struct brw_context *brw, + struct gl_shader_program *prog, + struct brw_vertex_program *vp, + struct brw_vs_prog_key *key) { GLuint program_size; const GLuint *program; @@ -468,6 +468,7 @@ void brw_upload_vs_prog(struct brw_context *brw) { struct gl_context *ctx = &brw->ctx; + struct gl_shader_program **current = ctx->_Shader->CurrentProgram; struct brw_vs_prog_key key; /* BRW_NEW_VERTEX_PROGRAM */ struct brw_vertex_program *vp = @@ -481,9 +482,8 @@ brw_upload_vs_prog(struct brw_context *brw) if (!brw_search_cache(&brw->cache, BRW_CACHE_VS_PROG, &key, sizeof(key), &brw->vs.base.prog_offset, &brw->vs.prog_data)) { - bool success = - do_vs_prog(brw, ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX], vp, - &key); + bool success = brw_compile_vs_prog(brw, current[MESA_SHADER_VERTEX], + vp, &key); (void) success; assert(success); } @@ -524,7 +524,7 @@ brw_vs_precompile(struct gl_context *ctx, (prog->OutputsWritten & (VARYING_BIT_COL0 | VARYING_BIT_COL1 | VARYING_BIT_BFC0 | VARYING_BIT_BFC1)); - success = do_vs_prog(brw, shader_prog, bvp, &key); + success = brw_compile_vs_prog(brw, shader_prog, bvp, &key); brw->vs.base.prog_offset = old_prog_offset; brw->vs.prog_data = old_prog_data; |