[Intel-gfx] [PATCH 2/4] drm/i915: Use shorter route to dev_private where possible
Chris Wilson
chris at chris-wilson.co.uk
Wed Mar 16 16:21:30 UTC 2016
On Wed, Mar 16, 2016 at 03:40:53PM +0000, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> Where we have a request we can use req->i915 directly instead
> of going through the engine and device. Coccinelle script:
>
> @@
> function f;
> identifier r;
> @@
> f(..., struct drm_i915_gem_request *r, ...)
> {
> ...
> - engine->dev->dev_private
> + r->i915
> ...
> }
> @@
> struct drm_i915_gem_request *req;
> @@
> (
> req->
> - engine->dev->dev_private
> + i915
> )
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list