[MPlayer-cvslog] r24557 - trunk/vidix/nvidia_vid.c
faust3
subversion at mplayerhq.hu
Mon Sep 17 20:17:42 CEST 2007
Author: faust3
Date: Mon Sep 17 20:17:41 2007
New Revision: 24557
Log:
fix resolution detection for NV03 and NV04 cards, patch by Guillaume LECERF <foxcore at gmail.com>
Modified:
trunk/vidix/nvidia_vid.c
Modified: trunk/vidix/nvidia_vid.c
==============================================================================
--- trunk/vidix/nvidia_vid.c (original)
+++ trunk/vidix/nvidia_vid.c Mon Sep 17 20:17:41 2007
@@ -673,12 +673,15 @@ static void nv_getscreenproperties(struc
/* and the 10th in CRTC_OVERFLOW*/
info->screen_y |=(VID_RD08(info->chip.PCIO,0x03D5) &0x40)<<3;
++info->screen_y;
+
+ if(info->chip.arch >= NV_ARCH_10){
/* NV_PCRTC_EXTRA_VERT_DISPLAY_END_10 */
VID_WR08(info->chip.PCIO,0x03D4,0x25);
info->screen_y |= (VID_RD08(info->chip.PCIO,0x03D5) &0x02)<<9;
/* NV_PCRTC_???_VERT_DISPLAY_END_11 */
VID_WR08(info->chip.PCIO,0x03D4,0x41);
info->screen_y |= (VID_RD08(info->chip.PCIO,0x03D5) &0x04)<<9;
+ }
/* NV_PCRTC_OFFSET */
VID_WR08 (info->chip.PCIO, 0x3D4, 0x13);
More information about the MPlayer-cvslog
mailing list