drm/i915: Enforce execobject.alignment to be a power-of-two
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Jun 2015 12:59:46 +0000 (13:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Jun 2015 14:13:23 +0000 (16:13 +0200)
commit55a9785d125a4dd33678795ccba0ed61a6e8540c
treecb5c454822a3eeb2fba7909839ad31e5412da019
parent77a0d1cab489eb2b6ebd54234df4262f4840d498
drm/i915: Enforce execobject.alignment to be a power-of-two

Internal requirement for the alignment is that it must be a
power-of-two, so enforce rejection at the user interface to execbuffer
(which allows the caller to specify a stricter-than-expected alignment
criterion).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c