diff options
author | Eric Anholt <eric@anholt.net> | 2009-10-20 13:20:55 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-10-20 13:31:55 -0700 |
commit | 66d2714f5435944a26685be4210e0e0d7138f3db (patch) | |
tree | 4323472d689c5063da200394b421da1a28327e6a /libdrm/intel/intel_bufmgr.c | |
parent | 67628aa39dd74807989492af5451a3a5c0232e39 (diff) |
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
Diffstat (limited to 'libdrm/intel/intel_bufmgr.c')
0 files changed, 0 insertions, 0 deletions