]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: check fb->pixel_format instead of bits_per_pixel
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Mar 2013 15:01:35 +0000 (16:01 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Mar 2013 15:55:03 +0000 (16:55 +0100)
commitd6b449c26457fe6639d8b3b5bc2862394a9ec0c8
tree69d44b4172fdcda4b862cbf6df857fe0b053b557
parent3e39e3ea38074ab115906d0526167284bcf13c03
drm/i915: check fb->pixel_format instead of bits_per_pixel

We've mostly switched over to the new more flexible schema, but
there's one check left in the modeset code.

Motivated by a question from Ville whether there's really no way an
unsupported pixel_format can escape into our platform update_plane
callbacks.

v2: Ville noticed that the fb->depth check is redudant when we already
check fb->pixel_format.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c