]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ab3738207503f5713b8a690c82a86182c740783
tree3d64ba72967e2480d0ad6cbcc475258429d35fc4
parentf7de473691b0060f0ac413815447eef4f56d4017
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