drm/kms: Add the default mode table
authorZhao Yakui <yakui.zhao@intel.com>
Thu, 3 Sep 2009 01:33:46 +0000 (09:33 +0800)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Sep 2009 06:03:35 +0000 (16:03 +1000)
commitaa9eaa1f0962152d0bde821149d82fe7b70a6f92
tree4adc0e0ff7f62bbc179d60eec813ae793a1c55d8
parent13a8195b148615b15a4f4385f695f2a232095414
drm/kms: Add the default mode table

When we add a standard timing mode in UMS, we will first check whether it can
be found in default mode table. If it can't be found, then we will use cvt/gtf
to add the standard timing mode.
Add the default mode table so that we can check whether the given mode
can be found in the default mode table as what we have done in UMS mode.

If the status of one output device is connected but there is no EDID, it will
have no correct mode. In such case we can add some default modes for it. Of
course we only add the modes in the default modes list that visible part is not
greater than 1024x768.

The default mode is autogenerated from the DMT spec. And it is copied from
xserver/hw/xfree86/modes/xf86EdidModes.c. But the mode with reduced blank
feature is removed.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c