changeset 24537:104e3dafa1ad

fix resolution detection for NV03 and NV04 cards, patch by Guillaume LECERF <foxcore at gmail.com>
author faust3
date Mon, 17 Sep 2007 18:17:41 +0000
parents b033836ecfb9
children b3269346b5f9
files vidix/nvidia_vid.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/nvidia_vid.c	Mon Sep 17 13:09:47 2007 +0000
+++ b/vidix/nvidia_vid.c	Mon Sep 17 18:17:41 2007 +0000
@@ -673,12 +673,15 @@
   /* 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);