commit | 395ab7541a0e141ffbde127b534e44f28d39a050 | [log] [tgz] |
---|---|---|
author | Kumar, Mahesh <mahesh1.kumar@intel.com> | Thu Sep 03 16:17:08 2015 +0530 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Fri Sep 04 09:38:16 2015 +0200 |
tree | 0a7889587ccd83d6241a211215565fc6b14cdb38 | |
parent | 58f2cf241fb98414e2e35fc3d4d0494eb30b3245 [diff] |
drm/i915/skl: Avoid using un-initialized bits_per_pixel Don't rely on fb->bits_per_pixel as intel_framebuffer_init is not filling bits_per_pixel field of fb-struct for YUV pixel format. This leads to divide by zero error during watermark calculation. Signed-off-by: Kumar, Mahesh <mahesh1.kumar@intel.com> Cc: Konduru, Chandra <chandra.konduru@intel.com> Reviewed-by: Sonika Jindal <sonika.jindal@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>