OSDN Git Service

intel: Improve bo_references performance by skipping the tree walk.
authorEric Anholt <eric@anholt.net>
Tue, 20 Oct 2009 20:20:55 +0000 (13:20 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 20 Oct 2009 20:31:55 +0000 (13:31 -0700)
commit66d2714f5435944a26685be4210e0e0d7138f3db
tree4323472d689c5063da200394b421da1a28327e6a
parent67628aa39dd74807989492af5451a3a5c0232e39
intel: Improve bo_references performance by skipping the tree walk.

If the target we're asking about hasn't ever been used as a relocation
target, then it obviously hasn't been used as a target by the batch's reloc
tree.  This is the common case for good GL programming where you only map
fresh buffers, and gives us a 5% win in cairo-gl.

[ # ]  backend                         test   min(s) median(s) stddev. count
before:
[  0]       gl            firefox-talos-gfx   64.680   64.756   0.06%    3/3
after:
[  0]       gl            firefox-talos-gfx   60.816   60.970   0.29%    3/3
libdrm/intel/intel_bufmgr_gem.c