# HG changeset patch # User michael # Date 1014164387 0 # Node ID bc69f5fc18fea4ca63587c80664975abd3b35c39 # Parent 34573271ffb2f470d7a3f726ade575e5b1229885 zero saturation / grayscale bugfix diff -r 34573271ffb2 -r bc69f5fc18fe vidix/drivers/mach64_vid.c --- a/vidix/drivers/mach64_vid.c Tue Feb 19 20:54:58 2002 +0000 +++ b/vidix/drivers/mach64_vid.c Wed Feb 20 00:19:47 2002 +0000 @@ -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; }