diff options
author | Ilija Hadzic <ihadzic@research.bell-labs.com> | 2012-12-19 10:35:41 -0500 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2013-01-03 10:47:48 +0100 |
commit | 61d0aec40e2521488c2fe43e7a6823e5c87d94d7 (patch) | |
tree | b7678312f211fd803a6b845480c506aefbdd0ccb /src/radeon_textured_videofuncs.c | |
parent | a60d2152e928a7011fc7c44a885a34c3cdd4f0fe (diff) |
video: add option to include disabled CRTCs in best CRTC search
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 <ihadzic@research.bell-labs.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/radeon_textured_videofuncs.c')
-rw-r--r-- | src/radeon_textured_videofuncs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/radeon_textured_videofuncs.c b/src/radeon_textured_videofuncs.c index 02eb0b70..cfac9022 100644 --- a/src/radeon_textured_videofuncs.c +++ b/src/radeon_textured_videofuncs.c @@ -269,7 +269,7 @@ RADEONPrepareTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) if (pPriv->desired_crtc) crtc = pPriv->desired_crtc; else - crtc = radeon_pick_best_crtc(pScrn, + crtc = radeon_pick_best_crtc(pScrn, FALSE, pPriv->drw_x, pPriv->drw_x + pPriv->dst_w, pPriv->drw_y, @@ -813,7 +813,7 @@ R200PrepareTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) if (pPriv->desired_crtc) crtc = pPriv->desired_crtc; else - crtc = radeon_pick_best_crtc(pScrn, + crtc = radeon_pick_best_crtc(pScrn, FALSE, pPriv->drw_x, pPriv->drw_x + pPriv->dst_w, pPriv->drw_y, @@ -2165,7 +2165,7 @@ R300PrepareTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) if (pPriv->desired_crtc) crtc = pPriv->desired_crtc; else - crtc = radeon_pick_best_crtc(pScrn, + crtc = radeon_pick_best_crtc(pScrn, FALSE, pPriv->drw_x, pPriv->drw_x + pPriv->dst_w, pPriv->drw_y, @@ -3718,7 +3718,7 @@ R500PrepareTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) if (pPriv->desired_crtc) crtc = pPriv->desired_crtc; else - crtc = radeon_pick_best_crtc(pScrn, + crtc = radeon_pick_best_crtc(pScrn, FALSE, pPriv->drw_x, pPriv->drw_x + pPriv->dst_w, pPriv->drw_y, |