drm/i915: Catch abuse of I915_EXEC_CONSTANTS_*
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Apr 2014 06:09:10 +0000 (08:09 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 May 2014 07:08:42 +0000 (09:08 +0200)
commitc0f5b82cd1a839090db19009ab126a8ad4a7602d
treecef658eefa1822f1dc9552f3e65357af005366e0
parent9d662da8b695c86849288d463e45d0920b189c86
drm/i915: Catch abuse of I915_EXEC_CONSTANTS_*

A bit tricky since 0 is also a valid constant ...

v2: Add DRM_DEBUG (Chris)

Testcase: igt/gem_exec_params/rel-constants-*
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c