mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
i965: Don't bother flushing the batch if it doesn't ref our mt to map.
-1.1372% +/- 0.858033% effect on cairo runtime on glamor (n=175). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
17860309f1
commit
07730e9463
1 changed files with 2 additions and 1 deletions
|
|
@ -1614,7 +1614,8 @@ intel_miptree_map_raw(struct brw_context *brw, struct intel_mipmap_tree *mt)
|
|||
|
||||
drm_intel_bo *bo = mt->region->bo;
|
||||
|
||||
intel_batchbuffer_flush(brw);
|
||||
if (drm_intel_bo_references(brw->batch.bo, bo))
|
||||
intel_batchbuffer_flush(brw);
|
||||
|
||||
if (mt->region->tiling != I915_TILING_NONE)
|
||||
brw_bo_map_gtt(brw, bo, "miptree");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue