[Mplayer-cvslog] CVS: main/vidix/drivers mach64_vid.c,1.7,1.8
Michael Niedermayer
michael at mplayer.dev.hu
Wed Feb 20 01:19:56 CET 2002
Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv14472
Modified Files:
mach64_vid.c
Log Message:
zero saturation / grayscale bugfix
Index: mach64_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mach64_vid.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- mach64_vid.c 19 Feb 2002 20:54:58 -0000 1.7
+++ mach64_vid.c 20 Feb 2002 00:19:47 -0000 1.8
@@ -237,7 +237,7 @@
static void mach64_vid_make_default()
{
mach64_fifo_wait(2);
- OUTREG(SCALER_COLOUR_CNTL,0x0010103f);
+ OUTREG(SCALER_COLOUR_CNTL,0x00101000);
}
static void mach64_vid_dump_regs( void )
@@ -390,11 +390,11 @@
mach64_ram_size *= 0x400; /* KB -> bytes */
if((mach64_mem_base = map_phys_mem(pci_info.base0,mach64_ram_size))==(void *)-1) return ENOMEM;
memset(&besr,0,sizeof(bes_registers_t));
- mach64_vid_make_default();
printf("[mach64] Video memory = %uMb\n",mach64_ram_size/0x100000);
err = mtrr_set_type(pci_info.base0,mach64_ram_size,MTRR_TYPE_WRCOMB);
if(!err) printf("[mach64] Set write-combining type of video memory\n");
reset_regs();
+ mach64_vid_make_default();
if(__verbose > VERBOSE_LEVEL) mach64_vid_dump_regs();
return 0;
}
More information about the MPlayer-cvslog
mailing list