[PATCH 24/30] xfree86/modes: Stop setting v_back_porch and v_frame_rate for nothing.
Cyril Brulebois
kibi at debian.org
Fri May 20 08:35:34 PDT 2011
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
hw/xfree86/modes/xf86gtf.c | 20 +++-----------------
1 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/hw/xfree86/modes/xf86gtf.c b/hw/xfree86/modes/xf86gtf.c
index 9d5d50a..f61c18c 100644
--- a/hw/xfree86/modes/xf86gtf.c
+++ b/hw/xfree86/modes/xf86gtf.c
@@ -115,12 +115,10 @@ xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins)
float interlace;
float h_period_est;
float vsync_plus_bp;
- float v_back_porch;
float total_v_lines;
float v_field_rate_est;
float h_period;
float v_field_rate;
- float v_frame_rate;
float left_margin;
float right_margin;
float total_active_pixels;
@@ -208,15 +206,8 @@ xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins)
vsync_plus_bp = rint(MIN_VSYNC_PLUS_BP/h_period_est);
- /* 9. Find the number of lines in V back porch alone:
- *
- * [V BACK PORCH] = [V SYNC+BP] - [V SYNC RND]
- *
- * XXX is "[V SYNC RND]" a typo? should be [V SYNC RQD]?
- */
-
- v_back_porch = vsync_plus_bp - V_SYNC_RQD;
-
+ /* 9. Find the number of lines in V back porch alone [useless, removed] */
+
/* 10. Find the total number of lines in Vertical field period:
*
* [TOTAL V LINES] = [V LINES RND] + [TOP MARGIN (LINES)] +
@@ -248,12 +239,7 @@ xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins)
v_field_rate = 1.0 / h_period / total_v_lines * 1000000.0;
- /* 14. Find the Vertical frame frequency:
- *
- * [V FRAME RATE] = (IF([INT RQD?]="y", [V FIELD RATE]/2, [V FIELD RATE]))
- */
-
- v_frame_rate = interlaced ? v_field_rate / 2.0 : v_field_rate;
+ /* 14. Find the Vertical frame frequency [useless, removed] */
/* 15. Find number of pixels in left margin:
*
--
1.7.5.1
More information about the xorg-devel
mailing list