OSDN Git Service

drm/i915: Abstract the legacy workload submission mechanism away
authorOscar Mateo <oscar.mateo@intel.com>
Thu, 24 Jul 2014 16:04:21 +0000 (17:04 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 14:40:32 +0000 (16:40 +0200)
commita83014d3f8b936778a9bc9b3d4137769bb26d9eb
tree6a47fc537941ec3cfc1c43d0db189edf1b5bb6c2
parentec3e9963a681789860e5c0120a745b717d942392
drm/i915: Abstract the legacy workload submission mechanism away

As suggested by Daniel Vetter. The idea, in subsequent patches, is to
provide an alternative to these vfuncs for the Execlists submission
mechanism.

v2: Splitted into two and reordered to illustrate our intentions, instead
of showing it off. Also, remove the add_request vfunc and added the
stop_ring one.

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
[danvet:
- Make checkpatch happy.
- Be grumpy about the excessive vtable.
- Ditch gt->is_ring_initialized.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c