[Intel-gfx] [PATCH 2/6] drm/i915: use dev_priv for the FBC functions
Chris Wilson
chris at chris-wilson.co.uk
Tue Jul 7 12:51:58 PDT 2015
On Tue, Jul 07, 2015 at 03:26:04PM -0300, Paulo Zanoni wrote:
> From: Paulo Zanoni <paulo.r.zanoni at intel.com>
>
> Because the cool kids use dev_priv and FBC wants to be cool too.
>
> We've been historically using struct drm_device on the FBC function
> arguments, but we only really need it for intel_vgpu_active():
static inline bool intel_vgpu_active(struct drm_device *dev)
{
return to_i915(dev)->vgpu.active;
}
Hah! Just out of scope for this patch. Or you could do a quick
#define intel_vgpu_active(P) (__I915__(P)->vgpu->active)
and then magically use dev_priv as convenient.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list