]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Avoid div-by-zero when computing aux_stride w/o an aux plane
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Mar 2017 19:42:08 +0000 (21:42 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 Mar 2017 14:44:03 +0000 (16:44 +0200)
commit1b500535c513ac57fff89e917bda5863739636ad
tree66084772c722077d13247eb8c5c9961a584583f3
parentb90c1ee17b9e57a3fef241c2ebb26b5db7cc1937
drm/i915: Avoid div-by-zero when computing aux_stride w/o an aux plane

To make life easier let's allow skl_plane_stride() to be called for the
AUX surface even when there is no AUX surface. Avoids special cases in
the callers.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170307194210.13400-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c