diff options
author | Timothy Arceri <[email protected]> | 2016-11-04 13:37:21 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-12-30 10:57:16 +1100 |
commit | 718a0cf49f88ff456582366db45c31f881561ebf (patch) | |
tree | c582dae6c39e1881d34d1de7d477bb8959217c5e /src/mesa/drivers/dri/i965/brw_tes.c | |
parent | 8417bf528eb155028d56acaa4cbe05eb3536093b (diff) |
i965: move compiled_once flag to brw_program
This allows us to delete brw_shader and removes the last use of
gl_linked_shader in the codegen paths.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_tes.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_tes.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tes.c b/src/mesa/drivers/dri/i965/brw_tes.c index d047c93ef17..e0b7c89be18 100644 --- a/src/mesa/drivers/dri/i965/brw_tes.c +++ b/src/mesa/drivers/dri/i965/brw_tes.c @@ -195,17 +195,14 @@ brw_codegen_tes_prog(struct brw_context *brw, } if (unlikely(brw->perf_debug)) { - struct gl_linked_shader *tes = - shader_prog->_LinkedShaders[MESA_SHADER_TESS_EVAL]; - struct brw_shader *btes = (struct brw_shader *) tes; - if (btes->compiled_once) { + if (tep->compiled_once) { brw_tes_debug_recompile(brw, shader_prog, key); } if (start_busy && !drm_intel_bo_busy(brw->batch.last_bo)) { perf_debug("TES compile took %.03f ms and stalled the GPU\n", (get_time() - start_time) * 1000); } - btes->compiled_once = true; + tep->compiled_once = true; } /* Scratch space is used for register spilling */ |