diff options
author | Lan, Hai <hai.lan@intel.com> | 2011-06-06 19:16:26 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-06-07 08:55:25 -0700 |
commit | 3ddc799fbf04e1c7c482c0879aa506c3c7a12c04 (patch) | |
tree | 3f61689587334a349c9f0b621e300a28f17e44e1 /tests/testdisplay.c | |
parent | 1095a825c0acaecf51f97741eacf14acd9bf901e (diff) |
testdisplay: fix possible_crtcs check so LVDS works
When using testdisplay on GM965 and Pineview with LVDS, it will fail to
set a mode because the first unused crtc can't be used for LVDS. So
check the possible_crtcs to make sure the crtc can be used.
Signed-off-by: Hai Lan <hai.lan@intel.com>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r-- | tests/testdisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 1efc6e5c..a01d6336 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -310,7 +310,7 @@ static void connector_find_preferred_mode(struct connector *c) /* Find first CRTC not in use */ for (i = 0; i < resources->count_crtcs; i++) { - if (resources->crtcs[i]) + if (resources->crtcs[i] && (c->encoder->possible_crtcs & (1<<i))) break; } c->crtc = resources->crtcs[i]; |