From: John Hodge Date: Thu, 8 Mar 2012 11:31:52 +0000 (+0800) Subject: Modules/Tegra2Vid - Fiddling! X-Git-Tag: rel0.15~737 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7f4eb3ddc495ffa7ecad1a9d2f9fc5149c4c4f6f;p=tpg%2Facess2.git Modules/Tegra2Vid - Fiddling! --- diff --git a/KernelLand/Modules/Display/Tegra2Vid/main.c b/KernelLand/Modules/Display/Tegra2Vid/main.c index da71057e..f091327b 100644 --- a/KernelLand/Modules/Display/Tegra2Vid/main.c +++ b/KernelLand/Modules/Display/Tegra2Vid/main.c @@ -98,12 +98,14 @@ int Tegra2Vid_Install(char **Arguments) // return 1; // HACK!!! -// { -// int w = 1980, h = 1080; -// gpTegra2Vid_IOMem[DC_DISP_DISP_ACTIVE_0] = (h << 16) | w; -// gpTegra2Vid_IOMem[DC_WIN_A_SIZE_0] = (h << 16) | w; -// gpTegra2Vid_IOMem[DC_WIN_A_PRESCALED_SIZE_0] = (h << 16) | w; -// } +#if 0 + { + int w = 1680, h = 1050; + gpTegra2Vid_IOMem[DC_DISP_DISP_ACTIVE_0] = (h << 16) | w; + gpTegra2Vid_IOMem[DC_WIN_A_SIZE_0] = (h << 16) | w; + gpTegra2Vid_IOMem[DC_WIN_A_PRESCALED_SIZE_0] = (h << 16) | w; + } +#endif giTegra2Vid_FramebufferSize = (gpTegra2Vid_IOMem[DC_WIN_A_SIZE_0]&0xFFFF) @@ -116,8 +118,8 @@ int Tegra2Vid_Install(char **Arguments) ); memset(gpTegra2Vid_Framebuffer, 0xFF, 0x1000); - gpTegra2Vid_IOMem[DC_WIN_A_WIN_OPTIONS_0] &= ~0x40; - gpTegra2Vid_IOMem[DC_WIN_A_COLOR_DEPTH_0] = 12; // Could be 13 (BGR/RGB) +// gpTegra2Vid_IOMem[DC_WIN_A_WIN_OPTIONS_0] &= ~0x40; +// gpTegra2Vid_IOMem[DC_WIN_A_COLOR_DEPTH_0] = 12; // Could be 13 (BGR/RGB) gTegra2Vid_DrvUtil_BufInfo.Width = 1024; gTegra2Vid_DrvUtil_BufInfo.Height = 768; gTegra2Vid_DrvUtil_BufInfo.Pitch = 1024*4;