OSDN Git Service

drm/i915: don't use uninitialized EDID bpc values when picking pipe bpp
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 28 Jul 2011 19:55:14 +0000 (12:55 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 1 Aug 2011 21:45:27 +0000 (14:45 -0700)
commit62ac41a6e443ef26b9de862c6e20c088e2b04dde
treefd6506f532fd23badd4ee6c541a78dbe40bd0fbe
parent9b546e571b94cacccf1091cc9cc0bd8a6a207a66
drm/i915: don't use uninitialized EDID bpc values when picking pipe bpp

The EDID parser will zero out the bpc value, and the driver needs to handle
that case.  In our picker, we'll just ignore 0 values as far as bpp
picking goes.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39323.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c