]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drm/i915: reject invalid formats for FBC
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 21 Sep 2015 22:48:06 +0000 (19:48 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Sep 2015 12:39:19 +0000 (14:39 +0200)
commitb9e831dc3973bddfaa8e27629745c5948ed8b92d
tree90c6e7e2b45b11a12aee0e528890d25c4704ef43
parent40f4022ef67f30cc0b7ee7453926d1803277d1af
drm/i915: reject invalid formats for FBC

This commit is essentially a rewrite of "drm/i915: Check pixel format
for fbc" from Ville Syrjälä. The idea is the same, but the code is
different due to all the changes that happened since his original
patch. So any bugs are due to my bad rewrite.

v2:
  - Drop the alpha formats (Ville).
v3:
  - Drop the stale comment (Ville).

Testcases: igt/kms_frontbuffer_tracking/*fbc*-${format_name}-draw-*
Credits-to: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_fbc.c