diff options
author | Timothy Arceri <[email protected]> | 2016-11-04 14:09:35 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-01-06 11:21:40 +1100 |
commit | 6f76ca300b2945ba8075b022aaec834fbc64af60 (patch) | |
tree | 2d4709407871372503f663b83a570c2c56795ed2 /src/mesa/drivers/dri/i965/brw_tcs.c | |
parent | caf18a8434bd3a51fcfe557a441e60fae78e7924 (diff) |
i965: pass gl_program to the brw_*_debug_recompile() functions
Rather then passing gl_shader_program.
The only field use was Name which is the same as the Id field in
gl_program.
For wm and vs we also make the functions static and move them before
the codegen functions.
This change reduces the codegen functions dependency on gl_shader_program.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_tcs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_tcs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tcs.c b/src/mesa/drivers/dri/i965/brw_tcs.c index f890ccf0296..3f8798a82ae 100644 --- a/src/mesa/drivers/dri/i965/brw_tcs.c +++ b/src/mesa/drivers/dri/i965/brw_tcs.c @@ -116,8 +116,7 @@ create_passthrough_tcs(void *mem_ctx, const struct brw_compiler *compiler, } static void -brw_tcs_debug_recompile(struct brw_context *brw, - struct gl_shader_program *shader_prog, +brw_tcs_debug_recompile(struct brw_context *brw, struct gl_program *prog, const struct brw_tcs_prog_key *key) { struct brw_cache_item *c = NULL; @@ -125,7 +124,7 @@ brw_tcs_debug_recompile(struct brw_context *brw, bool found = false; perf_debug("Recompiling tessellation control shader for program %d\n", - shader_prog->Name); + prog->Id); for (unsigned int i = 0; i < brw->cache.size; i++) { for (c = brw->cache.items[i]; c; c = c->next) { @@ -280,7 +279,7 @@ brw_codegen_tcs_prog(struct brw_context *brw, if (unlikely(brw->perf_debug)) { if (tcp) { if (tcp->compiled_once) { - brw_tcs_debug_recompile(brw, shader_prog, key); + brw_tcs_debug_recompile(brw, &tcp->program, key); } tcp->compiled_once = true; } |