changeset 9544:97f61ffa441e

vidix rage128 ecp_div patch by (Magnus Damm <damm at opensource dot se>)
author michael
date Fri, 07 Mar 2003 12:59:28 +0000
parents 5f9b61214a2c
children d1bbeae9f46a
files vidix/drivers/radeon_vid.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/radeon_vid.c	Fri Mar 07 02:05:59 2003 +0000
+++ b/vidix/drivers/radeon_vid.c	Fri Mar 07 12:59:28 2003 +0000
@@ -1417,6 +1417,14 @@
     besr.v_inc = (src_h << 20) / dest_h;
     if(radeon_is_interlace()) besr.v_inc *= 2;
     h_inc = (src_w << 12) / dest_w;
+
+    {
+        unsigned int ecp_div;
+        ecp_div = (INPLL(VCLK_ECP_CNTL) >> 8) & 3;
+        h_inc <<= ecp_div;
+    }
+
+
     step_by = 1;
     while(h_inc >= (2 << 12)) {
 	step_by++;