diff options
author | Jerome Glisse <glisse@freedesktop.org> | 2007-06-17 23:54:12 +0200 |
---|---|---|
committer | Jerome Glisse <glisse@freedesktop.org> | 2007-06-17 23:54:12 +0200 |
commit | d0d5ee700b53d376cbe2ac7f70e6d97cc076eb4a (patch) | |
tree | 0357a2979c68639e2ebb76d683ae13eaed20a52c | |
parent | 5e73799265df9e6984a241fa593902b52252c162 (diff) |
avivo: preferably use crtc1 for feeding LFP so diffing with fglrx is easier.
This is not a hw restriction, it just easier then to compare with fglrx
as fglrx use crtc1 for LFP.
-rw-r--r-- | xorg/avivo_bios.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xorg/avivo_bios.c b/xorg/avivo_bios.c index 238c7fd..14ffd0a 100644 --- a/xorg/avivo_bios.c +++ b/xorg/avivo_bios.c @@ -424,5 +424,21 @@ avivo_output_setup(ScrnInfoPtr screen_info) output->possible_crtcs = (1 << 0) | (1 << 1); output->possible_clones = avivo_output_clones(screen_info); } + + /* Set LFP possible crtc so that only crtc1 is used this isn't + * necessary but this make easier to compare with fglrx for + * time being as fglrx always use crtc1 with LFP where avivo + * will more likely use crtc2 due to the order of connector + * in bios table. + */ + for (i = 0; i < config->num_output; i++) { + xf86OutputPtr output = config->output[i]; + struct avivo_output_private *avivo_output = output->driver_private; + if (avivo_output->type == XF86ConnectorLFP) { + output->possible_crtcs = (1 << 0); + } + } + + return TRUE; } |