From 61d0aec40e2521488c2fe43e7a6823e5c87d94d7 Mon Sep 17 00:00:00 2001 From: Ilija Hadzic Date: Wed, 19 Dec 2012 10:35:41 -0500 Subject: video: add option to include disabled CRTCs in best CRTC search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds an option called consider_disabled to radeon_pick_best_crtc function. If this option is set and searching for best-fit CRTC yields nothing, the search will be widened to include CRTCs in DPMS "off" state. The new option is not used yet; it will be in the patches to follow. v2: Do not look at the CRTC mode, we only care about its box. Signed-off-by: Ilija Hadzic Reviewed-by: Michel Dänzer --- src/radeon_exa_shared.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/radeon_exa_shared.c') diff --git a/src/radeon_exa_shared.c b/src/radeon_exa_shared.c index 1218efbc..cca1c67e 100644 --- a/src/radeon_exa_shared.c +++ b/src/radeon_exa_shared.c @@ -63,7 +63,8 @@ void RADEONVlineHelperSet(ScrnInfoPtr pScrn, int x1, int y1, int x2, int y2) RADEONInfoPtr info = RADEONPTR(pScrn); struct radeon_accel_state *accel_state = info->accel_state; - accel_state->vline_crtc = radeon_pick_best_crtc(pScrn, x1, x2, y1, y2); + accel_state->vline_crtc = + radeon_pick_best_crtc(pScrn, FALSE, x1, x2, y1, y2); if (accel_state->vline_y1 == -1) accel_state->vline_y1 = y1; if (y1 < accel_state->vline_y1) -- cgit v1.2.3