aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_dac.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-12-08 05:38:14 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2010-12-09 14:46:21 -0500
commit67731b87e9572801c41f8fe779750babdd362416 (patch)
tree5773669e611ba29ef8f97a6b5f87158fa262549c /drivers/gpu/drm/nouveau/nv04_dac.c
parentff7ea4c04012e01a9a50c5e42dabdaf0794734ce (diff)
drm/i915: Eliminate drm_gem_object_lookup during relocation
As we provide a list of all objects that will be accessed from the batchbuffer, we can build a lut of the handles associated with those objects for this invocation and use that to avoid the overhead of looking up those objects again for every relocation. The cost of building and searching a small hash table is much less than that of acquiring a spinlock, searching a radix tree and manipulating an atomic refcnt per relocation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_dac.c')
0 files changed, 0 insertions, 0 deletions