compositor-drm: Improve initial mode picking
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 28 Jun 2012 15:28:15 +0000 (11:28 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 28 Jun 2012 15:47:42 +0000 (11:47 -0400)
commit061c4253317fff4d6021685c7e4c506d4cef4542
tree1f9afe3f0f0c6311ac373b371f20ef674ddd0c09
parent18e928dfb81638311fed4c439ba1e52972f52ab4
compositor-drm: Improve initial mode picking

We now pick the driver preferred mode for our initial mode.  If no preferred
mode is available we default to the current mode.  We also have a command
line option now to keep the current mode if it differs from the preferred.

This commit also drops the built-in mode and insteade uses the current mode
if the connector doesn't report any modes.
src/compositor-drm.c