diff options
author | Kenneth Graunke <[email protected]> | 2013-10-15 19:21:34 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-11-15 10:24:07 -0800 |
commit | 720d935fff1c7f49ce35369e00266cf2f333cdba (patch) | |
tree | 0acaffeda4712dc97c40ece340d96cd0aeef9607 /src | |
parent | 96a3527a63eaa3c031d2b091dcf6ec8a608f3fde (diff) |
i965: Move cache_used_by_gpu flag setting to brw_finish_batch.
It really makes more sense here.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 6d1ae797426..9cdbe9ee277 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -198,12 +198,6 @@ brw_new_batch(struct brw_context *brw) brw->ib.type = -1; - /* Mark that the current program cache BO has been used by the GPU. - * It will be reallocated if we need to put new programs in for the - * next batch. - */ - brw->cache.bo_used_by_gpu = true; - /* We need to periodically reap the shader time results, because rollover * happens every few seconds. We also want to see results every once in a * while, because many programs won't cleanly destroy our context, so the @@ -232,6 +226,12 @@ brw_finish_batch(struct brw_context *brw) drm_intel_bo_unreference(brw->curbe.curbe_bo); brw->curbe.curbe_bo = NULL; } + + /* Mark that the current program cache BO has been used by the GPU. + * It will be reallocated if we need to put new programs in for the + * next batch. + */ + brw->cache.bo_used_by_gpu = true; } /* TODO: Push this whole function into bufmgr. |