comparison vidix/drivers/radeon_vid.c @ 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 4898cfdf582a
children f6d2772efca3
comparison
equal deleted inserted replaced
9543:5f9b61214a2c 9544:97f61ffa441e
1415 besr.dest_bpp = radeon_vid_get_dbpp(); 1415 besr.dest_bpp = radeon_vid_get_dbpp();
1416 besr.fourcc = config->fourcc; 1416 besr.fourcc = config->fourcc;
1417 besr.v_inc = (src_h << 20) / dest_h; 1417 besr.v_inc = (src_h << 20) / dest_h;
1418 if(radeon_is_interlace()) besr.v_inc *= 2; 1418 if(radeon_is_interlace()) besr.v_inc *= 2;
1419 h_inc = (src_w << 12) / dest_w; 1419 h_inc = (src_w << 12) / dest_w;
1420
1421 {
1422 unsigned int ecp_div;
1423 ecp_div = (INPLL(VCLK_ECP_CNTL) >> 8) & 3;
1424 h_inc <<= ecp_div;
1425 }
1426
1427
1420 step_by = 1; 1428 step_by = 1;
1421 while(h_inc >= (2 << 12)) { 1429 while(h_inc >= (2 << 12)) {
1422 step_by++; 1430 step_by++;
1423 h_inc >>= 1; 1431 h_inc >>= 1;
1424 } 1432 }