]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Update alloc_request to return the allocated request
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 May 2015 16:43:29 +0000 (17:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 12:02:00 +0000 (14:02 +0200)
commit217e46b576ef0d5eed10ddfeb2b29bd3de289e95
tree9aa777ed8ce9af4794c919244fa046cc261ade25
parentadeca76d8e2b34b5c739a36f4191aed63080da40
drm/i915: Update alloc_request to return the allocated request

The alloc_request() function does not actually return the newly allocated
request. Instead, it must be pulled from ring->outstanding_lazy_request. This
patch fixes this so that code can create a request and start using it knowing
exactly which request it actually owns.

v2: Updated for new i915_gem_request_alloc() scheme.

For: VIZ-5115
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Tomas Elf <tomas.elf@intel.com>
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
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c