]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drm/i915: Use the reloc.handle as an index into the execbuffer array
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Jan 2013 10:53:17 +0000 (10:53 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 17 Jan 2013 21:23:47 +0000 (22:23 +0100)
commiteef90ccb8a4d50b219a95cc53878ebb007315b32
treee10ef8121e9b6f0c061df75967c7af77a942feb3
parented5982e6ce5f106abcbf071f80730db344a6da42
drm/i915: Use the reloc.handle as an index into the execbuffer array

Using copywinwin10 as an example that is dependent upon emitting a lot
of relocations (2 per operation), we see improvements of:

c2d/gm45: 618000.0/sec to 623000.0/sec.
i3-330m: 748000.0/sec to 789000.0/sec.

(measured relative to a baseline with neither optimisations applied).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c
include/uapi/drm/i915_drm.h