xf86-video-ati: Branch 'master'

Alex Deucher agd5f at kemper.freedesktop.org
Mon Aug 17 23:55:08 PDT 2009


 src/atombios_crtc.c |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

New commits:
commit 479a6daefe46f985c415b0d000b1b1b820f3924e
Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Tue Aug 18 02:53:29 2009 -0400

    AVIVO: add support for DisplayPriority HIGH
    
    If the DisplayPriority option is set to HIGH,
    force the diplay mem requests to urgent.

diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c
index e04b3c4..176efa6 100644
--- a/src/atombios_crtc.c
+++ b/src/atombios_crtc.c
@@ -807,7 +807,7 @@ RADEONInitDispBandwidthAVIVO(ScrnInfoPtr pScrn,
 	float consumption_time, consumption_rate;
 	int num_line_pair, request_fifo_depth, lb_request_fifo_depth;
 	int max_req;
-	uint32_t lb_max_req_outstanding;
+	uint32_t lb_max_req_outstanding, priority_cnt;
 	float line_time, active_time, chunk_time;
 	float worst_case_latency, tolerable_latency;
 	float fill_rate;
@@ -1131,16 +1131,21 @@ RADEONInitDispBandwidthAVIVO(ScrnInfoPtr pScrn,
 	else if (priority_mark > priority_mark_max)
 	    priority_mark = priority_mark_max;
 
+	priority_cnt = priority_mark & AVIVO_DxMODE_PRIORITY_MARK_MASK;
+
+	if (info->DispPriority == 2)
+	    priority_cnt |= AVIVO_DxMODE_PRIORITY_ALWAYS_ON;
+
 	/*ErrorF("priority_mark %d: 0x%x\n", i, priority_mark);*/
 
 	/* Determine which display to program priority mark for */
 	/* FIXME: program DxMODE_PRIORITY_B_CNT for slower sclk */
 	if (i == 0) {
-	    OUTREG(AVIVO_D1MODE_PRIORITY_A_CNT, (priority_mark & AVIVO_DxMODE_PRIORITY_MARK_MASK));
-	    OUTREG(AVIVO_D1MODE_PRIORITY_B_CNT, (priority_mark & AVIVO_DxMODE_PRIORITY_MARK_MASK));
+	    OUTREG(AVIVO_D1MODE_PRIORITY_A_CNT, priority_cnt);
+	    OUTREG(AVIVO_D1MODE_PRIORITY_B_CNT, priority_cnt);
 	} else {
-	    OUTREG(AVIVO_D2MODE_PRIORITY_A_CNT, (priority_mark & AVIVO_DxMODE_PRIORITY_MARK_MASK));
-	    OUTREG(AVIVO_D2MODE_PRIORITY_B_CNT, (priority_mark & AVIVO_DxMODE_PRIORITY_MARK_MASK));
+	    OUTREG(AVIVO_D2MODE_PRIORITY_A_CNT, priority_cnt);
+	    OUTREG(AVIVO_D2MODE_PRIORITY_B_CNT, priority_cnt);
 	}
     }
 


More information about the xorg-commit mailing list