drm: check for garbage in unused addfb2 fields
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 14:53:53 +0000 (16:53 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 May 2015 12:43:29 +0000 (14:43 +0200)
commitbbe16a40e23a65626904aa22fbfc3240a65d21d1
tree3d64ba72967e2480d0ad6cbcc475258429d35fc4
parentda9b2a381a32c2a287f99e4be2f372587c53ef14
drm: check for garbage in unused addfb2 fields

Unfortunately old userspace didn't clear this properly, but since
we've added fb modifiers that's fixed. Checking properly that unused
fields is important for abi extensions, and just right now there's a
bunch of discussions going on about how exactly the additional aux
planes for render compression should be specified.

So let's first make sure that the values in those additional fields
can be indeed used.

Cc: Thierry Reding <thierry.reding@gmail.com>
Testcase: igt/kms_addfb/unused-*
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_crtc.c