rem: void voodoo_set_desktop_regs(uint32 bits_per_pixel, display_mode *dm)
add: voodoo_set_desktop_regs(uint32 bits_per_pixel, display_mode *dm)
context: void voodoo_set_desktop_regs(uint32 bits_per_pixel, display_mode *dm){	uint32 miscinit0=0;	int vidpll, fout;	int vidproc = VIDPROCDEFAULT;	uint32 bpp = (bits_per_pixel + 7) / 8;	uint32 bytes_per_row = (dm->virtual_width * bits_per_pixel + 7) / 8;	accel.bpp = bits_per_pixel;	accel.width = dm->virtual_width;	accel.height = dm->virtual_height;		voodoo3_setup_monitor(dm);		vidproc &= ~(0x1c0000); // clear bits 18 to 20, bpp in vidproccfg	vidproc |= ((bpp - 1) << VIDCFG_PIXFMT_SHIFT); // enable bits 18 to 20 to the required bpp	vidpll = voodoo3_calc_pll(dm->timing.pixel_clock, &fout, 0);		switch(bits_per_pixel) { // bit 10 of vidproccfg, is enabled or disabled as needed for the Desktop		case 8:			vidproc &= ~(1 << 10); // bit 10 off for palettized modes only, off means palette is used			break;		case 16:			#if __POWERPC__				miscinit0 = 0xc0000000;			#endif			vidproc |= (1 << 10); // bypass palette for 16bit modes			break;		case 32:			#if __POWERPC__				miscinit0 = 0x40000000;			#endif						vidproc |= (1 << 10); // Same for 32bit modes			break;	}		voodoo3_wait_idle();		voodoo3_write32(MISCINIT1, voodoo3_read32(MISCINIT1) | 0x01);	voodoo3_make_room(4);	voodoo3_write32(VGAINIT0, 4928);	voodoo3_write32(DACMODE, 0);	voodoo3_write32(VIDDESKSTRIDE, bytes_per_row);	voodoo3_write32(PLLCTRL0, vidpll);		voodoo3_make_room(5);	voodoo3_write32(VIDSCREENSIZE, dm->virtual_width | (dm->virtual_height << 12));	voodoo3_write32(VIDDESKSTART,  1024);	voodoo3_write32(VIDPROCCFG, vidproc);	voodoo3_write32(VGAINIT1, 0);	voodoo3_write32(MISCINIT0, miscinit0);		voodoo3_make_room(8);	voodoo3_write32(SRCBASE, 1024);	voodoo3_write32(DSTBASE, 1024);	voodoo3_write32(COMMANDEXTRA_2D, 0);  	voodoo3_write32(CLIP0MIN,        0);  	voodoo3_write32(CLIP0MAX,        0x0fff0fff);  	voodoo3_write32(CLIP1MIN,        0);  	voodoo3_write32(CLIP1MAX,        0x0fff0fff);	voodoo3_write32(SRCXY, 0);	voodoo3_wait_idle();}