drm/ast: add widescreen + rb modes from X.org driver (v2)
authorDave Airlie <[email protected]>
Fri, 17 Jan 2014 00:56:09 +0000 (10:56 +1000)
committerDave Airlie <[email protected]>
Mon, 19 May 2014 01:13:55 +0000 (11:13 +1000)
commitf1f62f2ccba0967c493ac9ad31c9b04d29688aaa
tree18549684b758fdfca521cc95ff3c289c6f54149f
parentbf21d605bf7d18d2b3cdb1c19fc1b2a1549c1f11
drm/ast: add widescreen + rb modes from X.org driver (v2)

This syncs up the mode code from the X.org driver upstream,
and adds the mode validation step for hw that doesn't have
widescreen.

v2: (from Egbert Eich <[email protected])
squash drm/ast: Use correct structure member for mode validation
to avoid bisect regression.

In struct drm_display_mode crtc_hdisplay and crtc_vdisplay are holding
the crtc parameters after mode fixup. For validation we need hdisplay and
vdisplay.

Signed-off-by: Egbert Eich <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_mode.c
drivers/gpu/drm/ast/ast_tables.h